Welcome, Guest
Username: Password: Remember me

TOPIC: Use of fortran files

Use of fortran files 10 years 6 months ago #12926

  • JP
  • JP's Avatar
Hi community,

I would like to simulate rainfall depth (time variable) on a city with T2D. I saw differents post about this topic and it seems that the way to do it, is to use the prosou.f subroutine. Also it is the first time i use subroutine in fortran with Telemac (and first time i use fortran code).

So I have differents questions which can look very simple :

1 - Can I download subroutines from the site (I didn't find the link) or must I copy/paste the code from this link
docs.opentelemac.org/prosou_8f_source.html

2- If i have to copy/paste the code, it seems that lines 3 to 144 are missing. Is it normal ? How to delete the line number in front of the line code ?

3- The only part i want to use is the one about rainfall (and evaporation). Do i have to keep all the other line in prosou.f. If no can you confirm that i have to keep the line from 0 to 338 (in the previous link) which are variables declaration and initialization ?


Sorry for these questions which are very basic.


Best Regards.
The administrator has disabled public write access.

Use of fortran files 10 years 6 months ago #12932

  • JP
  • JP's Avatar
Actually, i found the file in C:\TELEMAC\V6p2\telemac2d\tel2d_v6p2\sources.

So my previous questions are answered execept the 3rd one.

I copy/paste the prosou file in my project folder and in my .cas file i write:

FICHIER FORTRAN : 'prosou.f'

Then I run and i have this error :

"... 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

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

Do I have to modify directly the prosou file in its source foler or can i use the "FICHIER FORTRAN" keyword. Then do you have an idea about my message error ?

Thanks
The administrator has disabled public write access.
Moderators: pham

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