0

TOUGH3 on PC: CPU timing routine

I recently used Ubuntu terminal to install TOUGH3 on a Windows 10 Laptop.  In order to compile, I had to change a call to the CPU timing routine.  In the esd-toughlib source code, file parallel_stubs.f90, there is a line

r = dsecnd()

I believe this is a CPU timing routine for the Intel Fortran Compiler.  I replaced this line with

r = second()

which is a gfortran CPU timing routine.  With this change, I could compile successfully.  If neither of these routines works for your Fortran compiler, try to find the appropriate CPU timing routine.  If you cannot find one, you can use the line

r = 0

but then the code will not report how long a simulation takes.

1 reply

null
    • Keurfon_Luu
    • 4 yrs ago
    • Reported - view

    I installed TOUGH3 on a fresh WSL setup (Ubuntu 20.04) and it installed smoothly without any modification (with the latest files from the repository).

    I just installed the following packages beforehand:

    sudo apt install gcc gfortran mpich cmake libblas liblapack python2 python

    Then, simply compile with compile_T3_Linux.sh.

     

    I had some issues with `openmpi` thus `mpich`. Also, make sure that the command `python` is working, otherwise PETSc will fail to compile.

Content aside

  • 4 yrs agoLast active
  • 1Replies
  • 142Views
  • 2 Following