Closed Syize closed 1 month ago
Have you set the PNETCDF
environment variable to the installation path for Parallel-netCDF?
Thanks for reply. It turns out I forget to set NETCDF
, PNETCDF
and PIO
environment variables when building init_atmosphere
core : )
Compile "init_atmosphere" core failed with following settings:
error messages from make are:
These "ncmpi_*" symbol is from "libpnetcdf.a", which should be linked at the final step.
After checking the log, it seems the compile command:
should be
Adding
-lpnetcdf
tosrc/Makefile
solve this issue.gcc & gfortran (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
openmpi 4.1.2-2ubuntu1 amd64
netcdf 4.8.1-1 amd64
pnetcdf 4.8.1-2 amd64
PIO 2.6.2
uname -a
make gfortran