TOUGH3 installation issue
I realized many people have difficulty in compilation of TOUGH3. After polishing the installation cmake scripts and reorganizing the installation package, compilation of TOUGH3 should be more easy, stable and fast. Attached are the introduction, updated cmake scripts, additional required files.
45 replies
-
Hi, I was trying to install tough3 ECO2N during which I encountered the error as shown in the image. What is the way to rectify it? I have also replaced and copied the additional files. Kindly help me in this regard.
-
This problem has been raised many times. It has been solved in TOUGH3 V1.11. The problem is caused by the compactivity of different compiler versions. You may try:
(1) downgrade your Gfortran version from V10 or higher to V9x, or
(2) upgrade you TOUGH3 to V1.11.
-
I was able to successfully solve the error.How to overcome this error? Thanks in advance.
-
Has it been noted that when installing TOUGH3 with a Fortran compiler version 9 or higher, certain restrictions apply to the version of PETSc that can be used?
In particular, the CMake configuration for TOUGH3 (`/esd-tough3/CMakeLists.txt`) includes the following compiler flag settings:
if(CMAKE_Fortran_COMPILER_ID STREQUAL "Intel") set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS} -fpp -r8 -i4 -debug all -check all -check noarg_temp_created -zero") set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS} -fpp -r8 -i4 -O3 -free -CB -vec_report0 -diag-disable 8291 -zero") else () set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -cpp -fdefault-real-8 -fdefault-double-8 -fno-align-commons -Wuninitialized -ftrapv -fcheck=bounds -fcheck=do -fcheck=mem -fcheck=pointer -fcheck=recursion -fstack-check -fbacktrace -finit-local-zero") set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS} -cpp -O2 -fdefault-real-8 -fdefault-double-8 -fno-align-commons -finit-local-zero") endif() if(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL "10") set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -fallow-argument-mismatch") set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -fallow-argument-mismatch") endif()
With these flags, I have encountered limitations when installing PETSc, specifically when using the following configuration:
PETSc_tag="v3.18.0" # Last known working PETSc version with TOUGH3 cd <installation_directory>/ && git clone --branch $PETSc_tag --depth 1 https://gitlab.com/petsc/petsc.git cd petsc ./configure \ --with-debugging=0 \ --with-blaslapack-lib="$BLAS_LIB" make all make PETSC_DIR=<installation_directory>/petsc PETSC_ARCH=arch-linux-c-opt check
Has anyone else experienced similar issues when installing TOUGH3 with newer Fortran compilers? While I am aware that upgrading to TOUGH3 v1.1 may address some of these concerns, I am currently in the middle of a project and would prefer to resolve this issue without a major update.
Any insights or suggestions would be greatly appreciated.
-
Several critical bugs have been fixed in the TOUGH3 compilation cmake scripts. I do not think it is worth to spend much time on the compilation issue of older version. I would suggest you install the most updated version (v1.11). The new version should not interfere your existing simulations.