1

Run the iTOUGH2 with command line

Hello,

I'm student, and  a beginner. Now I'm doing a research about multi phase flow analysis.

I try to learn about iTOUGH2 with eos3 but I have problem to running it (like the image attached ), I didn't change anything in the original code. I use Intel Fortran Compiler and run it with command line. I have followed the instruction in the "read me" file even though the version is a little bit different. I have also looked for ways to overcome the LNK2019 and LNK2001 problems, but I haven't found the answer. It hasn't worked until now.

So maybe I can get the answer of that problem by discussing in this forum.

Many thanks,

Mara

17 replies

null
    • Senior Geothermal Scientist - Vatnaskil Consulting Engineers
    • Andri_Arnaldsson
    • 3 yrs ago
    • Reported - view

    How did you compile it? It looks like some of the source is missing from the executable.

      • College student
      • Mara
      • 3 yrs ago
      • Reported - view

      Andri Arnaldsson 

      I just type "ifort" followed by fortran sources (it2main.f it2input.f it2xxxx.f it2user.f mdeppc.f eo3.f t2cg1.f meshm.f ma28.f ifsdummy.f gslibdum.f pvmdummy.f) for compile and linking.  As I read in the instructions for using Intel Fortran Compiler. I don't know which part is wrong.

    • Senior Geothermal Scientist - Vatnaskil Consulting Engineers
    • Andri_Arnaldsson
    • 3 yrs ago
    • Reported - view

    Maybe just a typo, but should be eos3.f instead of eo3.f

    • Senior Geothermal Scientist - Vatnaskil Consulting Engineers
    • Andri_Arnaldsson
    • 3 yrs ago
    • Reported - view

    And maybe t2f.f is missing as well?

      • College student
      • Mara
      • 3 yrs ago
      • Reported - view

       Andri Arnaldsson 

      Yes, sorry I made a typo for eo3 in this chat, I typed eos3 while running it. The image below is the running after I add "t2f.f", there is still 1 error. What do you think??  

      And thank you so much for your reply.
      I need a lot of guidance about TOUGH by this forum. 

    • Senior Geothermal Scientist - Vatnaskil Consulting Engineers
    • Andri_Arnaldsson
    • 3 yrs ago
    • Reported - view

    Looks like there is a missing definition of a variable in the CPUSEC subroutine in mdeppc.f. Can you post that file here?

    • College student
    • Mara
    • 3 yrs ago
    • Reported - view

    Here, I attached

    • Senior Geothermal Scientist - Vatnaskil Consulting Engineers
    • Andri_Arnaldsson
    • 3 yrs ago
    • Reported - view

    TIMER seems to be a subroutine that should be provided with via the compiler libraries and is not found (could be something old or a different compiler). If you are using ifort, try to substitute the CPUSEC subroutine from the mdeplinux.f and recompile. If that works maybe use the entire mdeplinux.f instead of mdpeppc.f?

      • College student
      • Mara
      • 3 yrs ago
      • Reported - view

      Andri Arnaldsson 

      I'm sorry, but I don't have mdeplinux.f on the CD that I got. How I can get it? I only have this files.

    • Finsterle GeoConsulting
    • Stefan_Finsterle
    • 3 yrs ago
    • Reported - view

    Thanks, Andri, for helping Mara. All your answers are (of course) spot on. And yes, I think you can simply use mdeplinux.f instead of mdeppc.f when compiling with ifort.

    Stefan

      • College student
      • Mara
      • 3 yrs ago
      • Reported - view

      Stefan Finsterle 

      Hi Stefan,

      Thank you for responding my question as well.

    • Senior Geothermal Scientist - Vatnaskil Consulting Engineers
    • Andri_Arnaldsson
    • 3 yrs ago
    • Reported - view
    This is the CPUSEC from mdeplinux.f I have - (hopefully it is alright to
    share like this Stefan ). The line numbers are extra.
    
     59 C
     60       IMPLICIT NONE
     61 C
     62 C --- Transfer variables
     63 C
     64       REAL*8  SS
     65 C
     66 C --- Functions
     67 C
     68       REAL*4  ETIME
     69 C
     70 C --- Local variables
     71 C
     72       INTEGER ICALL
     73       REAL*4  S,SA
     74
     75       DIMENSION SA(2)
     76
     77       DATA ICALL/0/
     78
     79       ICALL=ICALL+1
     80       S=ETIME(SA)
     81       IF (ICALL.EQ.1) S=0.E0
     82       SS=S
     83       END
     84
     85 C --  End of CPUSEC
      • College student
      • Mara
      • 3 yrs ago
      • Reported - view

      Andri Arnaldsson 

      Thank you Andri, it works. I can get .exe file.
      I also tried using mdepsun, it worked as well (like trying randomly). 

    • College student
    • Mara
    • 3 yrs ago
    • Reported - view

    But I have another issues to running the sample problem. I followed the instructions, but it gave errors like the images below. I have executable file as "eos3.exe". In the 1st picture, actually the sam1p1i already in the directory. For the 2nd picture I tried some ways, and it still same.  What  command should I use to run it in ifort??

    • Nguyen_Hoang_Hiep
    • 11 mths ago
    • Reported - view

    Could you please give me a solution to solve the same problem with Mara ? Thank you so much and I appreciate that.

    • Yessica_Peralta
    • 5 mths ago
    • Reported - view

    Hi,

    I am trying to run TOUGH3 Executables on the Command Prompt Windows and the following error is showing:

    C:\Program Files\Tough3V1.1\PC_executables>tough3V1.1_eco2m_pc
    forrtl: severe (9): permission to access file denied, unit 36, file C:\Program Files\Tough3V1.1\PC_executables\OUTPUT
    Image              PC                Routine            Line        Source
    tough3V1.1_eco2m_  00007FF6953939F7  Unknown               Unknown  Unknown
    tough3V1.1_eco2m_  00007FF69535424B  Unknown               Unknown  Unknown
    tough3V1.1_eco2m_  00007FF695319A7A  Unknown               Unknown  Unknown
    tough3V1.1_eco2m_  00007FF6953FB46E  Unknown               Unknown  Unknown
    tough3V1.1_eco2m_  00007FF6953FB854  Unknown               Unknown  Unknown
    KERNEL32.DLL       00007FFA11C37344  Unknown               Unknown  Unknown
    ntdll.dll          00007FFA125E26B1  Unknown               Unknown  Unknown

     

    Can someone help me with this please? Thank you in advance.

    Yessica Peralta

    • Yessica_Peralta
    • 5 mths ago
    • Reported - view

    I fix it. I changed the owner of the file and I took full ownership

Content aside

  • 1 Likes
  • 5 mths agoLast active
  • 17Replies
  • 132Views
  • 5 Following