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

14replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
    • Andri Arnaldsson
    • Senior Geothermal Scientist - Vatnaskil Consulting Engineers
    • Andri_Arnaldsson
    • 4 mths ago
    • Reported - view

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

    Like
      • Mara
      • College student
      • Mara
      • 4 mths 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.

      Like
    • Andri Arnaldsson
    • Senior Geothermal Scientist - Vatnaskil Consulting Engineers
    • Andri_Arnaldsson
    • 4 mths ago
    • Reported - view

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

    Like
    • Andri Arnaldsson
    • Senior Geothermal Scientist - Vatnaskil Consulting Engineers
    • Andri_Arnaldsson
    • 4 mths ago
    • Reported - view

    And maybe t2f.f is missing as well?

    Like
      • Mara
      • College student
      • Mara
      • 4 mths 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. 

      Like
    • Andri Arnaldsson
    • Senior Geothermal Scientist - Vatnaskil Consulting Engineers
    • Andri_Arnaldsson
    • 4 mths 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?

    Like
    • Mara
    • College student
    • Mara
    • 4 mths ago
    • Reported - view

    Here, I attached

    Like
    • Andri Arnaldsson
    • Senior Geothermal Scientist - Vatnaskil Consulting Engineers
    • Andri_Arnaldsson
    • 4 mths 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?

    Like
      • Mara
      • College student
      • Mara
      • 4 mths 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.

      Like
  • 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

    Like
      • Mara
      • College student
      • Mara
      • 4 mths ago
      • Reported - view

      Stefan Finsterle 

      Hi Stefan,

      Thank you for responding my question as well.

      Like
    • Andri Arnaldsson
    • Senior Geothermal Scientist - Vatnaskil Consulting Engineers
    • Andri_Arnaldsson
    • 4 mths 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
    Like
      • Mara
      • College student
      • Mara
      • 4 mths ago
      • 1
      • 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). 

      Like 1
    • Mara
    • College student
    • Mara
    • 4 mths 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??

    Like
Like Follow
  • 4 mths agoLast active
  • 14Replies
  • 35Views
  • 3 Following