On Thu, Dec 2, 2010 at 4:14 PM, Jed Brown <span dir="ltr"><<a href="mailto:jed@59a2.org">jed@59a2.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><div class="gmail_quote">On Thu, Dec 2, 2010 at 23:06, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>The problem with this is that we automatically determine PETSC_ARCH in the course of configure, well</div><div>after we start logging. We do symlink it at the end.</div></blockquote></div><br></div><div>Yes, but the file gets truncated by the configure process that fires up afterward.  You could</div>
</blockquote><div><br></div><div>How exactly does that happen? I have just checked that I ran multiple configures and did not clobber those logs.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>create it as a temporary file in $PETSC_DIR (mktemp)</div><div>symlink configure.log to this temp file</div><div>wait until you know PETSC_ARCH</div><div>hardlink $PETSC_ARCH/conf/configure.log to the temp file</div>

<div>redirect the symlink to $PETSC_ARCH/conf/configure.log</div><div>remove the temp file</div></blockquote><div><br></div><div>I do not think this works on NTFS.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>This process should be atomic and always have a usable state even with concurrent configures and unpredictable failures (though I suppose the help message should ask the user to send the real file instead of the symlink which could point elsewhere).</div>

<div><br></div><font color="#888888"><div>Jed</div>
</font></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>