Skip to content

Commit

Permalink
Mods towards getting the Makefile to work (after 4th attempt)
Browse files Browse the repository at this point in the history
  • Loading branch information
slevis-lmwg committed Jan 27, 2024
1 parent f3cc3d5 commit 726531e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions python/ctsm/toolchain/gen_mksurfdata_jobscript_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def main():
"5x5_amazon": ["5x5_amazon"],
"ne3": ["ne3np4.pg3"],
"ne16": ["ne16np4.pg3"],
"ne30": ["ne30np4.pg3", "ne30.np4pg2", "ne30np4"],
"ne30": ["ne30np4.pg3", "ne30np4.pg2", "ne30np4"],
"ne120": [
"ne120np4.pg3",
"ne0np4.ARCTICGRIS.ne30x8",
Expand Down Expand Up @@ -418,7 +418,7 @@ def main():
sys.argv = [x for x in command.split(" ") if x]
main_nml()
print(f"generated namelist {namelist}")
output = f'time mpiexec {mksurfdata} < {namelist}'
output = f"time mpiexec {mksurfdata} < {namelist}"
runfile.write(f"{output} \n")
check = f"if [ $? != 0 ]; then echo 'Error running resolution {res}'; exit -4; fi"
runfile.write(f"{check} \n")
Expand Down
22 changes: 11 additions & 11 deletions tools/mksurfdata_esmf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@ DEBUG:
standard : $(STANDARD)

global-potveg : FORCE
$(MKSURFDATA) --number-of-nodes 3 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(MKSURFDATA) --number-of-nodes 4 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(BATCHJOBS) $@.sh

global-present : FORCE
$(MKSURFDATA) --number-of-nodes 3 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(MKSURFDATA) --number-of-nodes 4 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(BATCHJOBS) $@.sh

global-present-low-res : FORCE
$(MKSURFDATA) --number-of-nodes 2 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(MKSURFDATA) --number-of-nodes 4 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(BATCHJOBS) $@.sh

#
Expand Down Expand Up @@ -179,11 +179,11 @@ crop-global-present : FORCE
$(BATCHJOBS) $@.sh

crop-global-present-low-res : FORCE
$(MKSURFDATA) --number-of-nodes 2 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(MKSURFDATA) --number-of-nodes 4 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(BATCHJOBS) $@.sh

crop-global-present-ne16 : FORCE
$(MKSURFDATA) --number-of-nodes 2 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(MKSURFDATA) --number-of-nodes 4 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(BATCHJOBS) $@.sh

crop-global-present-ne120 : FORCE
Expand All @@ -199,11 +199,11 @@ crop-global-1850 : FORCE
$(BATCHJOBS) $@.sh

crop-global-1850-low-res : FORCE
$(MKSURFDATA) --number-of-nodes 2 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(MKSURFDATA) --number-of-nodes 4 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(BATCHJOBS) $@.sh

crop-global-1850-ne16 : FORCE
$(MKSURFDATA) --number-of-nodes 2 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(MKSURFDATA) --number-of-nodes 4 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(BATCHJOBS) $@.sh

crop-global-1850-ne120 : FORCE
Expand All @@ -215,11 +215,11 @@ crop-global-hist : FORCE
$(BATCHJOBS) $@.sh

crop-global-hist-low-res : FORCE
$(MKSURFDATA) --number-of-nodes 2 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(MKSURFDATA) --number-of-nodes 4 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(BATCHJOBS) $@.sh

crop-global-hist-ne16 : FORCE
$(MKSURFDATA) --number-of-nodes 2 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(MKSURFDATA) --number-of-nodes 4 --scenario $@ --jobscript-file $@.sh --walltime 01:00:00
$(BATCHJOBS) $@.sh

crop-global-hist-ne120 : FORCE
Expand Down Expand Up @@ -289,7 +289,7 @@ crop-global-SSP2-4.5-f19 : FORCE
$(BATCHJOBS) $@.sh

crop-global-SSP2-4.5-f10 : FORCE
$(MKSURFDATA) --number-of-nodes 2 --scenario $@ --jobscript-file $@.sh --walltime 02:00:00
$(MKSURFDATA) --number-of-nodes 4 --scenario $@ --jobscript-file $@.sh --walltime 02:00:00
$(BATCHJOBS) $@.sh

crop-global-SSP2-4.5-f45 : FORCE
Expand All @@ -301,7 +301,7 @@ crop-global-SSP2-4.5-hcru : FORCE
$(BATCHJOBS) $@.sh

crop-global-SSP2-4.5-ne3 : FORCE
$(MKSURFDATA) --number-of-nodes 2 --scenario $@ --jobscript-file $@.sh --walltime 02:00:00
$(MKSURFDATA) --number-of-nodes 4 --scenario $@ --jobscript-file $@.sh --walltime 02:00:00
$(BATCHJOBS) $@.sh

crop-global-SSP2-4.5-ne16 : FORCE
Expand Down

0 comments on commit 726531e

Please sign in to comment.