<div dir="ltr">Hi Holly,<div><br></div><div>I'm not quite sure how to estimate how much time is needed to load the .fld files, it would certainly depend on how many processors you are using, whether you are using MPI_IO, etc.. (maybe the main developers could give some sort of leading order complexity here?)</div>
<div><br></div><div>As for the variables, the main variables (vx, vy, vz, pr, t) are overwritten each time step, although I think there are some lag arrays available (such as vxlag). However, I'm not familiar with how these are used, so you may want to do some digging.</div>
<div><br></div><div>Josh</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 20, 2014 at 2:51 AM, <span dir="ltr"><<a href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank">nek5000-users@lists.mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi Josh,<br>
<br>
Thank you for your answer. We had already considered using this
approach but we have a few queries. We would like to load a .fld
file at each time step, which means the process might become very
costly. Do you have any idea of the cost (in time) of such a method?
Also, what becomes of the variables calculated during the previous
time steps?<br>
<br>
Thanks again, <br>
<br>
Holly<br>
<br>
<div>Le 17/01/2014 14:21,
<a href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank">nek5000-users@lists.mcs.anl.gov</a> a écrit :<br>
</div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">Hi Holly,
<div><br>
</div>
<div>If you wanted to load a .fld file without copying over your
variables, you could do something like</div>
<div><br>
</div>
<div>! Create temporary storage</div>
<div>real tmp1(lx1*ly1*lz1*lelv), tmp2(lx1*ly1*lz1*lelv), ...</div>
<div><br>
</div>
<div>! Copy simulation fields to temporary variables</div>
<div>call copy(tmp1,vx,nx1*ny1*nz1*nelv)</div>
<div>...</div>
<div><br>
</div>
<div>! Load field file and do whatever work you want to do with
it</div>
<div>
<br>
</div>
<div>! Copy simulation fields back to nek variables</div>
<div>call copy(vx,tmp1,nx1*ny1*nz1*nelv)</div>
<div><br>
</div>
<div><br>
</div>
<div>You should be able to use some of the Nek scratch arrays to
store your temporary variables (instead of taking up more
memory with the explicit declaration), but I'm not sure at the
moment which scratch arrays load_fld() uses.</div>
<div><br>
</div>
<div>- Josh</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Jan 17, 2014 at 4:56 AM, <span dir="ltr"><<a href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank">nek5000-users@lists.mcs.anl.gov</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Neks !<br>
<br>
Is there a way to load a .fld file during a simulation (in
the same way load_fld() does) but without doing a complete
restart of all the variables ?<br>
<br>
Thanks for any help !<br>
<br>
Holly<br>
_______________________________________________<br>
Nek5000-users mailing list<br>
<a href="mailto:Nek5000-users@lists.mcs.anl.gov" target="_blank">Nek5000-users@lists.mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Josh Camp<br>
<br>
"All that is necessary for the triumph of evil is that good men
do nothing" -- Edmund Burke
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Nek5000-users mailing list
<a href="mailto:Nek5000-users@lists.mcs.anl.gov" target="_blank">Nek5000-users@lists.mcs.anl.gov</a>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a>
</pre>
</blockquote>
</div></div></div>
<br>_______________________________________________<br>
Nek5000-users mailing list<br>
<a href="mailto:Nek5000-users@lists.mcs.anl.gov">Nek5000-users@lists.mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Josh Camp<br><br>"All that is necessary for the triumph of evil is that good men do nothing" -- Edmund Burke
</div>