yep that looks like it<div>but rather system ("mv tmp_filename filename &");</div><div><br><div>beeing able to set the /scratch dir from the input(prm) file would be nice as well.</div><div><br></div><div>i have an implementation lying around somewhere. i implemented it and tested it on our local cluster</div>
<div><br></div><div>an added benefit of doing it like this is that you do not have to wait till the end of the run to inspect your results</div><div>for curious people like me thats a huge advantage.....</div><div><br></div>
<div>cheers</div><div>Thomas</div><div><div><br><div class="gmail_quote">On Tue, Feb 28, 2012 at 6:02 PM, Wolfgang Bangerth <span dir="ltr"><<a href="mailto:bangerth@math.tamu.edu">bangerth@math.tamu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
> something like:<br>
> 1. ln -s /a/local/tmp/filesystem output<br>
> 2. run normally: mpirun ...<br>
> 3. mv output/* /some/shared/filesystem/<br>
><br>
> Thomas was thinking of doing step 3 concurrently with the code running<br>
> (for example spawn a shell script after every visualization).<br>
<br>
</div>Thinking about this, isn't step 3 *after* the job is done creating the<br>
very same bottleneck we wanted to avoid? I.e., isn't doing it in the<br>
background the only real option?<br>
<br>
Thomas, at least for this second scheme, what would you think if I<br>
modified the background_writer() function we currently have to the<br>
following:<br>
..........................<br>
void Visualization<dim>::background_writer (const std::string *filename,<br>
const std::string *file_contents)<br>
{<br>
char *tmp_filename = tempnam(...) // get name of a tmp file<br>
<br>
...write data into tmp_filename...<br>
<br>
system ("mv tmp_filename filename");<br>
}<br>
..........................<br>
Is this what you had in mind?<br>
<br>
Best<br>
<span class="HOEnZb"><font color="#888888"> W.<br>
<br>
--<br>
</font></span><div class="im HOEnZb">------------------------------------------------------------------------<br>
Wolfgang Bangerth email: <a href="mailto:bangerth@math.tamu.edu">bangerth@math.tamu.edu</a><br>
www: <a href="http://www.math.tamu.edu/~bangerth/" target="_blank">http://www.math.tamu.edu/~bangerth/</a><br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Aspect-devel mailing list<br>
<a href="mailto:Aspect-devel@geodynamics.org">Aspect-devel@geodynamics.org</a><br>
<a href="http://geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel" target="_blank">http://geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel</a><br>
</div></div></blockquote></div><br></div></div></div>