Skip to content

Commit

Permalink
Modify common Makefile and jobshell script
Browse files Browse the repository at this point in the history
  • Loading branch information
ywkawai committed Dec 31, 2024
1 parent 2c2dda9 commit 18c0834
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions sample/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ $(BUILD_DIR)/%.o: %.f90
$(FC) $(FFLAGS) $(ADDITIONAL_FFLAGS) -DVERSION_MACRO=\"$(VERSION)\" -I$(BUILD_DIR) -I$(MODDIR) $(CONTRIB_INCLUDE) -I$(SCALEFELIBDIR)/include -I$(SAMPLE_AUX_INCLUDE) $(SCALE_NETCDF_INCLUDE) $(MODDIROPT) $(BUILD_DIR) -o $@ -c $<

run: jobshell
@if [ $(JOBSUB) == "pjsub" ]; then \
@if [ $(JOBSUB) = "pjsub" ]; then \
JID=$$($(JOBSUB) -z jid run.sh $(JOBSUB_OPTION)); if [ $$? -ne 0 ]; then exit 1; fi; \
echo "$(JOBSUB) run.sh (job id=$$JID) .."; \
set -- `pjwait $$JID`; if [ $$2 != "0" -o $$3 != "0" ]; then exit 1; fi; \
Expand All @@ -91,14 +91,14 @@ run: jobshell
jobshell: export ADDITIONAL_CONF := $(ADDITIONAL_CONF)
jobshell: export OMP_NUM_THREADS := $(OMP_NUM_THREADS)
jobshell:
@if [ -f $(SYSDEP_DIR)/Mkjobshell.$(SCALE_SYS).sh ]; then \
bash $(SYSDEP_DIR)/Mkjobshell.$(SCALE_SYS).sh $(MPIEXEC) $(BINDIR2) \
@if [ -f $(SYSDEP_DIR)/Mkjobshell.$(SCALE_FE_SYS).sh ]; then \
bash $(SYSDEP_DIR)/Mkjobshell.$(SCALE_FE_SYS).sh $(MPIEXEC) $(BINDIR2) \
$(PPNAME) $(INITNAME) $(BINNAME) \
$(PPCONF) $(INITCONF) $(RUNCONF) \
$(TPROC) \
$(DATPARAM) $(DATDISTS); \
else \
bash $(TOPDIR)/sysdep/Mkjobshell.$(SCALE_SYS).sh $(MPIEXEC) $(BINDIR2) \
bash $(TOPDIR)/sysdep/Mkjobshell.$(SCALE_FE_SYS).sh $(MPIEXEC) $(BINDIR2) \
$(PPNAME) $(INITNAME) $(BINNAME) \
$(PPCONF) $(INITCONF) $(RUNCONF) \
$(TPROC) \
Expand Down
2 changes: 1 addition & 1 deletion sysdep/Makedef.Linux64-intel-impi
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ LDFLAGS = $(FFLAGS)

##### Execute command

MPIEXEC = "mpirun -np"
MPIEXEC = "mpiexec.hydra -np"

################################################################################

Expand Down

0 comments on commit 18c0834

Please sign in to comment.