Dear All,
I am trying to build the custom solver locally on my university HPC. I need some help to understand this process.
Before building the custom solver, I installed Mfix-20.3.1 in my HPC storage folder by using the following process.
- Loaded the following modules
- module load cmake/cmake-3.7.2-ic-2017
- module load openmpi/openmpi-3.1.0-ic-2017.1.043
- module load python/python-3.6.3-ic-2017.1.043
- Unzip mfix-20.3.1 tar ball in the directory /home/user/mfix-20.3.1
- mkdir release-build #made a build directory
- cd release-build #changed the directory
- cmake /home/user/mfix-20.3.1/release-build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_MPI=1 -DCMAKE_Fortran_COMPILER=ifort
- did ‘make’
The Mfix executable is successfully created in the folder as follows:
To build the custom solver for the tutorial silane_pyrolysis:
- I copied the silane_pyrolysis tutorial folder from the source tar folder in the following path:
~/NASA_Pyrolant/TestRun_Mfix/silane_pyrolysis_2d - Here, my idea is to build the custom solver executable in the same silane_pyrolysis_2d folder. Thus, I used the following build process. The input command and output are as follows:
[rkancherla@ec274 silane_pyrolysis_2d]$ cmake -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_IN STALL_PREFIX=~/NASA_Pyrolant/TestRun_Mfix/silane_pyrolysis_2d -DUDF_DIR=~/NASA_Pyrolant /TestRun_Mfix/silane_pyrolysis_2d -DVERSION=20.3.1 /lustre/fs0/home/rkancherla/apps/MFi x/mfix-20.3.1/release-build-2031
– MFIX build settings summary:
– Build type = RelWithDebInfo
– CMake version = 3.7.2
– Fortran compiler = ifort
– Fortran flags = -O2 -g -DNDEBUG
– ENABLE_MPI = 1
– ENABLE_OpenMP = OFF
– ENABLE_CTEST = OFF
– ENABLE_COVERAGE = OFF
– Found MPI_Fortran: /apps/openmpi/openmpi-3.1.0-ic-2017.1.043/lib/libmpi_usempif08.so ;/apps/openmpi/openmpi-3.1.0-ic-2017.1.043/lib/libmpi_usempi_ignore_tkr.so;/apps/openmp i/openmpi-3.1.0-ic-2017.1.043/lib/libmpi_mpifh.so;/apps/openmpi/openmpi-3.1.0-ic-2017.1 .043/lib/libmpi.so (found version “20.3.1”)
– Found PythonInterp: /apps/python/python-3.6.3-ic-2017.1.043/bin/python (found versio n “3.6.3”)
Found UDFs:
/home/rkancherla/NASA_Pyrolant/TestRun_Mfix/silane_pyrolysis_2d/usr0.f;/home/rkancherla /NASA_Pyrolant/TestRun_Mfix/silane_pyrolysis_2d/usr1.f;/home/rkancherla/NASA_Pyrolant/T estRun_Mfix/silane_pyrolysis_2d/usr_init_namelist.f;/home/rkancherla/NASA_Pyrolant/Test Run_Mfix/silane_pyrolysis_2d/usr_mod.f;/home/rkancherla/NASA_Pyrolant/TestRun_Mfix/sila ne_pyrolysis_2d/usr_rates.f;/home/rkancherla/apps/MFix/mfix-20.3.1/model/usr_read_namel ist.f;/home/rkancherla/NASA_Pyrolant/TestRun_Mfix/silane_pyrolysis_2d/species.inc
– Configuring done
– Generating done
– Build files have been written to: /lustre/fs0/home/rkancherla/apps/MFix/mfix-20.3.1/ release-build-2031
I need help with the following:
- Is my custom build process is correct?
- How to build the custom solver in the tutorial folder (silane_pyrolysis_2d)?
- I do not understand exact meaning of “-DCMAKE_IN STALL_PREFIX”, “-DUDF_DIR” and the path defined after “-DVERSION” in my custom build command (command is shown earlier).
The help of the community will be appreciated.
Regards,
Raghu