[Dune] Error in implementing PAAMG using dune-istl

Markus Blatt markus at dr-blatt.de
Thu Dec 14 14:52:20 CET 2017


On Thu, Dec 14, 2017 at 02:44:14PM +0100, Markus Blatt wrote:
> On Thu, Dec 14, 2017 at 02:15:46PM +0100, Kumar, Paras wrote:
> > Unfortunately, switching to typedef Dune::Amg::CoarsenCriterion<Dune::Amg::UnSymmetricCriterion<DuneMatrixType,Dune::Amg::FirstDiagonal>
> > Criterion; does not help.
> 
> Please start your program under gdb and check for which matrix entries
> this happens. AFAIK the only matrix entries expected here is the
> (0,0) entry of each diagonal block. That should be there right?
> 


With openMPI this is fairly easy. Simply create a script run_gdb.sh
and use that to lauch your executable under mpirun:

cat > run_gdb.sh <<EOF
#!/bin/sh
echo "Running GDB on node `hostname`"
dir=`pwd`
if [ -e gdbfile ] ; then
   xterm -e "gdb -x $dir/gdbfile --args $*; "
else
   xterm -e "gdb --args $* "
fi
exit 0
EOF
chmod +x run_gdb.sh
mpirun -np 2 ./run_gdb.sh exexutable

Markus
-- 
Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Pedettistr. 38, 85072 Eichstätt, Germany
Tel.: +49 (0) 160 97590858




More information about the Dune mailing list