Welcome, Guest
Username: Password: Remember me

TOPIC: Conditions limites

Re:Conditions limites 13 years 3 weeks ago #2932

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hello,

I tried to add this subroutine to a fortran file, but telemac does not run (compilation problem).
Where can i find information on how to manage with the fortran file (programming, compilation, ...) ? I have seen that someone here on the forum mentionned the "Guide to programming in the Telemac system version 6.0", but i can't find it.

To avoid relaxation on my test case, i directly set the coefficient to 0.00 in the sta_dis_cur.f file. But i have exactely the same results. I guess this is because i need to recompile ?

Thanks in adavce,
PL
The administrator has disabled public write access.

Re:Conditions limites 13 years 2 weeks ago #2975

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi,

Does anyone have an advice regarding my previous post ?

Thank you in advance,
PL
The administrator has disabled public write access.

Re:Conditions limites 13 years 2 weeks ago #2983

  • riadh
  • riadh's Avatar
Hi

Can you send us the error message that you obtain when compiling?
Furthermore, remove the .exe before launcing Telemac to be sure that it will be generated including your modifications.
Actually, the relaxation coefficient is used to prescribe smoothly the discharge and avoid the steep gradient effects. That's why it is not recommended to remove it completely but you should take lower values such as 0.015 or 0.01

Kind regards
Riadh
The administrator has disabled public write access.

Re:Conditions limites 13 years 2 weeks ago #3006

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi,

Sorry, i did not explain my problem properly : i did not compile the fortran file (i assume that's why i have this problem), because i don't know how to do it! Can someone explain me how to compile it ?
Furthermore, i don't understand to which ".exe" do you refer. But it's maybe not important if the calculation runs once the fortran file compiled !

Thank you in advance !
PL
The administrator has disabled public write access.

Re:Conditions limites 13 years 1 week ago #3021

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi !

Can someone help me a bit to understand how to compile the fortran file (specific actions, ...) ?

Thank you in advance,
PL
The administrator has disabled public write access.

Re: Conditions limites 13 years 1 week ago #3022

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

If you do have a PRINCI file (say t2d_sim01.f), TELEMAC will compile it for you, automatically as you kaunch your simulation.

To be clear, TELEMAC will first check wehether you already have an executable file named t2d_sim01.exe that is older than you t2d_sim01.f. If so, TELEMAC will not recompile your executable file. If not, TELEMAC will take your PRINCI file (t2d_sim01.f), copy it into a temporary subdirectory and name it t2d_fort.f (for TELEMAC-2D) and then compile it into an exe file within that subdirectory. If the compilation goes well, then TELEMAC copy that executable back to the place where your PRINCI file is (t2d_sim01.f) and name it (t2d_sim01.exe). If you do not have a PRINCI file, TELEMAC will copy the default executable instead.

Riadh asked you to delete the local executable (t2d_sim01.exe), to force TELEMAC to go through the compilation again ... so you can report the error TELEMAC produces, if you have one.

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

Re: Conditions limites 13 years 1 week ago #3024

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi,

Thanks for these explanations. I tried once more with a fortan file named tar.f, but T2D cannot compile it. To be clear, this tar.f is exactely a copy/paste of a subroutine, with only one coefficient that has been modified. I hope it did not miss anything during this step...

Here is the log:

C:\MODELES_2D\Langed\Zo_75.95.f>telemac2d

=========================================================
Telemac System 5.6 to 6.1 - Perl scripts version 6.1
=========================================================
starting...

HOSTTYPE : wintelmpi
PROJECT : C:\opentelemac\wintelmpi
BASE DIRECTORY : C:\MODELES_2D\Langed\Zo_75.95.f
LAUNCH DIRECTORY : C:\MODELES_2D\Langed\Zo_75.95.f
WORK DIRECTORY : C:\MODELES_2D\Langed\Zo_75.95.f\cas9924_tmp
PARAMETER FILE : cas


*** Fichier de configuration SPECIFIQUE :
C:\opentelemac\wintelmpi\config\systel.ini ***



*** TELEMAC2D sur STATION ***


*** Lancement en interactif ***


*** VERSION v6p1 ***

________________________________________________________
Fichier des parametres : cas
________________________________________________________

________________________________________________________
Starting execution: telemac2d.bat
________________________________________________________
- FICHIER FORTRAN : tar.f
______________________________________________________________________________
*** COMPILATION ***

ifort.exe /c /O2 /iface:cref /iface:nomixed_str_len_arg /nologo /names:upperc
ase /convert:big_endian /extend_source:132 /include:C:\opentelemac\wintelmpi\t
elemac2d\tel2d_v6p1\wintelmpi /include:C:\opentelemac\wintelmpi\sisyphe\sisyphe_
v6p1\wintelmpi /include:C:\opentelemac\wintelmpi\tomawac\toma_v6p1\wintelmpi /in
clude:C:\opentelemac\wintelmpi\bief\bief_v6p1\wintelmpi /include:C:\opentelemac\
wintelmpi\special\special_v6p1\wintelmpi /include:C:\opentelemac\wintelmpi\damoc
les\damo_v6p1\wintelmpi /include:C:\opentelemac\wintelmpi\paravoid\paravoid_v6p1
\wintelmpi t2dfort.f
'ifort.exe' is not recognized as an internal or external command,
operable program or batch file.
ERREUR A LA COMPILATION

________________________________________________________
Execution terminee: telemac2d.bat
________________________________________________________
Compilation/linking/file errors detected.
Please see messages in: stdout above, stderr,
and/or file C:\MODELES_2D\Langed\Zo_75.95.f\cas9924_error.log
No execution errors detected.

Working directory: C:\MODELES_2D\Langed\Zo_75.95.f\cas9924_tmp
can be manually deleted with: C:\MODELES_2D\Langed\Zo_75.95.f\delete_cas9924.bat


Returning exit status 1

=========================================================
Telemac System 5.6 to 6.1 - Perl scripts version 6.1
=========================================================
...stopping.


C:\MODELES_2D\Langed\Zo_75.95.f>


Thank you in advance,
PL
The administrator has disabled public write access.

Re: Conditions limites 13 years 1 week ago #3025

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Thank you for the log file.

The error comes from the fact that your operating system does recognise ifort.exe (which is the Intel FORTRAN Compiler):
'ifort.exe' is not recognized as an internal or external command

You also seem to try to compile your system for parallel use (wintelmpi). Even if that is what you want I would advise you try compiling your code in scalar mode first (use the -c wintes command line option).

Given the above, I recommend strongly that you read through the installation procedure (python version), under Documentation / Installations. This should have the answers to your current problems.

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

Re: Conditions limites 13 years 1 week ago #3029

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Thank you for these information.

I installed the wintelmpi with perl. Maybe i need to change to python... It seems quite easy thanks to the new installation section on the website.
One question : as i need to keep a running version on telemac on my pc, can i install another 6.1 version in a different folder before deleting the first ?

PL
The administrator has disabled public write access.

Re: Conditions limites 13 years 1 week ago #3030

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Yes - you can maintain several versions of TELEMAC on your computer. You just have to be careful of the management of the PATH / SYSTELCFG and config files.

You can carry on using the Perl version if you are more familiar with it, but I would argue, when you have the time to investigate, that the python version is simpler (also to mainatin multiple versions of the system).

Glade it helps.
Sébastien.
The administrator has disabled public write access.
Moderators: pham

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