Skip to content

Commit

Permalink
Do NOT use eval that does NOT return the exit code of the command... …
Browse files Browse the repository at this point in the history
…CI should fail
  • Loading branch information
fghoussen committed Sep 15, 2024
1 parent ae5ecf6 commit d2dba84
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions EXAMPLES/MATRIX_MARKET/arpackmm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2dba84

Please sign in to comment.