I am attempting to build cprnc according to the instructions in the README file, by running the following commands in cime/tools/cprnc:
COMPILER=intel
MPILIB=intelmpi
CIMEROOT=../.. ../configure --macros-format=Makefile --mpilib=intelmpi
CIMEROOT=../.. source ./.env_mach_specific.sh && make
I am getting the make errors below. I don't understand why I'm getting this error, as the paths in Macros.make (attached) appear to be correct. Do I need to add the include path for netcdf-fortran-mpi to FFLAGS in order for netcdf.mod to be found?
[ 12%] Built target COMPARE_VARS
[ 25%] Building Fortran object CMakeFiles/cprnc.dir/filestruct.F90.o
f951: Warning: Nonexistent include directory ‘/include’ [-Wmissing-include-dirs]
/home/ntandon/my_cesm_sandbox/cime/tools/cprnc/filestruct.F90:2:6:
use netcdf
1
Fatal Error: Can't open module file ‘netcdf.mod’ for reading at (1): No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/cprnc.dir/build.make:80: CMakeFiles/cprnc.dir/filestruct.F90.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:77: CMakeFiles/cprnc.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
COMPILER=intel
MPILIB=intelmpi
CIMEROOT=../.. ../configure --macros-format=Makefile --mpilib=intelmpi
CIMEROOT=../.. source ./.env_mach_specific.sh && make
I am getting the make errors below. I don't understand why I'm getting this error, as the paths in Macros.make (attached) appear to be correct. Do I need to add the include path for netcdf-fortran-mpi to FFLAGS in order for netcdf.mod to be found?
[ 12%] Built target COMPARE_VARS
[ 25%] Building Fortran object CMakeFiles/cprnc.dir/filestruct.F90.o
f951: Warning: Nonexistent include directory ‘/include’ [-Wmissing-include-dirs]
/home/ntandon/my_cesm_sandbox/cime/tools/cprnc/filestruct.F90:2:6:
use netcdf
1
Fatal Error: Can't open module file ‘netcdf.mod’ for reading at (1): No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/cprnc.dir/build.make:80: CMakeFiles/cprnc.dir/filestruct.F90.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:77: CMakeFiles/cprnc.dir/all] Error 2
make: *** [Makefile:130: all] Error 2