0

TOUGH2-MP compilation error

Hello everybody,

My research centre has a version of TOUGH2-MP and we are trying to install it with ECO2N eos in the cluster:


Cluster: Rocks Cluster
Operating System: Cent OS -> (2.6.32-220.13.1.el6.x86_64 #1 SMP Tue Apr 17 23:56:34 BST 2012 x86_64 x86_64 x86_64 GNU/Linux)
Compiler mpif90: GNU Fortran (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4.

However, we can only get the compiler to start if we change


FFLAGS = -O -r8 -i4
to

FFLAGS = -O

but then we get the following error:


mpif90 -O   -c -o Data_DD.o Data_DD.f
mpif90 -O   -c -o Mem_Alloc.o Mem_Alloc.f
mpif90 -O   -c -o MULTI.o MULTI.f
MULTI.f:232.34:

 
              IF(EVOL(N).GE.1.E50) THEN
                                  1
Error: Real constant overflows its kind at (1)
MULTI.f:234.18:

 
              ENDIF
                  1
Error: Expecting END DO statement at (1)
make: *** [MULTI.o] Error 1

We are stuck on this. Can anyone, please, help?

Thank you very much,

Júlio

2 replies

null
    • George_Pau
    • 8 yrs ago
    • Reported - view

    Please add 

    -fdefault-real-8

    to the FFLAGS instead of i4 and r8;  Those are for ifort compiler. Let me know if that fixes the problem.

    Thanks,

    George

    • Julio_Carneiro
    • 8 yrs ago
    • Reported - view

    Yes, it did work! Compilation went without problems.

    Thank you very much.

    Júlio

Content aside

  • 8 yrs agoLast active
  • 2Replies
  • 814Views
  • 2 Following