From 39308c81464a5dd3c18ee7d18811692026aea4cc Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Fri, 3 Jun 2016 17:11:00 +0100 Subject: [PATCH] Use memcheck with valgrind for mpirunDebug --- bin/mpirunDebug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mpirunDebug b/bin/mpirunDebug index dd0237c14..f863a9359 100755 --- a/bin/mpirunDebug +++ b/bin/mpirunDebug @@ -181,7 +181,7 @@ do echo "$sourceFoam; cd $PWD; $exec $args 2>&1 | tee $procLog; read dummy" >> $procCmdFile echo "${node}xterm -font fixed -title 'processor'$proc $geom -e $procCmdFile" >> $PWD/mpirun.schema elif [ "$method" -eq 5 ]; then - echo "$sourceFoam; cd $PWD; valgrind $exec $args; read dummy" >> $procCmdFile + echo "$sourceFoam; cd $PWD; valgrind --tool=memcheck --leak-check=full $exec $args | tee $procLog; read dummy" >> $procCmdFile echo "${node}xterm -font fixed -title 'processor'$proc $geom -e $procCmdFile" >> $PWD/mpirun.schema elif [ "$method" -eq 6 ]; then ## maybe one could use nemiver sessions for reloading breakpoints --session= or --last