|NDSPMHD Documentation: home | installing | running the examples | basic tutorial | references|
See the main NDSPMHD page for details about the code.
As NDSPMHD is written in Fortran 90, you will need to have a modern Fortran compiler installed. Options include:
Uncompress the tar file:
tar xvfz ndspmhd-v1.0.tar.gzand enter the directory
cd ndspmhdCompile the code by typing "make" whilst specifying the number of spatial dimensions, e.g.
make 1Dwhich gives the following error
make: WARNING: value of SYSTEM = not recognised... =>set the environment variable SYSTEM to one listed in the Makefile and try again I suggest one of the following, based on detected Fortran compilers... make SYSTEM=gfortran make SYSTEM=g95 (end of possible selections)settings for different SYSTEMs are listed in src/Makefile. Either choose one suggested above or add your own customised setup in src/Makefile. Compile for your chosen system using (e.g.)
make SYSTEM=gfortran 2Dor by setting SYSTEM as an environment variable, e.g. in bash:
export SYSTEM=gfortran; make 2D
Compiling the code will produce a binary called either 1DSPMHD, 2DSPMHD or 3DSPMHD in the root-level ndspmhd directory.
Once the code has compiled successfully, you should proceed to running the examples.