Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print time built per model #1402

Merged
merged 1 commit into from
Apr 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions scripts/lib/CIME/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ def _build_model_thread(config_dir, compclass, caseroot, libroot, bldroot, incro
thread_bad_results, smp, compiler):
###############################################################################
logger.info("Building %s with output to %s"%(compclass, file_build))
t1 = time.time()
with open(file_build, "w") as fd:
stat = run_cmd("MODEL=%s SMP=%s %s/buildlib %s %s %s " %
(compclass, stringify_bool(smp), config_dir, caseroot, libroot, bldroot),
Expand All @@ -313,6 +314,8 @@ def _build_model_thread(config_dir, compclass, caseroot, libroot, bldroot, incro
for mod_file in glob.glob(os.path.join(bldroot, "*_[Cc][Oo][Mm][Pp]_*.mod")):
shutil.copy(mod_file, incroot)

t2 = time.time()
logger.info("%s built in %f seconds" % (compclass, (t2 - t1)))

###############################################################################
def _clean_impl(case, cleanlist, clean_all):
Expand Down