Skip to content

Commit da38e55

Browse files
authored
Merge pull request #1518 from fvitt/cesm_bld_fix
cam6_4_161: fixes for root dirs in cesm blds
2 parents fa786a7 + 1898373 commit da38e55

3 files changed

Lines changed: 59 additions & 4 deletions

File tree

cime_config/buildlib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def _build_tuvx(caseroot, libroot, bldroot):
203203
bldpath = os.path.join(bldroot, "tuv-x")
204204
if not os.path.exists(bldpath):
205205
os.makedirs(bldpath)
206-
srcpath = os.path.abspath(os.path.join(case.get_value("COMP_ROOT_DIR_ATM"), \
206+
srcpath = os.path.abspath(os.path.join(case.get_value("SRCROOT"), \
207207
"libraries", "tuv-x", ""))
208208
logger.info("Building TUV-x in {} from source in {}\n".format(bldpath, srcpath))
209209

cime_config/buildnml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def buildnml(case, caseroot, compname):
4949
COMP_INTERFACE = case.get_value("COMP_INTERFACE")
5050
CALENDAR = case.get_value("CALENDAR")
5151
COMPSET = case.get_value("COMPSET")
52-
52+
5353
# The Gregorian calendar currently can't be used with spinup compsets
5454
# because CAM's stream-handling code can't handle a request for data
5555
# for Feb 29 (possibly specified in a leapday testmod) from a non-leap-year
@@ -64,6 +64,7 @@ def buildnml(case, caseroot, compname):
6464
"Gregorian calendar (modifier _cG) cannot be used with spinup compset \n {}".format(COMPSET)
6565
)
6666

67+
tuvx_data_src = os.path.join(srcroot, "libraries", "tuv-x", "data")
6768

6869
testsrc = os.path.join(srcroot, "components", "cam")
6970
if os.path.exists(testsrc):
@@ -235,8 +236,7 @@ def buildnml(case, caseroot, compname):
235236
dest_data = os.path.join(rundir, "data")
236237
if os.path.exists(dest_data):
237238
shutil.rmtree(dest_data)
238-
shutil.copytree(os.path.join(srcroot, "libraries", "tuv-x", "data"), \
239-
dest_data)
239+
shutil.copytree(tuvx_data_src, dest_data)
240240

241241
###############################################################################
242242
def _main_func():

doc/ChangeLog

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,60 @@
11
===============================================================
22

3+
Tag name: cam6_4_161
4+
Originator(s): fvitt
5+
Date: 27 Mar 2026
6+
One-line Summary: Fix for CESM builds
7+
Github PR URL: https://github.com/ESCOMP/CAM/pull/1518
8+
9+
Purpose of changes (include the issue number and title text for each relevant GitHub issue):
10+
11+
Issue #1518:
12+
Fixes for TUV-x library builds in cesm tree as well as stand-alone cam tree.
13+
14+
Describe any changes made to build system:
15+
16+
Corrections to root paths needed to be able to build TUV-x library when
17+
CAM is checked out into the CESM tree and stand-alone.
18+
19+
Describe any changes made to the namelist: N/A
20+
21+
List any changes to the defaults for the boundary datasets: N/A
22+
23+
Describe any substantial timing or memory changes: N/A
24+
25+
Code reviewed by: cacraigucar
26+
27+
List all files eliminated: N/A
28+
29+
List all files added and what they do: N/A
30+
31+
List all existing files that have been modified, and describe the changes:
32+
M cime_config/buildlib
33+
M cime_config/buildnml
34+
- corrections to directory locations
35+
36+
If there were any failures reported from running test_driver.sh on any test
37+
platform, and checkin with these failures has been OK'd by the gatekeeper,
38+
then copy the lines from the td.*.status files for the failed tests to the
39+
appropriate machine below. All failed tests must be justified.
40+
41+
derecho/intel/aux_cam: All PASS
42+
43+
derecho/nvhpc/aux_cam:
44+
FAIL ERS_Ln9.ne30pg3_ne30pg3_mt232.FHISTC_LTso.derecho_nvhpc.cam-outfrq9s_gpu_default COMPARE_base_rest
45+
- pre-existing failure -- see https://github.com/ESCOMP/CAM/issues/1513
46+
47+
izumi/nag/aux_cam:
48+
FAIL ERC_D_Ln9.f10_f10_mt232.FHIST_C5.izumi_nag.cam-outfrq3s_subcol
49+
- pre-existing failure -- see https://github.com/ESCOMP/CAM/issues/1514
50+
51+
izumi/gnu/aux_cam: All PASS
52+
53+
Summarize any changes to answers: bit-for-bit
54+
55+
===============================================================
56+
===============================================================
57+
358
Tag name: cam6_4_160
459
Originator(s): fvitt
560
Date: 26 Mar 2026

0 commit comments

Comments
 (0)