Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

"Where can I check the compilation order of all module files in src/biogeophys in CLM5.0?"

March Xu

MX
New Member
Hello,

I've been using CESM2.2.1 for local offline simulations, and I'm constantly confused about the compilation order and module hierarchy in the CESM2.2/components/clm/src/biogeophys/ directory.

While there is a CMakeLists.txt file in this directory, it is only used for unit testing and doesn't cover all module files. Without a Makefile in the directory, I find it difficult to understand the compilation dependencies. For example, I'm unsure whether SoilStateType.F90 is compiled into its .mod file before WaterStateType.F90.

I would be very grateful if someone could point me to the location of the Makefile that contains the compilation order information, or provide details about the specific compilation sequence of these modules.
 

slevis

Moderator
Staff member
I moved this to "infrastructure."

Though I do not know the answer, I might naively suggest looking in the /bld/lnd.bldlog... file to see in what order the files appear there.
 

jedwards

CSEG and Liaisons
Staff member
Dependencies are defined in file Depends in the clm/obj directory in your bld path. The two files you mention are shown below:

SoilStateType.o : SoilStateType.F90 spmdmod.mod histfilemod.mod decompmod.mod clm_varpar.mod clm_varctl.mod abortutils.mod shr_infnan_mod.mod patchtype.mod rootbiop\
hysmod.mod shr_log_mod.mod ncdio_pio.mod columntype.mod clm_varcon.mod restutilmod.mod shr_kind_mod.mod landunittype.mod

WaterStateType.o : WaterStateType.F90 restutilmod.mod excessicestreamtype.mod landunit_varcon.mod landunittype.mod shr_kind_mod.mod clm_time_manager.mod column_varc\
on.mod shr_assert_mod.mod watertracerutils.mod ncdio_pio.mod watertracercontainertype.mod columntype.mod clm_varcon.mod initverticalmod.mod gridcelltype.mod shr_log\
_mod.mod spmdmod.mod decompmod.mod histfilemod.mod clm_varpar.mod shr_const_mod.mod waterinfobasetype.mod clm_varctl.mod abortutils.mod shr_assert_mod.mod shr_asser\
t.h
 
Top