Welcome, Guest
Username: Password: Remember me

TOPIC: Setting compiler order for user fortran folder

Setting compiler order for user fortran folder 3 years 8 months ago #37943

Hello,

I really enjoy that in the newer versions of TELEMAC one is able to have a user fortran folder instead of a single file. This comes very handy, especially if you have a lot of routines. However, now I encountered a problem. I have a case where I added custom fortran routines. The custom routines are declared in the 'interface_telemac2d.f' file. For the case that I have all my fortran routines in my fortran folder, the compiler first tries to compile my custom routine, which is not yet defined in the "new" interface_telemac2d.f, since this routine was not compiled up to that point. If however I move all files to a single user fortran file and bring the interface_telemac2d.f to the front, the compiler gives priority to interface_telemac.2d and everything works like a charm. Long story short my question is:

Can I somehow give priority to the 'interface_telemac2d.f' file. So basically I want to force the compiler to compile the interface_telemac2d.f first.

Best regards, Sebastian :)
The administrator has disabled public write access.

Setting compiler order for user fortran folder 3 years 8 months ago #37944

I forgot to mention that I am using v8p1r0
The administrator has disabled public write access.

Setting compiler order for user fortran folder 3 years 8 months ago #37946

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

You can try by renaming the file m1_interface_telemac2d.f.
All files starting with mi_ will be compiled first.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: s_gegenleithner

Setting compiler order for user fortran folder 3 years 8 months ago #37947

Works perfectly, thank you!

Cheers :)
The administrator has disabled public write access.
Moderators: pham

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