[Nek5000-users] Restart option failed

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Mon Apr 14 08:49:25 CDT 2014


Hi Kamal,

If you use one of the nek scripts in tools/scripts (e.g., nek, nekb, nekmpi, nekbmpi, etc.), the
path issues should be resolved for you.  That's the normal approach.  I believe some of this
is outlined in the "quick start" section of the manual.

Best, Paul

________________________________
From: nek5000-users-bounces at lists.mcs.anl.gov [nek5000-users-bounces at lists.mcs.anl.gov] on behalf of nek5000-users at lists.mcs.anl.gov [nek5000-users at lists.mcs.anl.gov]
Sent: Sunday, April 13, 2014 6:55 AM
To: nek5000-users at lists.mcs.anl.gov
Subject: Re: [Nek5000-users] Restart option failed

Hello Neks,

I figured out where the error of restart fail comes from. Its because the code is not looking in to the working directory for the file.


In " byte.c " file I made a small change to the byte_read () function, instead of having the variable " name " I changed it to the path of my restart file
----------------------------------------------------------------------------------------------------
if (!fp)
  {
     if (!(fp=fopen("/home/2014012/jpeixi01/neksamples/eddy/eddy_uv0.f00012","rb")))
     {
        printf("%s\n",name);
        printf("byte_read() :: fopen failure2!\n");
        *ierr=1;
        return;
     }
     flag=READ;
  }
-----------------------------------------------------------------------------------------------------

this worked for me.

Now I would like to know why is the code not looking into the working directory, If so where do I change it to overcome this problem so that I don't have to change the path every single time.


Thanks a lot,
BOW



On 11/04/2014 17:43, nek5000-users at lists.mcs.anl.gov<mailto:nek5000-users at lists.mcs.anl.gov> wrote:

Hi,

Is your restart file a 0.f00000 format?
If the param (67) is not set in the .usr file, the default is set to 0 . f00000.

Katie

Katie

On Apr 11, 2014 9:56 AM, <nek5000-users at lists.mcs.anl.gov<mailto:nek5000-users at lists.mcs.anl.gov>> wrote:
Hi Paul,

I don't change parameters through the .usr file.
Thank you

Kamal

On 11/04/2014 16:52, nek5000-users at lists.mcs.anl.gov<mailto:nek5000-users at lists.mcs.anl.gov> wrote:

Hi Kamal,

Make certain tey aren't reset in your .usr file.

Best, Paul

________________________________
From: nek5000-users-bounces at lists.mcs.anl.gov<mailto:nek5000-users-bounces at lists.mcs.anl.gov> [nek5000-users-bounces at lists.mcs.anl.gov<mailto:nek5000-users-bounces at lists.mcs.anl.gov>] on behalf of nek5000-users at lists.mcs.anl.gov<mailto:nek5000-users at lists.mcs.anl.gov> [nek5000-users at lists.mcs.anl.gov<mailto:nek5000-users at lists.mcs.anl.gov>]
Sent: Thursday, April 10, 2014 9:09 AM
To: nek5000-users at lists.mcs.anl.gov<mailto:nek5000-users at lists.mcs.anl.gov>
Subject: Re: [Nek5000-users] Restart option failed


Hi JC,

Thanks for the reply

The parameters are positive
   0.00000     p064 =1 --> perturbation restart
   1.00000     p065 #iofiles (eg, 0 or 64); <0 --> sep. dirs
   6.00000     p066 output : <0=ascii, else binary
   6.00000     p067 restart: <0=ascii, else binary

Regards,
Kamal


On 11/04/2014 14:18, nek5000-users at lists.mcs.anl.gov<mailto:nek5000-users at lists.mcs.anl.gov> wrote:
Hi Kamal,

Check out the parameters 64 or 65 in your .rea file. It is very likely that it is set to -4 instead of a positive number.

Cheers,
JC


2014-04-10 14:13 GMT+02:00 <nek5000-users at lists.mcs.anl.gov<mailto:nek5000-users at lists.mcs.anl.gov>>:
Hello Neks,

I tried to restart my simulation from a previous output *.f file but it failed

I set the restart option in *.rea to 1 and added the file name.

Could some please tell me what might be the possible cause for this ?

***********************************************************************
 nekuic (1) for ifld            1
 Reading checkpoint data
       0       0 OPEN: extens0.f00250
extens0.f00250
byte_read() :: fopen failure2!
ERROR: Error reading restart header in mfi_prepare  ierr=  1

call exitt: dying ...

************************************************************************

Thanks in advance.

Kamal

_______________________________________________
Nek5000-users mailing list
Nek5000-users at lists.mcs.anl.gov<mailto: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<mailto: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<mailto: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<mailto: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<mailto: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/20140414/a75d898d/attachment.html>


More information about the Nek5000-users mailing list