Skip to content

Commit

Permalink
Merge remote-tracking branch 'escomp/buildlib_update' into dynglacier…
Browse files Browse the repository at this point in the history
…_smaller_fluxes

Interdependent with the cime update to cime5.8.0
  • Loading branch information
billsacks committed Mar 12, 2019
2 parents d2ba980 + 13e6a8e commit 1addbe9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cime_config/buildlib
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ sys.path.append(_LIBDIR)

from standard_script_setup import *
from CIME.buildlib import parse_input
from CIME.build import get_standard_makefile_args
from CIME.case import Case
from CIME.utils import run_cmd, expect

Expand All @@ -31,7 +32,6 @@ def _main_func():
lnd_root = case.get_value("COMP_ROOT_DIR_LND")
gmake_j = case.get_value("GMAKE_J")
gmake = case.get_value("GMAKE")
mach = case.get_value("MACH")

#-------------------------------------------------------
# create Filepath file
Expand Down Expand Up @@ -63,10 +63,9 @@ def _main_func():

complib = os.path.join(libroot,"libclm.a")
makefile = os.path.join(casetools, "Makefile")
macfile = os.path.join(caseroot, "Macros.%s" % mach)

cmd = "%s complib -j %d MODEL=clm COMPLIB=%s -f %s MACFILE=%s " \
% (gmake, gmake_j, complib, makefile, macfile )
cmd = "{} complib -j {} MODEL=clm COMPLIB={} -f {} {}" \
.format(gmake, gmake_j, complib, makefile, get_standard_makefile_args(case))

rc, out, err = run_cmd(cmd)
logger.info("%s: \n\n output:\n %s \n\n err:\n\n%s\n"%(cmd,out,err))
Expand All @@ -76,4 +75,3 @@ def _main_func():

if __name__ == "__main__":
_main_func()

0 comments on commit 1addbe9

Please sign in to comment.