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 14, 2024
1 parent d7f9cdf commit 99372a1
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions EXAMPLES/MATRIX_MARKET/arpackmm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,28 +72,34 @@ 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 ""
#export CMDDBG="tail arpackmm.run.log"
#eval "$CMDDBG"
echo "========================================================================================"
echo ""

# 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 Down

0 comments on commit 99372a1

Please sign in to comment.