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,
the regular Makefile.
For Dynamical Memory Allocation, you need falloc file in C langage (to be adapted for each computer).
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
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
all : build the dependencies and compiles.
obj : compile.
depend : build the dependencies.
clean : delete the obj files.
clean_: all delete the obj files and their directories.
install : create an obj directory, copy the regular make to the
obj directory, create the dependencies and compiles.
objdir : createthe obj directory, copy the regular make to the obj
director, create the dependencies.
distrib : distrib NTMIX-3D.
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:
This options are called from the Gnu Makefile, the dependencies between
these options are shown below:
all : compile.
clean: delete the obj and executable files.
install : copy the standard amd optimazed subroutines, defined in
the config files, in the directory $NTHOME/Shared.
depend : create the dependencies.
Note author : Roberto Paoli, CERFACS, 2002
Back to main