Compiling and running the PAMR wave example on vnfe4

NOTE: This build uses the PGI compilers, and the Myrinet MPICH/GM MPI library, which is the recommended practice at the current time. It is also assumed that you have DV running on your local workstation, and that, in your vnfe4 shell, you have set DVHOST to the name of said workstation.

First ensure that the CVSROOT and CVS_RSH environment variables have been set

setenv CVSROOT ':ext:cvs@vnfe1.physics.ubc.ca:/home2/cvs'
setenv CVS_RSH '/usr/bin/ssh'
(it is recommended that you insert the above in your ~/.cshrc).

Now cd to some convenient working directory and check out the pamr distribution

% cvs co pamr
cvs server: Updating pamr
U pamr/.laliases
U pamr/KNOWN_ISSUES
       .
       .
       .
U pamr/test/Makefile.in
U pamr/test/test1.c
cvs server: Updating pamr/wave
% cd pamr
% source ~matt/scripts/soPGI-myr
% configure --prefix=`pwd`
creating cache ./config.cache
checking for Unix flavour... LINUX
checking for gcc... /opt/gmpi.pgi/bin/mpicc
       .
       .
       .
creating amrd/Makefile
creating examples/wave/Makefile
creating doc/Makefile
% make
echo; echo "Making in src test amrd examples/wave doc"

Making in src test amrd examples/wave doc
for f in src test amrd examples/wave doc; do \
       .
       .
       .
ls -lt PAMR_ref.ps
-rw-r--r--    1 matt     choptuik   163052 Apr 21 16:03 PAMR_ref.ps
make[1]: Leaving directory ...
% cd examples/wave
% cp ~matt/templates/pamr-wave-myr.pbs .
% qsub pamr-wave-myr.pbs
Wait for batch job to finish.
% cd run_2d
% ls *sdf
wave_2d_L0_phi_tl2_0.sdf  wave_2d_L0_phi_tl2_2.sdf
wave_2d_L0_phi_tl2_1.sdf  wave_2d_L0_phi_tl2_3.sdf
% sdftodv *sdf
Then select Merge All Registers in DV, enable AMR in the Options panel, and visualize the results.
Maintained by choptuik@physics.ubc.ca. Supported by CIAR, CFI and NSERC