Installation and Directories


Structure of the directories

  • The code is physically placed in the directory $NTHOME which contains the Makefile associated to the Gnu make.
  • The directory Config contains all files with compilation options for different platforms.
  • The directory Shared contains all the source files *.F, *.inc, param.defs and the regular Makefile.
  • For Dynamical Memory Allocation, you need falloc file in C langage (to be adapted for each computer).

    The Makefiles

    The installation of NTMIX-3D is based on the use of  Gnu Makefile and to Regular Makefile. The Gnu Makefile is located under the directory  $NTHOME and the regular under  $NTHOME/Shared.
      The Gnu Makefile has four variables: $NTHOME, NTARCH, SRCDIR and SUBDIR corresponding to the home directory, the target, the source and the subdir. By default, the source directory is $NTHOME/Shared and the subdirectory is $NTHOME/Shared/Obj-$(NTARCH).
    1. all : build the dependencies and compiles.
    2. obj : compile.
    3. depend : build the dependencies.
    4. clean : delete the obj files.
    5. clean_: all delete the obj files and their directories.
    6. install : create an obj directory, copy the regular make to the obj directory, create the dependencies and compiles.
    7. objdir : createthe obj directory, copy the regular make to the obj director, create the dependencies.
    8. distrib : distrib NTMIX-3D.
    With the option install the Gnu make creates an obj directory named $NTHOME//Obj-$(NTARCH), copies the Makefile from the $NTHOME/Shared directory to the $NTHOME/Obj-$(NTARCH), creates the dependencies between all the source and runs, the make on the Makefile with the option install (see below).
      This file is located in the directory $NTHOME/Shared. It contains the include of the config file, all the Fortran files (*.F) and c file (*.c) names required to compile NTMIX-3D. During the compilation the Gnu Makefile copiues it under the directory $NTHOME/Shared/Obj-$(NTARCH). The name of executable is set by BIN. If you developp a new subroutine (*.F or *.c), you need to add the name of the subroutine in the Makefile. As the Gnu Makefile, Makefile has different options:
    1. all : compile.
    2. clean:  delete the obj and executable files.
    3. install : copy the standard amd optimazed subroutines, defined in the config files, in the directory $NTHOME/Shared.
    4. depend : create the dependencies.
    This options are called from the Gnu Makefile, the dependencies between these options are shown below:
     
    Gnu Makefile Makefile
    all  all
    make  depend 
    clean clean
    clean_all clean
    install install
    objdir depend

     


    Note author : Roberto Paoli, CERFACS, 2002

    Back to main page