Compile issue

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
amir
Posts: 19
Joined: Wed Mar 09, 2016 2:15 pm

Compile issue

Post by amir »

Hello all,

I have some difficulties getting subroutines to compile for Code_Saturne V.4.0.4.

I am working on a renewed batch system, and when I was trying to compile a user subroutine for code (using code_saturne compile) on this new system; I got the following error massage:

###
/usr/bin/f95 -I /home/firozi/LES/CASE1/SRC -I /home/firozi/Code_Saturne/4.0.4/code_saturne-4.0.4/arch/Linux_x86_64/include/code_saturne -x f95-cpp-input -Wall -pedantic-errors -std=f2003 -O -c /home/firozi/LES/CASE1/SRC/cs_user_boundary_conditions.f90
/home/firozi/LES/CASE1/SRC/cs_user_boundary_conditions.f90:402.4:

use paramx
1
Fatal Error: Cannot read module file 'paramx.mod' opened at (1), because it was created by a different version of GNU Fortran
######

I am not sure about the source of error (is it from the code or the server?), nor if the modules file are created with the same version of the compiler that is being used for the compilation of subroutines.

I appreciate any help you can offer.

Many thanks.
Kind regards,
Amir
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Compile issue

Post by Yvan Fournier »

Hello,

Did you upgrade your system since installing Code_Saturne ? In this case, you would need to simply reinstall the code. If not, this means you may have different modules loaded... What does "module avail" tell you ?

Regards,

Yvan
amir
Posts: 19
Joined: Wed Mar 09, 2016 2:15 pm

Re: Compile issue

Post by amir »

Hello Yvan,

Thanks for your reply,

It was not an upgrade, all data was transferred from one system to another.

As you said, I reinstall the Code and now I think it is ok and it works correctly.

Kind regards,
Amir
Post Reply