Welcome, Guest
Username: Password: Remember me

TOPIC: PROBLEM ON MODULES IN FORTRAN FOLDER

PROBLEM ON MODULES IN FORTRAN FOLDER 3 years 6 months ago #38366

  • Castiblanco
  • Castiblanco's Avatar
Hi,

I have and error on Telemac2D v8p2 (last version), when I put the next option in Telemac CAS:

FORTRAN FILE = 'path/to/my/FortranFolder'

I have just copied the fortran module declarations_telemac2d.f from v8p2r0/Sources/Telemac2D into my FortranFolder without changing anything inside file, and when I run telemac2d.py I got the error shown in the attached image.

When I tried just the same on version v8p1r2, i.e., copying declarations_telemac2d.f from v8p1r2/Sources/Telemac2D to my FortranFolder, use de keyword FORTRAN FILE and then run telemac2d.py (this time with version v8p1r2 of course), I got no error.

It seems that there is an incompatibility when recompiling modules inside the Fortran Folder, and the standard modules stored in telemac libraries on version v8p2r0, since the error says that the compiled module (declarations_telemac2d.o in this case) is founded in two different locations, but I have no idea how to solve this issue.

I hope anyone may help me.

Thanks.
Attachments:
The administrator has disabled public write access.

PROBLEM ON MODULES IN FORTRAN FOLDER 3 years 6 months ago #38369

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
Telemac modules shouldn't be part of the user fortran otherwise you will encountered problem.
In fact, during the compilation step, at the library creation step, the most part of the subroutine will be linked with the original version of the module and only the subroutines existing in the user fortran will be linked with the modified version.
This could lead to crazy things which will be very difficult to understand sometimes...
That's why the compiler indicate such message to prevent this risk

Il you should change a module, you should change it in the original source and make a full clean compilation...
Christophe
The administrator has disabled public write access.

PROBLEM ON MODULES IN FORTRAN FOLDER 3 years 6 months ago #38381

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello,

Christophe is right, putting modules in Fortran folder may be dangerous.

Anyway, looking quickly at your error message, it seems that you mix static libraries (.a) with dynamic libraries (.so). I think your installation of TELEMAC could be investigated.

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.
Moderators: pham

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