1

compiling Gslib in cluster

Dear Stefan, 

I am trying to compile EOS7C-Gslib. It works well on my PC where I used Visual studio. But I can't manage to do the same thing on cluster. I got this linking error:

it2main.o: In function `calltoug_':
it2main.f:(.text+0x1e10a): undefined reference to `multi_'
it2main.o: In function `itough2_':
it2main.f:(.text+0x3ebe0): undefined reference to `morris_'
it2main.f:(.text+0x3f428): undefined reference to `saltelli_'

I was not sure what part I'm doing wrong. Will really appreciate your help.

Regards,

Saba

9 replies

null
    • Finsterle GeoConsulting
    • Stefan_Finsterle
    • 9 yrs ago
    • Reported - view

    Saba,

    It appears you compiled iTOUGH2 before for an EOS module that has its special subroutine MULTI. At any rate, go to t2f.f and make sure you find "SUBROUTINE MULTI" (not xMULTI or some other renamed version of MULTI). You also need to compile and link file it2sa.f. (Not sure where you got your version of iTOUGH2 from...).

    You should be able to imply go to ~/itough2/SourceCode and type

    ./it2make -gslib 7c

    Good look!

    Stefan

      • Ramin.1
      • 5 yrs ago
      • Reported - view

      Stefan Finsterle 

      Dear Stafan,

      I still have the same issue. I have fixed SUBROUTINE MULTI, but still get the issues mentioned by Saba.

      Could you please help me with this?

       

      Best regards,

      Ramin. 

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

      Ramin,

      Remove all *.o files and recompile everything. It is clear that you don't have a compatible eos7c.o file. Are you using it2make (you should)?

      Stefan

      • Ramin.1
      • 5 yrs ago
      • Reported - view

      Stefan Finsterle 

      Dear Stafan,

      I removed all *.o files and recompiled all, still get the same message!! Using it2make, it says: Permission denined. 

      Even when I am trying to link it2make, it says: no rule to make target ¨it2make¨

       

      Thanks,

      Ramin. 

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

      Try to run (assuming gfortran):
      ./it2make -B -gslib -c gfortran

      Depending on your version of iTOUGH2 you may need explicitly define which EOS you want to compile as well.

      • Ramin.1
      • 5 yrs ago
      • Reported - view

        Thanks it worked finally! I removed all o*.files, made the exe for it2make, and linked it to itough2. Then, I added gslib using the command -gslib. 

       

      Regards,

      Ramin. 

    • Saba
    • 8 yrs ago
    • Reported - view

    Dear Stefan,

    I have compiled both itough2_gslib_17 ang itough2_gslib_7C on a cluster and got the executable files. There is no problem running a homogeneous simulation.However, I cannot manage to run any heterogeneous case. It actually fails to read the input file correctly...like, the MOPs don't return the correct value they have in the input file and program crashes when it starts to go through Gslib part. I have run the exact files on my PC, so I think my inputs should be fine. I was wondering if you can give me an idea what I might be doing wrong. 

    Bests,

    Saba

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

    Saba,

    The only thing I can think of is that the respective compilers handle the reading of "wrong" input differently. A guess of mine is that somewhere in the GSLIB input block you have a decimal point when the code expects an integer.  In particular, check:

    1.0 0.0                                 \lower tail option and parameter
    1.0 0.0                                 \upper tail option and parameter

    which should be

    1   0.0                                 \lower tail option and parameter
    1   0.0                                 \upper tail option and parameter

    This is my wild guess just because this error was in the original GSLIB sample problem. For me to get beyond a wild guess, please (as always!) provide information about the error message you get (check screen, .msg, and all output files). If the error message is not very informative, please recompile in debug mode and run it again.

    Not sure how the MOPs get entangled in this.

    Regards,

    Stefan

    • Saba
    • 8 yrs ago
    • Reported - view

    Thanks! That modification solved it.

Content aside

  • 1 Likes
  • 5 yrs agoLast active
  • 9Replies
  • 849Views
  • 4 Following