Page 1 of 1

Compile issue

Posted: Thu Jun 30, 2016 9:18 am
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

Re: Compile issue

Posted: Thu Jun 30, 2016 6:50 pm
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

Re: Compile issue

Posted: Fri Jul 01, 2016 9:10 am
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