0

TOUGH2-MP Compilation

I am a beginner trying to compile TOUGH2-MP. The manual mentions that I need to download AZTEC, but the official website for the package is no longer accessible. Is there any other way to obtain this package to complete the TOUGH2-MP compilation? Additionally, I hope to compile the software on Windows 11 using Visual Studio. Are there any tutorials for this? I am not familiar with Linux.

10 replies

null
    • kenny
    • 5 mths ago
    • Reported - view

    I am attaching the Aztec package. You may be able to compile the TOUGH2-MP on Windows 11 using Visual Studio by:

    (1) install MS-MPI on your PC

    (2) download Metis, compile it with VS, will obtain metis.lib

    (3) download lapack and blas precompiled library and head files (https://icl.utk.edu/lapack-for-windows/lapack/index.html#libraries)

    (3) created a project for Aztec using attached package, compile it and will generate a .lib file (static library, may need lapack and blas for the compilation)

    (4) created a VS solution for tough2-mp, with including path of head files for Metis, Aztec, MS-MPI, lapack and blas, and linking library paths for the required third-party libraries and the library files

    In general, during compilation of these software, if VS complaints for finding an including head, add the path of the head located.  Durig linking, if VS complaints for an unknown function or symbol, add linking path of the lib and the lib file that the function or symbol were defined) .

     

    Aztec2.1.tar.gz

      • liu_qi
      • 5 mths ago
      • Reported - view

       Thank you very much for your detailed response! I will definitely give it a try.

      • liu_qi
      • 5 mths ago
      • Reported - view

       

      I am writing to thank you for providing the Aztec package. However, I have encountered several issues during the compilation process despite following the instructions provided. I have tried various methods to resolve these problems but have not been successful.

      Could you kindly provide any suggestions or confirm if the installation package file is complete? Your assistance would be greatly appreciated.

      Thank you in advance for your help.

      • kenny
      • 5 mths ago
      • Reported - view

       The error message shows that you did not have a correct c compiler. Please edit the makefile  to select the correct platform that you are working on, eg:

      MACHINE = LINUX

      If you have wrapper compilers in your system, you should use them (mpif90, mpicc), let

      CC_LINUX=mpicc

      FC_LINUX=mpif90

      • liu_qi
      • 5 mths ago
      • Reported - view

       Thank you for your response, which helped me understand where I went wrong.However, I have encountered an issue during the final step when running 'make' in the 'lib' directory.

      Despite searching through the installation package, I was unable to locate the 'la_dgetrf.f' file.

      Could you please advise on how to resolve this issue? Your guidance would be greatly appreciated.

      Thank you very much for your assistance, and I apologize for any inconvenience caused by this inquiry.

    • kenny
    • 5 mths ago
    • Reported - view

    These files are from lapack/blas or other libraries. They should be obtained from the email requested. I am teaching all files needed in the lib folder. 

      • liu_qi
      • 5 mths ago
      • Reported - view

       

      Thank you very much for your previous assistance, which helped me successfully compile Aztec. However, I have encountered new issues while trying to compile TOUGH2-MP to generate an executable on my PC. Previously, I modified FFLAGS= -O2 -fdefault-real-8 -fcheck=all -Wall, which resulted in an error: "Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(8)/REAL(8))."

      To address this, I further modified FFLAGS= '-fallow-argument-mismatch'. Unfortunately, I now encounter the following errors.

      Could you please advise if my FFLAGS settings are incorrect? Your assistance is greatly appreciated.

      This is my first time working with compling, sorry if this is obvious.

      • kenny
      • 5 mths ago
      • Reported - view

       try replace    232 ....., 1.E50    with 1.d50 

      • liu_qi
      • 5 mths ago
      • Reported - view

       

      Thank you for your previous advice, which successfully resolved the issues I was encountering. However, I have now encountered a new problem. Following the reference at https://tough.forumbee.com/t/g9h57pf/tough3-installation-issue#x2y8w2n, I have set the FFLAGS in the Makefile to “-fallow-argument-mismatch”. Despite this, I am still experiencing mismatch errors and numerous warnings (I hope these warnings will not cause issues in subsequent simulations). I have checked other source files and did not find any further compiler options for F.

      Could you please advise on how to resolve this issue?

      Thank you very much for your assistance.

      • liu_qi
      • 5 mths ago
      • Reported - view

       You mentioned earlier that the error was due to the gfortran version being higher than 10, so I tried downgrading my gfortran version to 9.5, but the same error still occurred.Could you please help me in this regard?

      Thank you in advance.

Content aside

  • 5 mths agoLast active
  • 10Replies
  • 77Views
  • 2 Following