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

Building cesm case with PNETCDF enabled

Hi all,I was trying to run CESM1_1_1 with "I" compset and want to enable PNETCDF to speed up the I/O processes, but encountered some problems when building the case (with pnetcdf). All the building processes went smooth until the last step that form the final "cesm.exe". The problem came with something like "undefined reference to `netcdf_mp_nf90_inquire_variable_'". (The complete building log (for the last step) is attached.) Actually, I have once successfully built and run the case by using only NETCDF. Not sure if it is because the configurations in the "Macros" file, so I alao attached here the "Macros" file that with and without pnetcdf configurations. P.S. I am running the case on TACC lonestar, and the modules that available are as follows:  1) TACC          3) Linux      5) cluster-paths    7) mvapich2/1.6    9)  tar/1.22        11) ncl_ncarg/6.1.2    13) pnetcdf/1.3.1    15) nco/4.0.7  2) TACC-paths    4) cluster    6) intel/11.1       8) gzip/1.3.12     10) netcdf/3.6.3    12) gsl/1.15           14) hdf5/1.8.5 Does anyone have an idea on this? Any of your suggestions are appreciated. 
Sincerely,Long 
 

jedwards

CSEG and Liaisons
Staff member
Pnetcdf is a runtime option you enable by changing PIO_Typename='pnetcdf' in the env_run.xml file.   You shouldn't need to modify Macros at all.
 
Thank you! Yes, the value for PIO_Typename is already set to 'pnetcdf', I just modified Macros a little to make sure it have the right paths for (P)NETCDF DIRS and LIBS as I am using a userdefined machine. Really confused on this compiling error. 
 
Seems I have mistakely configured the Macros file. Just modify it by adding the link to Netcdf as well (below), and both the compiling and implementation processes went smooth and succedded. Thank you all for your valuable comments and help. I have attached the final Macros file in case it helps. "SLIBS+=-L${TACC_NETCDF_LIB} -lnetcdf -L$(TACC_PNETCDF_LIB) -lpnetcdf"
 
Top