Installing nbody6 with xnbody/VISIT support

Installing nbody6++ with xnbody/VISIT support
written by A. Ernst (aernst@ari.uni-heidelberg.de, August 11, 2005)

 Get the latest version of nbody6++ (a download area here) or the version of nbody6++ with general tidal field (Nbody6tid) from Rainer Spurzem (spurzem@ari.uni-heidelberg.de). In order to enable xnbody/VISIT support, you have do the following things:  Get a Makefile from xnbody/etc/, where xnbody/ is your local directory containing the xnbody source code. Modify the files nbody6.F, intgrt.F, output.F, ksreg.f, ksterm.f and cmbody.f (and gcint.F, only in case you are using Nbody6tid). You can find example files in xnbody/etc/. Just search these files for the term "VIS" and modify the corresponding nbody6++ files accordingly. If you include preprocessor directives like "#ifdef VISIT2 ... #endif", change the file suffix from .f to .F and do this also in the Makefile.  Include the files commonv.h, viscon.F and ncnbody.c from xnbody/etc/ Create a runtime configuration file named ".visitcg_config.rc", which looks like this: HOME=/home/zam/aernst APISDIR=/home/zam/aernst/vis/xnbody/apis VISITINC=/home/zam/aernst/vis/xnb/visit/include VISITLIB=/home/zam/aernst/vis/xnb/visit/lib LVISITINC=/home/zam/aernst/vis/xnb/lvisit/include LVISITLIB=/home/zam/aernst/vis/xnb/lvisit/lib VISIT20INST=/home/zam/aernst/vis/xnb/visit VISIT20SRC=/home/zam/aernst/vis/xnb/visitsrc VIARFLAGS= VIAR=ar VICC=gcc VICFLAGS= -Wall VIF77=pgf77 VIF90=pgf90 VIMPXLF=mpf90 VIFORTRANSCHEME=_FORTRANUNDERSCORE Put this file into your home directory and change the paths according to your xnbody build (in the example case above, xnb/ contains the xnbody binaries and xnbody/ the xnbody source code). Get the tool netcdf (a download area is here) and install it on your system. Modify the path to the netcdf installation in the nbody6++ Makefile. Create a runtime configuration file named "nbody2.rc" which looks like this: service=nbody6l passwd=charon doconnect=1 StepTestConfig=1 doproxy=0 proxyservice=nbody6_proxy proxypasswd=charon Put this file in your Run directory, from where you start nbody6. </ol> </li> Go to your nbody6++ source directory, type make pgfvisit2 and press Enter.</li> </ol>
 * 1) VIFORTRANSCHEME=_FORTRANNOCAPS
 * 2) VIFORTRANSCHEME=_FORTRANCAPS
 * 3) VIFORTRANSCHEME=_FORTRANDOUBLEUNDERSCORE