Project

General

Profile

error in routine open_file (error code 2)

Added by Alexander Walter over 5 years ago

Hello,

I am running the CCLM in a model chain.
Everything went fine, but now all of a sudden I get an error in the int2lm step:

In month 06/2003 after successful opening all necessary input lffd-files, and writing output lbfd-files til 2003070100 the program tries to open an lfsd2003070103 file, which obviously does not exist (and doesn’t have to):

 OPEN: ncdf-file: 
 .../input/int2lm/2003_06/lffd2003070100.nc
 CLOSING ncdf FILE
 org_vert_inter_lm        : Boundary layer height in COARSE layer # :
 24
 OPEN: ncdf-file: 
 .../output/int2lm/2003_06/lbfd2003070100.nc
 CLOSING ncdf FILE
 OPEN: ncdf-file: 
 .../input/int2lm/2003_06/lfsd2003070103.nc
 No such file or directory
 *------------------------------------------------------------*
 *    PROGRAM TERMINATED BECAUSE OF ERRORS DETECTED
 *              IN ROUTINE:   open_file
 *
 *    ERROR CODE is            2
 *    
 *------------------------------------------------------------*

Neither int2lm nor model configuration has been changed in the meantime.
int2lm version is 1.10_clm14 (model version is 4.8_clm19)

Thanks!


Replies (8)

RE: error in routine open_file (error code 2) - Added by Hans-Juergen Panitz over 5 years ago

I assume that the file lffd2003070103.nc does not exist, at least not in that directory from which INT2LM reads these lffd-files.

Hans-Juergen

RE: error in routine open_file (error code 2) - Added by Alexander Walter about 5 years ago

Thanks.
But as I wrote, it is for June 2003. So the last file being opened should be the 00z file of the next month: lffd2003070100.

Instead it additionaly tries to open the file lfsd2003070103, i.e. wrong/unclear file header lfsd plus a not necessary timestep.
Of course this file is not in the directory. But why should it exist in that directory (for June) at all?
As I said all int2lm runs before worked fine without such a file.

The question is why int2lm now demands this file?

RE: error in routine open_file (error code 2) - Added by Burkhardt Rockel about 5 years ago

Can you provide the files INPUT and OUTPUT?

RE: error in routine open_file (error code 2) - Added by Alexander Walter about 5 years ago

Burkhardt Rockel wrote:

Can you provide the files INPUT and OUTPUT?

Thanks. Files are attached.

INPUT INPUT 2.11 KB
OUTPUT OUTPUT 229 KB

RE: error in routine open_file (error code 2) - Added by Burkhardt Rockel about 5 years ago

ydate_ini='2003060100’, hstart=0.0, hstop=5136, hincbound=3,
is not just for June, it goes until 2004010100
If you want only June you need to set
ydate_ini='2003060100’, hstart=0.0, hstop=720, hincbound=3,

RE: error in routine open_file (error code 2) - Added by Alexander Walter about 5 years ago

Ok.
Do you have an idea, how this could happen since I run the model in chain mode?
And I didn’t change the configuration in the meantime.

RE: error in routine open_file (error code 2) - Added by Burkhardt Rockel about 5 years ago

This can normally not happen.
In the int2lm.job.tmpl after the line

HSTOP=$(@{UTILS_BINDIR}/cfu get_hours @{CURRENT_DATE} @{NEXT_DATE} @{ITYPE_CALENDAR})

you may put an echo:
echo  @{CURRENT_DATE} @{NEXT_DATE} @{ITYPE_CALENDAR} $HSTOP

run the command
subchain int2lm 2003060100

and check whether @{CURRENT_DATE}, @{NEXT_DATE} and $HSTOP have the right values.
In your case @{NEXT_DATE} must have the value 2003070100.

RE: error in routine open_file (error code 2) - Added by Alexander Walter about 5 years ago

Now it works again. @{NEXT_DATE} was 2003070100 as supposed.
Though I have no clue why this happened.

Anyway. Thanks for your fast help.

Alexander

    (1-8/8)