Skip to content
Snippets Groups Projects
Commit 8018f29e authored by Carsten Lemmen's avatar Carsten Lemmen
Browse files

Added np=X as argument to Makefile

parent ddd6e80b
No related branches found
No related tags found
No related merge requests found
# Makefile for making STATIC version of the GETM executable.
# Takes an optional env variable np with number of processors
#
# SPDX-FileCopyrightText: 2024 Leibniz-Institut für Ostseeforschung Warnemünde
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileContributor Xiangyu Li <xiangy.li@io-warnemuende.de>
#
# Makefile for making STATIC version of the GETM executable.
#
# export MAKE_PROCS=20
np?=90
$(info Building GETM for np=$(np) processes)
np=90
unames :=$(shell uname -s)
# local setup
......@@ -19,7 +24,7 @@ FABM =true
# local nf-config
NF_CONFIG=FALSE
#NF_CONFIG=${CONDA_PREFIX}/bin/nf-config
NF_CONFIG=${CONDA_PREFIX}/bin/nf-config
# for Rules.make in GETMDIR
# GETM_USE_DEBUG =ON
......@@ -48,8 +53,11 @@ GETM_FLAGS =-D_NEW_DAF_
all: mpi_s
$(CURDIR)/$(name).$(np)p.dim:
$(CURDIR)/create_estuary_dim.py --np=$(np)
# static, preferred
mpi_s:
mpi_s: $(CURDIR)/$(name).$(np)p.dim
@ln -sf $(CURDIR)/$(name).$(np)p.dim $(GETMDIR)/include/dimensions.h
@mkdir -p build
@(cd build;\
......
......@@ -4,7 +4,7 @@
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileContributor Carsten Lemmen <carsten.lemmen@hereon.de
#
#SBATCH --ntasks=732
#SBATCH --ntasks=1
#SBATCH --output=elbe-%j.stdout
#SBATCH --error=elbe-%j.stderr
#SBATCH --time=1:00:00
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment