From be0ea42a41ec8519545583893761de00454b4c00 Mon Sep 17 00:00:00 2001 From: Franck HOUSSEN Date: Sat, 14 Sep 2024 22:13:47 +0200 Subject: [PATCH] Try to limit size of the logs. --- EXAMPLES/MATRIX_MARKET/arpackmm.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/EXAMPLES/MATRIX_MARKET/arpackmm.sh b/EXAMPLES/MATRIX_MARKET/arpackmm.sh index a1751766..c4e2aa09 100755 --- a/EXAMPLES/MATRIX_MARKET/arpackmm.sh +++ b/EXAMPLES/MATRIX_MARKET/arpackmm.sh @@ -77,16 +77,21 @@ do eval "$CMD" # 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" + 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" + export CMDDBG="tail arpackmm.run.log" eval "$CMDDBG" echo "" 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" @@ -96,6 +101,11 @@ do echo "" echo "========================================================================================" echo "" + + # Remove previous log. + export CMDLOG="rm -f arpackmm.run.log" + echo "$CMDLOG" + eval "$CMDLOG" done done done