Skip to content

Commit

Permalink
Merge remote-tracking branch 'jim/config_changes' into cam6_pumas_ddt
Browse files Browse the repository at this point in the history
  • Loading branch information
cacraigucar committed Nov 30, 2022
2 parents 8f670f9 + 4664a99 commit e701690
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions bld/configure
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@ elsif ($fc =~ /nvfor/) { $fc_type = 'nvhpc'; }

# User override for Fortran compiler type
if (defined $opts{'fc_type'}) { $fc_type = $opts{'fc_type'}; }

if ($fc_type == "oneapi") {$fc_type = 'intel'; }
if ($fc_type) {
$cfg_ref->set('fc_type', $fc_type);
if ($print>=2) { print "Fortran compiler type: $fc_type$eol"; }
Expand Down Expand Up @@ -2150,6 +2150,9 @@ sub write_filepath
}
if ($waccm_phys) {
print $fh "$camsrcdir/src/physics/waccm\n";
print $fh "$camsrcdir/src/physics/ali_arms\n";
print $fh "$camsrcdir/src/physics/ali_arms/subs\n";
print $fh "$camsrcdir/src/physics/ali_arms/include\n";
}
print $fh "$camsrcdir/src/ionosphere\n";

Expand Down Expand Up @@ -2178,10 +2181,6 @@ sub write_filepath
print $fh "$camsrcdir/src/physics/pumas-frozen\n";
}

print $fh "$camsrcdir/src/physics/ali_arms\n";
print $fh "$camsrcdir/src/physics/ali_arms/subs\n";
print $fh "$camsrcdir/src/physics/ali_arms/include\n";

# Superparameterization
if ($phys_pkg eq 'spcam_m2005' or $phys_pkg eq 'spcam_sam1mom') {
print $fh "$camsrcdir/src/physics/spcam\n";
Expand Down
2 changes: 1 addition & 1 deletion cime_config/buildcpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import os, sys, re
CIMEROOT = os.environ.get("CIMEROOT")
if CIMEROOT is None:
raise SystemExit("ERROR: must set CIMEROOT environment variable")
sys.path.append(os.path.join(CIMEROOT, "scripts", "Tools"))
sys.path.append(os.path.join(CIMEROOT, "CIME", "Tools"))

from standard_script_setup import *

Expand Down
4 changes: 2 additions & 2 deletions cime_config/buildlib
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ _CIMEROOT = os.environ.get("CIMEROOT")
if _CIMEROOT is None:
raise SystemExit("ERROR: must set CIMEROOT environment variable")

_LIBDIR = os.path.join(_CIMEROOT, "scripts", "Tools")
_LIBDIR = os.path.join(_CIMEROOT, "CIME", "Tools")
sys.path.append(_LIBDIR)

from standard_script_setup import *
Expand Down Expand Up @@ -99,7 +99,7 @@ def _build_cam(caseroot, libroot, bldroot):
complib = os.path.join(libroot, "libatm.a")
makefile = os.path.join(casetools, "Makefile")

cmd = "{} complib -j {} MODEL=cam COMPLIB={} -f {} {} " \
cmd = "{} complib -j {} COMP_NAME=cam COMPLIB={} -f {} {} " \
.format(gmake, gmake_j, complib, makefile, get_standard_makefile_args(case))
if cam_cppdefs:
cmd += " USER_CPPDEFS='{}'".format(cam_cppdefs)
Expand Down

0 comments on commit e701690

Please sign in to comment.