FANDOM


Installing nbody6++ with xnbody/VISIT support Edit

written by A. Ernst (aernst@ari.uni-heidelberg.de, August 11, 2005)

  1. 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).
  2. In order to enable xnbody/VISIT support, you have do the following things:
    1. Get a Makefile from xnbody/etc/, where xnbody/ is your local directory containing the xnbody source code.
    2. 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.
    3. Include the files commonv.h, viscon.F and ncnbody.c from xnbody/etc/
    4. 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=_FORTRANNOCAPS
      #VIFORTRANSCHEME=_FORTRANCAPS
      #VIFORTRANSCHEME=_FORTRANDOUBLEUNDERSCORE
      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).
    5. 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.
    6. 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.

  3. Go to your nbody6++ source directory, type
    make pgfvisit2
    and press Enter.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.