From 651d63e895c0f0203243e5cf11722f504f382564 Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Tue, 18 Apr 2017 13:23:56 +0200 Subject: [PATCH] Extract the ranks from the inifile --- bin/knltimings.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/knltimings.sh b/bin/knltimings.sh index f2d52108..2f238395 100755 --- a/bin/knltimings.sh +++ b/bin/knltimings.sh @@ -20,7 +20,9 @@ do COUNT=0 while [ $COUNT -lt $UPPER ]; do exec=${inifile%.ini} - mpirun -np 66 ./$exec $inifile + line=$(grep ^"ranks = " $inifile) + np=${line##ranks = } + mpirun -np $np ./$exec $inifile COUNT=$((COUNT + 1)) done done -- GitLab