When compiling bldit_cctm.csh for CMAQ v5.4, errors related to vppm.F and twoway_rrtmg_aero_optics.F90 were encountered

I’m trying to compile CMAQ v5.4 using the gfortran compiler, following the official installation instructions. I’m using netcdf-c 4.8.1, netcdf-fortran 4.5.4, ioapi 3.2, and mpi 3.0.4.

So far, I have successfully compiled MCIP, ICON, and BCON. However, when attempting to compile CCTM at the end, I encountered errors in vppm.F and twoway_rrtmg_aero_optics.F90.

I haven’t found a solution for these issues yet and would greatly appreciate any assistance. Please find my config_cmaq.csh file and bldit.cctm.error.txt

config_cmaq.csh (11.7 KB)
file attached for details.
bldit.cctm.error.txt (156.9 KB)

Please attach a copy of your bldit script (bldit_cctm.csh renamed as bldit_cctm.txt).

Are you using openmpi

Could you also try modifying the following line in your config_cmaq.csh under the case gcc section:

    setenv myFC mpif90

change to
setenv myFC mpifort

https://www.open-mpi.org/faq/?category=mpi-apps#mpifort-vs-mpif77-and-mpif90