SUNTANS works with both mpich-1 and mpich-2 and macro definitions are used to automatically select the applicable version, although profiles.c-mpich1 and profiles.c-mpich2 are files known to work for these respective versions for mpich.
After installing the above software, edit
so that the directories containing the appropriate packages
are correctly specified as follows:
MPIHOMEshould contain the base directory of the mpich distribution. For example,
PARMETISHOMEshould contain the base directory of the ParMetis distribution.
TRIANGLEHOMEshould contain the base directory of the Triangle libraries.
Makefile.infile might look like
MPIHOME=/usr/local/mpich-1.2.7 PARMETISHOME=/usr/local/packages/ParMetis-2.0 TRIANGLEHOME=/usr/local/packages/triangleOnce these locations are properly specified, compile the SUNTANS executable in
suntans/mainand link it with the software that has been installed with
makeThis will create the main executable
sun. To remove the object files, use
make cleanTo clean up the distribution and return it to the original state it was in upon downloading, use
The original source for SUNTANS contains empty macro definitions in
MPIHOME= PARMETISHOME= TRIANGLEHOME=Undefined macros in this file imply that the software is not installed, and suntans will compile accordingly. Note that you cannot run SUNTANS in parallel unless both MPICH and ParMETIS are installed, since ParMETIS performs the parallel grid partitioning. However, SUNTANS does not require the Triangle libraries to run in its serial or parallel modes. Omission of the Triangle libraries requires the generation of grid files using an alternate grid generation package, as described in Section 3.2.