Skip to content

Commit

Permalink
rewrite the test: choose CG solver according to the sym/non-sym matri…
Browse files Browse the repository at this point in the history
…x type
  • Loading branch information
fghoussen committed Sep 16, 2024
1 parent 82bc5bb commit 91e49a9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions EXAMPLES/MATRIX_MARKET/arpackmm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ do
do
for invert in "" "--invert"
do
for slv in "--slv BiCG" "--slv LU"
export cgSlv=""
if [[ "$eigPb" == *nonSymPb* ]]; then
export cgSlv="BiCG"
else
export cgSlv="CG"
fi

for slv in "--slv $cgSlv" "--slv LU"
do
for rs in "" "--schur"
do
Expand Down Expand Up @@ -71,7 +78,7 @@ do
# Run arpackmm: re-run with restart from slightly different starting point using shift.
./arpackmm "$eigPb" "$genPb" "$magOpt" "$tol" "$shiftRI" "$invert" "$slv" "$rs" "$dsPrec" "$dsMat" "$extraGenPb" \
--nbCV 6 --maxIt 200 \
--restart $shiftOpt \
--restart "$shiftOpt" \
--verbose 3 --debug 3 &> arpackmm.run.log
head arpackmm.run.log
tail arpackmm.run.log
Expand Down

0 comments on commit 91e49a9

Please sign in to comment.