Skip to content

Commit

Permalink
Try to limit size of the logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
fghoussen committed Sep 15, 2024
1 parent d7f9cdf commit 8f9ff2c
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions EXAMPLES/MATRIX_MARKET/arpackmm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
export CMD="./arpackmm --help" # For coverage
echo "$CMD"
eval "$CMD &> arpackmm.run.log"
echo ""
echo "========================================================================================"
echo ""

Expand Down Expand Up @@ -72,28 +71,32 @@ do
fi

# Remove restart files.
export CMD="rm -f arpackSolver.resid.out arpackSolver.v.out"
echo "$CMD"
eval "$CMD"
export CMDOUT="rm -f arpackSolver.resid.out arpackSolver.v.out"
echo "$CMDOUT"
eval "$CMDOUT"

# Remove previous log.
export CMDLOG="rm -f arpackmm.run.log"
echo "$CMDLOG"
eval "$CMDLOG"

# Run arpackmm: use --nbCV 6 and --maxIt 200 to ease convergence, and, --verbose 3 for debug.
export CMD="./arpackmm $eigPb $genPb $magOpt $shiftRI $invert $tol $slv $rs $dsPrec $dsMat $extraGenPb --nbCV 6 --maxIt 200 --verbose 3 --debug 3"
# 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"
echo "$CMD"
eval "$CMD &> arpackmm.run.log"
echo ""
export CMDDBG="tail -n 15 arpackmm.run.log"
eval "$CMDDBG"
echo ""
echo "========================================================================================"
echo ""
#export CMDDBG="tail arpackmm.run.log"
#eval "$CMDDBG"

# Remove previous log.
export CMDLOG="rm -f arpackmm.run.log"
echo "$CMDLOG"
eval "$CMDLOG"

# Run arpackmm: re-run with restart.
export CMD="$CMD --restart"
echo "$CMD"
eval "$CMD &> arpackmm.run.log"
echo ""
eval "$CMDDBG"
echo ""
#eval "$CMDDBG"
echo "========================================================================================"
echo ""
done
Expand All @@ -107,4 +110,4 @@ do
done
done

echo "OK"
echo "arpackmm: OK"

0 comments on commit 8f9ff2c

Please sign in to comment.