ICTP / RegCM

ICTP Regional Climate Model
https://www.ictp.it/esp/about
Other
57 stars 43 forks source link

Compilation without CLM45 #17

Closed DesmetQuentin closed 2 years ago

DesmetQuentin commented 2 years ago

Hi!

Just to notify you there is an inconsistency between _mpplib/mod_regcmtypes.F90 (lines 466 to 472) and _mod_atmstub.F90 (lines 493 to 498) for the definition and memory allocation of some parameters of lms. The quoted lines in _mod_atmstub.F90 should be inside a #ifdef CLM45 (or reversely in _mod_regcmtypes.F90). Maybe I am missing something though...

Cheers, Quentin

graziano-giuliani commented 2 years ago

The compilation of the mod_atm_stub.F90 is conditional to the CLM45 enabled compilation. The clmsa (Community Land Model Stand Alone) program is compiled only if the CLM4.5 library is compiled. If we do not compile the CLM45, no clmsa program, no nedd to compile the mod_atm_stub object. This is in the Makefile.am in Main (line ~106)

if DO_COMPILE_LIBCLM45 bin_PROGRAMS = regcm clmsa else bin_PROGRAMS = regcm endif

DesmetQuentin commented 2 years ago

Oh thank you very much ! Then I must have messed up the Makefile.am somewhere cause the compilation failed at these lines. It's all my bad.