compilation of mHM v5.4 under easybuild with cmake not possible
Hello,
sorry for bothering again with compilation issues. Unfortunately I cannot figure it out myself. I need to compile mHM v5.4 (commit 7033595d) for the current drought monitor with the new module system. Strangely compilation with Cmake (tried both iomkl/2018b and iomkl/2020a) aborts with errors. When compiling with the old Makefile and moduleLoads (intel18) it works without problems.
Any hint what I can do?
these are the error messages i get:
/work/boeing/mhm_v5.4/src/mHM/mo_mhm_eval.f90(717): error #6404: This name does not have a type, and must have an explicit type. [L1_AREACELL]
area_basin = sum(L1_areaCell(s1:e1) )
--------------------------------^
/work/boeing/mhm_v5.4/src/mHM/mo_mhm_eval.f90(717): error #6514: Substring or array slice notation requires CHARACTER type or array. [L1_AREACELL]
area_basin = sum(L1_areaCell(s1:e1) )
--------------------------------^
/work/boeing/mhm_v5.4/src/mHM/mo_mhm_eval.f90(717): error #6362: The data types of the argument(s) are invalid. [SUM]
area_basin = sum(L1_areaCell(s1:e1) )
--------------------------------^
/work/boeing/mhm_v5.4/src/mHM/mo_mhm_eval.f90(717): error #6361: An array-valued argument is required in this context. [SUM]
area_basin = sum(L1_areaCell(s1:e1) )
--------------------------------^
/work/boeing/mhm_v5.4/src/mHM/mo_mhm_eval.f90(717): error #6303: The assignment operation or the binary expression operation is invalid for the data types of the two operands. [SUM]
area_basin = sum(L1_areaCell(s1:e1) )
----------------------------^
/work/boeing/mhm_v5.4/src/mHM/mo_mhm_eval.f90(723): error #6514: Substring or array slice notation requires CHARACTER type or array. [L1_AREACELL]
basin_avg_TWS_sim(tt,ii) = ( dot_product( TWS_field (s1:e1), L1_areaCell(s1:e1) ) / area_basin )
----------------------------------------------------------------------------^
/work/boeing/mhm_v5.4/src/mHM/mo_mhm_eval.f90(723): error #6362: The data types of the argument(s) are invalid. [DOT_PRODUCT]
basin_avg_TWS_sim(tt,ii) = ( dot_product( TWS_field (s1:e1), L1_areaCell(s1:e1) ) / area_basin )
----------------------------------------------------------------------------^
/work/boeing/mhm_v5.4/src/mHM/mo_mhm_eval.f90(723): error #6372: One-dimensional array-valued arguments are required in this context. [DOT_PRODUCT]
basin_avg_TWS_sim(tt,ii) = ( dot_product( TWS_field (s1:e1), L1_areaCell(s1:e1) ) / area_basin )