Following your guidance and suggestions, I have modified the relevant makefile files in src to read as follows: LIBS=(LDIRS) (LIB_SYS) $(LIBS-COMPILE)
-L/home/yz/model_lib/netcdf/lib -lnetcdff -lnetcdf -qopenmp
-L/home/yz/model_lib/hdf5/lib -lhdf5_fortran -lhdf5_hl -lhdf5
-L/home/yz/model_lib/zlib -lz
LIBS_DEBUG = (LDIRS) (LIBS_DEBUG_SYS) $(LIBS_COMPILE)
-L/home/yz/model_lib/netcdf/lib -lnetcdff -lnetcdf
-L/home/yz/model_lib/hdf5/lib -lhdf5_hl -lhdf5
-L/home/yz/model_lib/zlib -lz
LIBS_PVM = (LDIRS) -liocpl (LIBS) -lpvm3 -mp (LIBS_COMPILE)
LIBS_PVMDB = (LDIRS) -liocpl (LIBS) -lpvm3 -mp (LIBS_COMPILE)
FFLAGS = -O3 -132 -zero -save -common-args -convert big_endian
-I/home/yz/SMOKE-3.5/SMOKE3-2018/subsys/smoke/src/inc
-I/home/yz/SMOKE-3.5/SMOKE3-2018/subsys/smoke/src/emmod/Linux2_x86_64ifort
-I/home/yz/model_lib/ioapi-3.2/ioapi/fixed_src
-I/home/yz/SMOKE-3.5/SMOKE3-2018/subsys/edss_tools/src/modules/Linux2_x86_64ifort
-I/home/yz/SMOKE-3.5/SMOKE3-2018/subsys/filesetapi/Linux2_x86_64ifort
-I/home/yz/model_lib/hdf5/include
-I/home/yz/model_lib/zlib/include
-I/home/yz/model_lib/netcdf/include
Although the compilation was successful, by then I saw logs related to netcdf related issues
output_error.txt (528.3 KB)
Supplement on November 25, 2024: In Dr Under Coats’ guidance and advice, I identified the cause of the error. The makefile in the src/smkmmerge file had a definition for LIBS2, but I did not make any changes. Therefore, I later modified it to be the same as LIBS (LIBS2=
(LDIRS) (LIB_SYS) $(LIBS-COMPILE))
-L/home/yz/model_lib/netcdf/lib -lnetcdff -lnetcdf
-L/home/yz/model_lib/hdf5/lib -lhdf5_fortran -lhdf5_hl -lhdf5
-L/home/yz/model_lib/zlib -lz)
Successfully compiled through the following steps:
source /home/yz/SMOKE-3.5/SMOKE3-2018/scripts/platform
cd /home/yz/SMOKE-3.5/SMOKE3-2018/subsys/smoke/assigns
source ASSIGNS.nctox.cmaq.cb05_soa.us12-nc
cd /home/yz/SMOKE-3.5/SMOKE3-2018/subsys/smoke/scripts/make
./Makeall clean
./Makeall >& output_error.txt
Thank you again, Dr Coats, your guidance