@@ -38,7 +38,7 @@ INSTALLATION NOTES
3838------------------
3939
4040CVMix can be installed using two different methods. The original uses Make
41- and a set of Makefiles. The new method uses CMake and two CMakelists.txt
41+ and a set of Makefiles. The new method uses CMake and two CMakelists.txt
4242files.
4343
4444#### Building/installing using Make
@@ -72,42 +72,39 @@ to configure and compile CVMix. Note that CVMix has been build on Windows using
7272VisualStudio and the Intel Fortran compiler but NetCDF support has not been
7373tested.
7474
75- In this recipe CVMIX\_ BASE is a convinient environmental variable pointing to
76- the CVMix source directory. It is possible to execute the following commands
77- providing the full path.
78-
79-
80- 1 . mkdir ~ /build/cvmix
81- * [ CMake] ( https://cmake.org/ ) promotes out of source compilation
82- 2 . cd ~ /build/cvmix
83- 3 . cmake $CVMIX\_ BASE
75+ 1 . cd $CVMix/bld/cmake_bld
76+ * [ CMake] ( https://cmake.org/ ) promotes out of source compilation,
77+ any such directory will do.
78+ 2 . cmake $CVMix
8479 * The simplest configuration - using default Fortran compiler
85- 4 . cmake $CVMIX \_ BASE -DCMAKE\_ Fortran\_ COMPILER=ifort
80+ 3 . cmake $CVMix -DCMAKE\_ Fortran\_ COMPILER=ifort
8681 * Specifying a Fortran compiler
87- 5 . cmake $CVMIX \_ BASE -DCVMIX\_ BUILD\_ DRIVER=on
82+ 4 . cmake $CVMix -DCVMIX\_ BUILD\_ DRIVER=on
8883 * Build the CVMix driver program - off by default
89- 6 . cmake $CVMIX \_ BASE -DCVMIX\_ BUILD\_ DRIVER=on CVMIX\_ USE\_ NetCDF=on
84+ 5 . cmake $CVMix -DCVMIX\_ BUILD\_ DRIVER=on CVMIX\_ USE\_ NetCDF=on
9085 * Include support for NetCDF in the driver model(1)
9186 * Note that this requires proper configuration of the installed NetCDF library.
9287 * Setting NetCDF\_ INCLUDE and NetCDF\_ LIBRARIES might help.
93- 7 . cmake $CVMIX \_ BASE -DCMAKE\_ INSTALL\_ PREFIX=~ /local
94- * Providing an installation folder
88+ 6 . cmake $CVMix -DCMAKE\_ INSTALL\_ PREFIX=$CVMix/bin
89+ * Providing an installation folder (again, any such directory will do)
9590
9691Combination of the above commands is possible.
9792
9893After configuration has been done compilation is as simple as:
94+
9995```
10096make
10197```
10298
10399and installation by:
100+
104101```
105102make install
106103```
107104
108105After installation the build directory can be removed.
109106
110- The support for CMake builds provides sufficient infrastructure for CVMix
107+ The support for CMake builds provides sufficient infrastructure for CVMix
111108being included in ocean models using the GIT submodule feature. This has
112109been used in the [ GOTM] ( https:/gotm.net ) inclusion of the CVMix mixing
113110models as a supplement to the original turbulence models in GOTM.
@@ -120,7 +117,7 @@ DIRECTORY STRUCTURE
120117bin/ -- Default location for the cvmix executable.
121118
122119bld/ -- Contains auxiliary files needed by the build system. CompileFlags.mak
123- has default compile flags for 5 different compilers -- gfortran,
120+ has default compile flags for 5 different compilers -- gfortran,
124121 pgf90, ifort, xlf90, and nagfor, as well as ftn (the Cray wrapper for
125122 pgf90). At this time, no other compilers are supported on Cray systems.
126123 cvmix_setup is a python script that saves information about what
@@ -234,7 +231,7 @@ src/ -- Contains the source code, organized as follows. The top directory
234231
235232 src/drivers/ -- Subroutines called by the driver (one per test).
236233
237- src/shared/ -- Where all the modules that are needed to use CVMix with an
234+ src/shared/ -- Where all the modules that are needed to use CVMix with an
238235 outside model are stored. Also contains the Makefile used to
239236 build the libcvmix.a library.
240237
0 commit comments