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

CESM displays esmf error when making mapping file

weixinyu

weixinyu
Member
dear all
I am making the surface data using . /mkmapdata.sh -r $GRIDNAME -f $GRIDFILE -t regional when making the mapping file, I get an error 20240524 010600.733 ERROR PET0 ESMF_RegridWeightGen.F90:1743 ESMF_RegridWeightGenFile Library needed by ESMF not present - - ESMF_NETCDF not defined when lib was compiled. RegridWeightGenFile Library needed by ESMF not present - - ESMF_NETCDF not defined when lib was compiled (as in Figure 1).
So I recompiled ESMF, but if I define export ESMF_NETCDF=/home/u4/Downloads/netcdf-intel in ESMF environment I will get the error Fatal Error: Can't open module file 'netcdf.mod' for reading at (1): No such file or directory (as in Figure 2 ), but without defining ESMF_NETCDF, I will get the error NETCDF will not report an error, please ask what is the cause of this.
thank you very much!

1.png
2 (2).png
 

jedwards

CSEG and Liaisons
Staff member
ESMF needs to have been built with IO support in particular the netcdf fortran library is needed. This is distributed separately from the c library and may not be available in your install. Look for files libnetcdff.a and netcdf.mod.
 

weixinyu

weixinyu
Member
Thank you very much, I have solved this problem, but when I make check it shows that most of them passed and only a small part failed, does this have any effect on my subsequent use, the result is as shown in the picture, please answer, thank you!222.png
 

weixinyu

weixinyu
Member
ESMF needs to have been built with IO support in particular the netcdf fortran library is needed. This is distributed separately from the c library and may not be available in your install. Look for files libnetcdff.a and netcdf.mod.
Dear jedwards
I'm trying to create the ground table data but once again I'm getting an error, can you help me see what I should do to fix the error above the picture?mapping报错.png
 

jedwards

CSEG and Liaisons
Staff member
It seems that in some versions of netcdf, the f90 symbols are not added to the shared library libnetcdff.so, the solution is
to explicitly link the static library libnetcdff.a.
 
Top