#!/bin/csh
#
# ntx    : nombre de points en x
# nty    : nombre de points en y
# ntz    : nombre de points en z
# it_max : nombre maximal d'iterations pour la convergence
# ifreq  : frequence d'affichage des residus.
#
# nbproc : nombre de processus MPI
#
#echo ntx nty ntz it_max ifreq | ./P3Dja_mpi.out -procs nbproc
#
setenv MP_PROCS 2
setenv MP_SHARED_MEMORY yes
setenv MP_EUILIB ip
setenv MP_WAIT_MODE yield
setenv MP_HOSTFILE /home/gm/host.list

echo 256 256 256 1000 100 | ./P3Dja_mpi.out -procs $MP_PROCS
gprof P3Dja_mpi.out gmon.out.0 > ! gprof.out.0
gprof P3Dja_mpi.out gmon.out.1 > ! gprof.out.1
gprof P3Dja_mpi.out gmon.out.? > ! gprof.out.all

