The first picture shows the error message I got when running CCTM. Why did this error occur? The last two pictures show the error locations in the AEROSOL_CHEMISTRY.F
module. Is it because I didn’t initialize RJ_RES
? But I directly used the variables from the PHOTO_MOD
module.
Initially, I intended to run the AEROSOL_CHEMISTRY.F
module, but I got an error saying that PHOT_MOD.F
was not found. So, I added PHOT_MOD.o
as a dependency for AEROSOL_CHEMISTRY.o
in the Makefile. Later, the build process (bld
) completed successfully. However, this problem occurred when I was running CCTM.I would be extremely grateful if someone could answer my question or provide me with some ideas.
USE RUNTIME_VARS
USE GRID_CONF ! horizontal & vertical domain specifications
USE RXNS_DATA
USE AERO_DATA
USE AEROMET_DATA, ONLY: f6dpi, airdens
USE PRECURSOR_DATA
USE SOA_DEFN
USE ELMO_DATA
!USE ELMO_PROC
USE CENTRALIZED_IO_MODULE
USE ASX_DATA_MOD, ONLY: MET_DATA, GRID_DATA
USE phot, ONLY: RJ, RJ_RES, RJ_SUB
USE CSQY_DATA, ONLY: LHNO3
IMPLICIT NONE
INCLUDE SUBST_CONST ! CMAQ constants
COSZ = MET_DATA%COSZEN( C, R )
RJ_RES = 1.0
IF ( COSZ .LE. 0.0 ) THEN
DARK = .TRUE. ! night
ELSE
DARK = .FALSE. ! day
JHNO3 = RJ_RES( C, R, L, LHNO3 ) ! 1/min
END IF