<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body 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 class="moz-cite-prefix">Le 17/01/2014 14:21,
<a class="moz-txt-link-abbreviated" href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a> a écrit :<br>
</div>
<blockquote
cite="mid:mailman.10714.1389964899.3278.nek5000-users@lists.mcs.anl.gov"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:Nek5000-users@lists.mcs.anl.gov"
target="_blank">Nek5000-users@lists.mcs.anl.gov</a><br>
<a moz-do-not-send="true"
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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Nek5000-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nek5000-users@lists.mcs.anl.gov">Nek5000-users@lists.mcs.anl.gov</a>
<a class="moz-txt-link-freetext" href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a>
</pre>
</blockquote>
</body>
</html>