Hello, I have a problem for the CMAQ compilation.
I tried to include new aerosol species for new model test, and AERO_DATA.F showed this error.
AERO_DATA.F(780): error #5157: Too many continuation lines
& spcs_list_type('sh_ak22 ',F,T,F, cm_set, 1400.0, ' ',' ',0.0 ,'REV',F,F, 0, 2.8, 6.1,T, 'DUST ', 0.15),
Do I need to make a seperate input file to resolve this problem? Is there any chemical species limitation to include in the AERO_DATA.F script?
Thank you.
This looks like a compiler-limitation issue. What is the Fortran compiler?
By the way, it is generally good practice to quote the entire command that generated the error, in addition to the error message itself.
I used intel fortran, version 2020.0.166.
mpifort -c -fixed -132 -O3 -fno-alias -mp1 -fp-model source -ftz -simd -align all -xHost -vec-guard-write -unroll-aggressive -I /blue/mjang/ganghan.kim/CMAQ/CMAQ_UNIPAR_test/lib/x86_64/intel/ioapi/lib -I /blue/mjang/ganghan.kim/CMAQ/CMAQ_UNIPAR_test/lib/x86_64/intel/ioapi/include_files -I /blue/mjang/ganghan.kim/CMAQ/CMAQ_UNIPAR_test/lib/x86_64/intel/mpi -I. -Dparallel -Dm3dry_opt -DSUBST_BARRIER=SE_BARRIER -DSUBST_GLOBAL_MAX=SE_GLOBAL_MAX -DSUBST_GLOBAL_MIN=SE_GLOBAL_MIN -DSUBST_GLOBAL_MIN_DATA=SE_GLOBAL_MIN_DATA -DSUBST_GLOBAL_TO_LOCAL_COORD=SE_GLOBAL_TO_LOCAL_COORD -DSUBST_GLOBAL_SUM=SE_GLOBAL_SUM -DSUBST_GLOBAL_LOGICAL=SE_GLOBAL_LOGICAL -DSUBST_GLOBAL_GATHER=SE_GLOBAL_GATHER -DSUBST_GLOBAL_BCAST=SE_GLOBAL_BCAST -DSUBST_LOOP_INDEX=SE_LOOP_INDEX -DSUBST_SUBGRID_INDEX=SE_SUBGRID_INDEX -DSUBST_HI_LO_BND_PE=SE_HI_LO_BND_PE -DSUBST_SUM_CHK=SE_SUM_CHK -DSUBST_SE_INIT=SE_INIT -DSUBST_INIT_ARRAY=SE_INIT_ARRAY -DSUBST_COMM=SE_COMM -DSUBST_MY_REGION=SE_MY_REGION -DSUBST_SLICE=SE_SLICE -DSUBST_GATHER=SE_GATHER -DSUBST_DATA_COPY=SE_DATA_COPY -DSUBST_IN_SYN=SE_IN_SYN -DSUBST_PE_COMM=\"./PE_COMM.EXT\" -DSUBST_CONST=\"./CONST.EXT\" -DSUBST_FILES_ID=\"./FILES_CTM.EXT\" -DSUBST_EMISPRM=\"./EMISPRM.EXT\" -DSUBST_MPI=\"/blue/mjang/ganghan.kim/CMAQ/CMAQ_UNIPAR_test/lib/x86_64/intel/mpi/include/mpif.h\" AERO_DATA.F
I this is the compiling command. When they compile, It did not show error, but when compiler processed the cksummer.F, the error has been appeared.
Your first error is in compiling AERO_DATA. That is what you need to solve.
AERO_DATA is a module that is used by many other files, so you will get other compilation errors saying that the module is not available.
I think the maximum number of continuation lines in the 2008 Fortran standard is 255, though Intel may allow more than that. How many species have you added to aerolist? (what is the value of n_aerolist?
You might be able to split up the statement along these lines:
Type( spcs_list_type ), Parameter :: aerolist( n_aerolist )
aerolist(1:250) = (/
...
/)
aerolist(251:500) = (/
...
/)
You might need to remove the parameter attribute.
1 Like