Skip to content

Commit 01e155c

Browse files
takiwakiyoshifuminakamura
authored andcommitted
delete space of the expression in the collection script not to be affected by number of space
Signed-off-by: Tomoya Takiwaki <takiwaki.tomoya.astro@gmail.com>
1 parent c639810 commit 01e155c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

programs/MHDTurbulence/run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ case "$system" in
2626
export OMP_NUM_THREADS=$nthreads
2727
export KMP_AFFINITY=compact
2828
mpirun -np "$NP" ./Simulation.x > ${LOG} 2>&1
29-
elapsed=$(grep " sim time \[s\]: " ${LOG} | awk '{print $4}' | tail -n 1)
30-
tcc=$(grep " time/count/cell" ${LOG} | awk '{print $2}' | tail -n 1)
29+
elapsed=$(grep "sim time \[s\]:" ${LOG} | awk '{print $4}' | tail -n 1)
30+
tcc=$(grep "time/count/cell" ${LOG} | awk '{print $2}' | tail -n 1)
3131
;;
3232
MiyabiG)
3333
exedir=exe
@@ -37,8 +37,8 @@ case "$system" in
3737
echo "code is executed in "$code/$exedir/
3838
NP=$((nodes * numproc_node))
3939
mpirun -np "$NP" ./Simulation.x > ${LOG} 2>&1
40-
elapsed=$(grep " sim time \[s\]: " ${LOG} | awk '{print $4}' | tail -n 1)
41-
tcc=$(grep " time/count/cell" ${LOG} | awk '{print $2}' | tail -n 1)
40+
elapsed=$(grep "sim time \[s\]:" ${LOG} | awk '{print $4}' | tail -n 1)
41+
tcc=$(grep "time/count/cell" ${LOG} | awk '{print $2}' | tail -n 1)
4242
;;
4343
*)
4444
echo "Unknown system: $system"

0 commit comments

Comments
 (0)