Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

pio_support::pio_die:: myrank= -1 : ERROR: nf_mod.F90: 730 : NetCDF: Variable not found

Yuan Sun

Yuan Sun
Member
Hi all,

I am creating a new stream module in CLMU with CESM2.1.3.

When I ran ./case.submit, there was an error in reading stream data. I attached the cesm.log and lnd.log.

In the end of cesm log, the error is
[0] pio_support::pio_die:: myrank= -1 : ERROR: nf_mod.F90: 730 : NetCDF: Variable not found
[0] application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0

In the end of lnd.log,:
(shr_dmodel_readstrm) open : /home/yuansun/projects/cesm/inputdata/lnd/clm2/urbandata/CLM50_DynUrbanAlbedo_YuanSun_2023_0.9x1.25_simyr1849-2106_c20231005.nc
(shr_dmodel_readstrm) file lb: /home/yuansun/projects/cesm/inputdata/lnd/clm2/urbandata/CLM50_DynUrbanAlbedo_YuanSun_2023_0.9x1.25_simyr1849-2106_c20231005.nc 155


I read the nf_mod.F90 and the 730 line is : call check_netcdf(File, ierr,__PIO_FILE__,__LINE__). Then I guessed there might be a PIO_noerr.

I am confused about what is wrong and uncertain if it is an input data issue (nc file is already in classic format) or a module code issue. Also I do not know what '155' mean.

Thank you for taking an insight and offering any comments.

Best,
Yuan
 

Yuan Sun

Yuan Sun
Member
Log as below, please.
 

Attachments

  • cesm.log.231026-152722.txt
    25.2 KB · Views: 19
  • lnd.log.231026-152722.txt
    19.7 KB · Views: 13

oleson

Keith Oleson
CSEG and Liaisons
Staff member
155 is the time slice in the file it is trying to read.
I think it is failing because the number of characters for stream_var_name is one less than required:

character(15), private :: stream_var_name(isturb_MIN:isturb_MAX)

I think it is supposed to find dyn_alb_roof_TBD but is finding dyn_alb_roof_TB because you've specified 15 characters instead of 16.
 

Yuan Sun

Yuan Sun
Member
Dear Keith,

Thank you for your suggestions. After I modified this mistake I made, the './case.submit' ran as expected.

the lnd log show the code works:
(shr_dmodel_readstrm) open : /home/yuansun/projects/cesm/inputdata/lnd/clm2/urbandata/CLM50_DynUrbanAlbedo_YuanSun_2023_0.9x1.25_simyr1849-2106_c20231005.nc
(shr_dmodel_readstrm) file lb: /home/yuansun/projects/cesm/inputdata/lnd/clm2/urbandata/CLM50_DynUrbanAlbedo_YuanSun_2023_0.9x1.25_simyr1849-2106_c20231005.nc 155
(shr_dmodel_readstrm) file ub: /home/yuansun/projects/cesm/inputdata/lnd/clm2/urbandata/CLM50_DynUrbanAlbedo_YuanSun_2023_0.9x1.25_simyr1849-2106_c20231005.nc 156

Thanks again.

Best,
Yuan
 

xiaoxiaokuishu

Ru Xu
Member
155 is the time slice in the file it is trying to read.
I think it is failing because the number of characters for stream_var_name is one less than required:

character(15), private :: stream_var_name(isturb_MIN:isturb_MAX)

I think it is supposed to find dyn_alb_roof_TBD but is finding dyn_alb_roof_TB because you've specified 15 characters instead of 16.
Hi, Oleson,
I also has the similar error (from cesm.log), but the error end at atm.log,
Addtional information, I use single-point simulation, the surf/domain/datm from CTSM5.1, but I use CLM5 to simulate,
I did not know is the compatible issues.
1733834083211.png
Best
 

slevis

Moderator
Staff member
I also has the similar error (from cesm.log), but the error end at atm.log,
Addtional information, I use single-point simulation, the surf/domain/datm from CTSM5.1, but I use CLM5 to simulate,
I did not know is the compatible issues.
Since the error appears in the atm.log file, I suspect that you used custom datm input files instead of the default ones. In that case, you may be able to isolate the problem by comparing the custom file last read when the simulation stopped versus one of the model's default ones.
 

xiaoxiaokuishu

Ru Xu
Member
Since the error appears in the atm.log file, I suspect that you used custom datm input files instead of the default ones. In that case, you may be able to isolate the problem by comparing the custom file last read when the simulation stopped versus one of the model's default ones.
Yes, you are correct, but I use GSWP dataset, but it is strange my stream file has ZBOT var,
but I check the Precip, Solr and TPHL, I did not find any ZBOT var, so I delete the ZBOT from
my stream files, then the model works....
 
Top