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
I'm attempting to port CESM 2.1.3 to my local linux cluster and receive an error during the pio build phase related to "can't open module file 'netcdf.mod' for reading at (1): no such file or directory".
I see that it found libnetcdff.so in /usr/lib64/libnetcdff.so
it can't find file netcdf.mod - where is it on your system?
Try setting env variable NetCDF_Fortran_INCLUDE_DIR to that location.
I've located the path to netcdf.mod on my system. However I am unsure where/how to add the env variable for netcdf fortran to that directory.
I have added a line under environment_variables in my config_machines.xml file pointing to the directory containing netcdf.mod using the case sensitive 'NetCDF_Fortran...' that you mentioned as well as in all caps (to match the formatting of 'NETCDF_PATH' there). Both cause ./create_newcase to fail with an error message that states that there is a not well-formed (invalid token) at the line in config_machines.xml where I've entered to path to netcdf.mod.
See below, copied from my machine info within config_machines.xml:
Thank you. I edited my config_machines.xml again for NetCDF_Fortran_INCLUDE_DIR and ran create_newcase under debug mode. This time create_newcase completed fine. BUT the pio build failed again under case.build. bldlog attached as is my config_machines.xml file. My machine is called 'marvin' and is the last machine listed in config_machines. It looks like the pio build still can't find NetCDF Fortran. On my system, there is only one netcdf installed at /netcdf/gcc/64/4.6.1. Perhaps this is netcdf_c and I also need to install netcdf_fortran?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.