[Nek5000-users] Outpost question
nek5000-users at lists.mcs.anl.gov
nek5000-users at lists.mcs.anl.gov
Thu Sep 4 22:19:52 CDT 2014
Hi JC,
Sorry it took me awhile to get to this.
For .fld files:
In prepost.f, subroutine outfld(prefix), around line 333 (right before the
call to file2 -
If you reset nopen(iprefix), you should start writing to a file ending with
01 and incrementing from there. Something like:
if(nopen(iprefix).gt.25) nopen(iprefix)=1
Note that nopen is a common variable and resetting this in prepost will
carry over elsewhere in the code, essentially setting the number of open
files to 1. If you want to preserve the open file count, just save the
original nopen(iprefix) in a temp variable and restore it after the call to
open the file. (~lines 344)
For 0.f00000 files you can reset the variable nfld in prepost.f, subroutine
mfo_open_files() before the "call mbyte_open(fname,fid0,ierr)" on line
~1703
Let me know if that doesn't work ok.
Katherine
On Sun, Aug 31, 2014 at 1:17 PM, <nek5000-users at lists.mcs.anl.gov> wrote:
> Hi Katherine,
>
> I was wondering if you had time to check on the parameter to be reset so
> that I can overwrite previous files?
>
> Bonne soirée,
> JC
>
>
> 2014-08-15 16:57 GMT+02:00 <nek5000-users at lists.mcs.anl.gov>:
>
> Hi Katherine,
>>
>> Thanks for the answer. I knew about the parameter 15 and was not sure
>> about the 64 bits precision. This is now more clear.
>> Regarding the overwriting, I had guessed that prepost has a parameter
>> that needs to be reset, but I haven't been able to figure out which one so
>> far. That would be very helpful if you can take a quick look at it.
>>
>> Thanks a lot and enjoy the end of the summer
>> ++
>>
>> JC
>>
>>
>> 2014-08-15 16:53 GMT+02:00 <nek5000-users at lists.mcs.anl.gov>:
>>
>>> Hi JC,
>>>
>>> You should be able to control the outpost frequency and precision using
>>> the parameters parameter 15 (IOSTEP) and parameter 63, respectively.
>>>
>>> So, if you wanted the first 100 steps to output every step, you would
>>> set something like:
>>>
>>> if(istep.le.100) param(15)=1
>>>
>>> To set the precision to 64bit, set param(63)=8, as well. Setting
>>> param(63) to anything else should default it to 8 byte precision.
>>>
>>> As far as overwriting previous fld files, you should be able to reset a
>>> parameter used in prepost.f that increments the file counter. I haven't
>>> had a chance to test this, but I can take a look at it last this weekend.
>>>
>>> hth.
>>> Katherine
>>>
>>>
>>> On Fri, Aug 15, 2014 at 3:34 AM, <nek5000-users at lists.mcs.anl.gov>
>>> wrote:
>>>
>>>> Howdy Nek's,
>>>>
>>>> I have a couple questions regarding the ouput of files:
>>>>
>>>> 1. How can force, within the code (say in usrchk), some files to be
>>>> output in 64 bits for high-accuracy checkpointing and other in regular 8
>>>> bits for simple visualisation?
>>>> 2. Say, during the first 1000 iterations, the code outpost a file
>>>> every single iteration so that I have blah0.f00001 to blah0.f01000. How can
>>>> I then force the code to outpost my new files (from istep = 1001 to 2000
>>>> say) rewriting on blah0.f00001 to blah0.f01000?
>>>>
>>>> Thanks a lot.
>>>> Regards,
>>>>
>>>> JC
>>>>
>>>> --
>>>> Jean-Christophe Loiseau
>>>> Homepage <https://sites.google.com/site/loiseaujc/>
>>>>
>>>> _______________________________________________
>>>> Nek5000-users mailing list
>>>> Nek5000-users at lists.mcs.anl.gov
>>>> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Nek5000-users mailing list
>>> Nek5000-users at lists.mcs.anl.gov
>>> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>>>
>>>
>>
>>
>> --
>> Jean-Christophe Loiseau
>> Homepage <https://sites.google.com/site/loiseaujc/>
>>
>> _______________________________________________
>> Nek5000-users mailing list
>> Nek5000-users at lists.mcs.anl.gov
>> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>>
>>
>
>
> --
> Jean-Christophe Loiseau
> Homepage <https://sites.google.com/site/loiseaujc/>
>
> _______________________________________________
> 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/20140904/46d42dad/attachment-0001.html>
More information about the Nek5000-users
mailing list