[Nek5000-users] Restart w/o saving over existing fld files?
nek5000-users at lists.mcs.anl.gov
nek5000-users at lists.mcs.anl.gov
Thu Aug 5 16:12:13 CDT 2010
I typically use this 6-liner shell script to add an offset to my fld files.
for i in `ls $1.f*`
do
basename=`echo $i | awk 'BEGIN { FS = ".f" } ; { print $1 }'`
oldid=`echo $i | awk 'BEGIN { FS = ".f" } ; { print $2 }'`;
mv $i `expr $oldid + $2 | xargs printf "$basename.f%04d\n"`
done
If you save the script as 'mvfld' and your fld files are {foo0.f0001, ...} just run 'mvfld foo 50'
to add an offset of 50 to your fld files.
hth,
Stefan
On Aug 5, 2010, at 7:38 PM, <nek5000-users at lists.mcs.anl.gov> wrote:
> Hello,
>
> Is there a way to restart without having Nek save new blah.f files over existing ones, perhaps tell it the number to start with?
>
> Say I have run a simulation and have 50 fld files. I would like to restart from 50, but the next fld ideally should read 51, not 1. This makes it difficult to get into visit I have found when doing restarts (unless there is alternative trick to get around this?)
>
> Thanks for any help with this ,
>
> Michael
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20100805/077e7ec7/attachment.html>
More information about the Nek5000-users
mailing list