Welcome, Guest
Username: Password: Remember me

TOPIC: Re-compile TELEMAC2D after modifications in some subroutines

Re-compile TELEMAC2D after modifications in some subroutines 7 years 11 months ago #24549

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 6
Hello
I feel no solution exists to handle as much sources points as we want. Some posts point out modifying the mMAXKEY parameter in declarations-telemac2d.f and add some rows in debsce.f to account for more than 99 sources.
I did that change for MAXKEY (MAXKEY = 1000 rather than 400) and have added this (between rows 95-96) in debsce.f :
ELSEIF(I.LT.1000) THEN
WRITE(FCT(3:5),FMT='(I2)') I
FCT(6:6)=')'
However I do not understand why the command compileTELEMAC.py modules:update telemac2d dose not work properly. below is the error message:

'ifort.exe' n'est pas reconnu en tant que commande interne ou externe,...
Hummm...I could note complete my work
.......
may be I miss something to compile telemac2d. I even without changes did not succesfully compile telemac.
Any help will be appreciated
Hope good day for everyone
The administrator has disabled public write access.

Re-compile TELEMAC2D after modifications in some subroutines 7 years 11 months ago #24553

  • riadh
  • riadh's Avatar
Hello

This is not linked to your changes, it looks like a problem with the config. Windows is not reconging the compiler Intel (Ifort). Are you using Intel compiler?
If it it the case, you should verify that you give the good path in the variables of environment (Variables d'environnement in French).

A much more easier way to proceed in to add the modified subroutines to the fortran user files.

A last question, is your model running with a fewer number of sources ?

With my best regards

Riadh
The administrator has disabled public write access.

Re-compile TELEMAC2D after modifications in some subroutines 7 years 11 months ago #24565

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 6
Hi Riadh,
I don't know if I have Inter fortran. If this is necessary, why compilation is properly finished in the first time I installed TELEMAC (using automatic installer). Is this Intel Fortran Compiler opensource ?

Actually I added the bin directory of MINGW to the path, now it's running : will see wether if the compilation will be done.

For the sources number, yes Riadh I have 646 points with UTM coordinates. That is why (in my opinion) no way exists to insert all these coordinates in the steering file even I actually using a txt file for sources discharges. It's seems to be too long for lecdon_telemac2d subroutine to read all that information.

Once simulation is lunched, TELEMAC use lecdon_telemac2d to read the steering file which in turn uses declarations-telemac2d.f to get the value of MAXKEY parameter. In this subroutine MAXKEY is set to 400 (400 characters for each keyword in the steering). But still definition of MAXkEY is misleading for me. Actually, use of sources needs three keywords (abscisses des sources, débits des sources et odonnées des sources). I should not go beyond 400 characters for each keyword (abscisses<400 charcaters, debits <400 charcaters, ordonnées<400 charcaters) or them together (abscisses+débits+ordonnées <400 charcaters).
Anyway I can set up MAXKEY as greater as I want whatever its exact meaning.

Instead MAXKEY=400 I use MAXKEY=20000

I also did some modifications in DEBSCE.f
After the row number 95 I added this :
ELSEIF(I.LT.1000) THEN
WRITE(FCT(3:5),FMT='(I2)') I
FCT(6:6)=')'

Now if I manage successfully compile telemac2d (only telemac2d not the entire TELEMAC system) after these changes I strongly believe that simulation will
The administrator has disabled public write access.
Moderators: pham

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