[Nek5000-users] Load_fld() without restart
nek5000-users at lists.mcs.anl.gov
nek5000-users at lists.mcs.anl.gov
Fri Jan 17 07:21:35 CST 2014
Hi Holly,
If you wanted to load a .fld file without copying over your variables, you
could do something like
! Create temporary storage
real tmp1(lx1*ly1*lz1*lelv), tmp2(lx1*ly1*lz1*lelv), ...
! Copy simulation fields to temporary variables
call copy(tmp1,vx,nx1*ny1*nz1*nelv)
...
! Load field file and do whatever work you want to do with it
! Copy simulation fields back to nek variables
call copy(vx,tmp1,nx1*ny1*nz1*nelv)
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.
- Josh
On Fri, Jan 17, 2014 at 4:56 AM, <nek5000-users at lists.mcs.anl.gov> wrote:
> Hi Neks !
>
> 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 ?
>
> Thanks for any help !
>
> Holly
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>
--
Josh Camp
"All that is necessary for the triumph of evil is that good men do nothing"
-- Edmund Burke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20140117/47b04a77/attachment-0001.html>
More information about the Nek5000-users
mailing list