Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Problem using fortran file : " 'gfortran n'est pas reconnu en tant que

Problem using fortran file : " 'gfortran n'est pas reconnu en tant que 10 years 6 months ago #13003

  • JP
  • JP's Avatar
Hi community,

I am not sure I should post this as T2D topic but maybe in dedicate fortran forum.

I am trying to use the file prosou.f as subroutine in T2D, under windows 7.

I copy/paste the prosou file form source to my project folder. Then,in my .cas file i write:

FICHIER FORTRAN : 'prosou.f'

Then I run and i have this error :

'gfortran n'est pas reconnu en tant que commande interne ou externe, un programme executable ou un fichier de commande".

So it seems that the problem come from my fortan compiler. Here, the error message speak about gfortran which is the compiler only for GNU systems (I think ???).

T2D works weel when I d'ont try to use a fortran file as subroutine in my .cas file. That is to say, the prosou.f is well compiled when it is used as "T2D system file".

So my question is : Do i have to write somewhere, the name of my fortan compiler under windows, in order to be used for fortran file subroutines ?

The exact error message is :

'gfortran n'est pas reconnu en tant que commande interne ou externe, un programme executable ou un fichier de commande".

"... The following command failed for the reason above
gfortran -c -O3 -ffixed-line-length-132 -fconvert=big-endian -frecord-marker=4 -I C:\TELEMAC\V6p2\telemac2d\tel2d_v6p2\win7gfors -I C:\TELEMAC\V6p2\sisyphe\sisyphe_v6p2\win7gfors -I C:\TELEMAC\V6p2\tomawac\toma_v6p2\win7gfors -I C:\TELEMAC\V6p2\bief\bief_v6p2\win7gfors -I C:\TELEMAC\V6p2\damocles\damo_v6p2\win7gfors -I C:\TELEMAC\V6p2\mumpsvoid\mumpsvoid_v6p2\win7gfors -I C:\TELEMAC\V6p2\paravoid\paravoid_v6p2\win7gfors -I C:\TELEMAC\V6p2\special\special_v6p2\win7gfors t2dfort.f

Thanks
The administrator has disabled public write access.

Problem using fortran file : " 'gfortran n'est pas reconnu en tant que 10 years 6 months ago #13014

  • JP
  • JP's Avatar
I installed gfortran 4.8.2 and it seems to work because the error message doesn't appear anymore. But now I have a new error which is :

" Fatal error : cannot read the module file 'bief.mod' opened at <1>, because it was created by a different version of GNU fortran".

So do I need to recompile the fortran files with gfortran 4.8.2. In this case Do i need to reinstall T2D or just to compile some files ? And which files have to be compiled ?
The administrator has disabled public write access.

Problem using fortran file : " 'gfortran n'est pas reconnu en tant que 10 years 6 months ago #13016

  • jmhervouet
  • jmhervouet's Avatar
Hello,

If you have a new compiler it is better to recompile all the system.

Regards,

JMH
The administrator has disabled public write access.

Problem using fortran file : " 'gfortran n'est pas reconnu en tant que 10 years 6 months ago #13018

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

you can use:
compileTELEMAC.py --clean
to make sure.

Hope this helps,
Sébastien
The administrator has disabled public write access.

Problem using fortran file : " 'gfortran n'est pas reconnu en tant que 10 years 6 months ago #13020

  • JP
  • JP's Avatar
Hello,

Thanks for your answers.

I used the compileTELEMAC.py -- clean command but I still have the same error :

" Fatal error : cannot read the module file 'bief.mod' opened at <1>, because it was created by a different version of GNU fortran"."

my suppositions is :

The T2D "system files" and my subroutine file are copile by two different fortran compilers (intel fortran and gfotran maybe). If I well understand the installation notice, this should be set in the systel.cfg. So I put my systel.cfg in attachment.

Thanks for your help.

Regards,

JP
Attachments:
The administrator has disabled public write access.

Problem using fortran file : " 'gfortran n'est pas reconnu en tant que 10 years 6 months ago #13021

  • JP
  • JP's Avatar
And here is the configuration file.
Attachments:
The administrator has disabled public write access.

Problem using fortran file : " 'gfortran n'est pas reconnu en tant que 10 years 6 months ago #13022

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

if you have two fortran compiler, make sue you are pointing to the correct compiler. In you config, replace gfortran by the full path c:\...\gfortran.exe

cmd_obj: c:\...\gfortran.exe -c -O3 -ffixed-line-length-132 -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_exe: c:\...\gfortran.exe -fconvert=big-endian -frecord-marker=4 -v -o <exename> <objs> <libs>

Also, you can remove "-Xlinker --start-group"

Hope this helps,
Sebastien.
The administrator has disabled public write access.

Problem using fortran file : " 'gfortran n'est pas reconnu en tant que 10 years 6 months ago #13023

  • JP
  • JP's Avatar
Hi,

Thanks for your answer. As you suggested in your previous post I change the paths in my config file. (See config file in attachment) and i removed the "-Xlinker --start-group".

Then i recompile TELEMAC using
compileTELEMAC.py -- clean

And i run telemac for my .cas... And i still have the same error. The message speak about t2dfort.f and i don't find this file in the folder
C:\TELEMAC\V6p2\special\special_v6p2\win7gfors

Please find the exact error message and my config file in attachment.

Thanks for your help,

JP
Attachments:
The administrator has disabled public write access.

Problem using fortran file : " 'gfortran n'est pas reconnu en tant que 10 years 6 months ago #13024

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

t2dfort.f is the temporary name given to your own Fortran file before linking it the rest of the TELEMAC system.

Just as a test: can you change the name of your configuration win7gfors into something else you have not used before ? .. for instance win7gf95s ... This will have the same effect as the --clean option, but it will also make sure the .mod are also rebuilt (this might be a bug of v6p2 now corrected).

Thanks.
The administrator has disabled public write access.

Problem using fortran file : " 'gfortran n'est pas reconnu en tant que 10 years 6 months ago #13026

  • JP
  • JP's Avatar
Hello,

I made the test as you suggest previously and it works !!! :

-In my config file I changed the the name of my configuration : win7gfors by win7gf95s.

-Then i compile using :
compileTELEMAC.py -- clean
Note during this run, a lot of file.o were created when there were not created during previous run

- run the same .cas file as previously and it works !

Thanks a lot for your help ! Is it better to remove the V6P2 and install V6P3 with the automatic installation in order to avoid this kind of problem ?

Thanks again.

Regards,

JP
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.