From d2dba84eefd03c4981212523f65b520dd13eeeb9 Mon Sep 17 00:00:00 2001 From: Franck HOUSSEN Date: Sun, 15 Sep 2024 19:39:48 +0200 Subject: [PATCH] Do NOT use eval that does NOT return the exit code of the command... CI should fail --- EXAMPLES/MATRIX_MARKET/arpackmm.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/EXAMPLES/MATRIX_MARKET/arpackmm.sh b/EXAMPLES/MATRIX_MARKET/arpackmm.sh index 3e220b4a..33b2a867 100755 --- a/EXAMPLES/MATRIX_MARKET/arpackmm.sh +++ b/EXAMPLES/MATRIX_MARKET/arpackmm.sh @@ -65,17 +65,17 @@ do fi # Run arpackmm: use --nbCV 6 and --maxIt 200 to ease convergence. - export CMD="./arpackmm $eigPb $genPb $magOpt $shiftRI $invert $tol $slv $rs $dsPrec $dsMat $extraGenPb --nbCV 6 --maxIt 200 --verbose 3 --debug 3" - echo "$CMD" - eval "$CMD &> arpackmm.run.log" - export CMDLOG="tail arpackmm.run.log" - eval "$CMDLOG" + ./arpackmm $eigPb $genPb $magOpt $shiftRI $invert $tol $slv $rs $dsPrec $dsMat $extraGenPb \ + --nbCV 6 --maxIt 200 \ + --verbose 3 --debug 3 &> arpackmm.run.log + tail arpackmm.run.log # Run arpackmm: re-run with restart from slightly different starting point using shift. - export CMD="$CMD --restart --shiftReal 0.5" - echo "$CMD" - eval "$CMD &> arpackmm.run.log" - eval "$CMDLOG" + ./arpackmm $eigPb $genPb $magOpt $shiftRI $invert $tol $slv $rs $dsPrec $dsMat $extraGenPb \ + --nbCV 6 --maxIt 200 \ + --restart --shiftReal 0.5 \ + --verbose 3 --debug 3 &> arpackmm.run.log + tail arpackmm.run.log echo "========================================================================================" echo "" done