Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: FORTRAN : Error messages in TELEMAC2D

FORTRAN : Error messages in TELEMAC2D 1 year 4 months ago #42925

  • Laurie
  • Laurie's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 97
  • Thank you received: 5
Laurie wrote:
If I've understood correctly, this setup-x86_64.exe is the exe for installing CygWin (it's in my download folder). Maybe I need to move it somewhere? Or adapt the line of code so that cmd.exe can find it.

I opened the command prompt directly in my download folder, using PowerShell in administrator mode.
I just need to add .\ before setup-....
And it works.
PS C:\Users\lboudet\Downloads> .\setup-x86_64.exe -P ...
The administrator has disabled public write access.

FORTRAN : Error messages in TELEMAC2D 1 year 4 months ago #42926

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Once again it could be great to well read all the recommendation and prerequisite for Telemac before trying to use it...
v8p4r0 doesn't have script/python27 directory as this version is only compatible with python3!
As you're not a Telemac expert, please don't try to mimic the previous installation. Make a clear new one with the new automatic installer which as been designed for beginners like you

Regards
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: Laurie

FORTRAN : Error messages in TELEMAC2D 1 year 4 months ago #42927

  • Laurie
  • Laurie's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 97
  • Thank you received: 5
Yes, you're certainly right. I'll do that.
Thanks for your time.
Laurie
The administrator has disabled public write access.

FORTRAN : Error messages in TELEMAC2D 1 year 4 months ago #42928

  • Laurie
  • Laurie's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 97
  • Thank you received: 5
Done. I installed the automatical version :
www.opentelemac.org/index.php/binaries



But, I have a last question.
How to launch an example ?

I'm ashamed to ask, but I've always used files/exes predefined by other users. But this time I don't know.

In the document telemac2d_user_v8p4.pdf, p116/132, we are only told to use the command telemac2d.py [cas].


PS C:\Users\lboudet\Desktop\calc_TELEMAC\02_TELEMAC\break> telemac2d.py .\t2d_break.cas
telemac2d.py : Le terme «telemac2d.py» n'est pas reconnu comme nom d'applet de commande, fonction, fichier de script
ou programme exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, vérifiez que le chemin d'accès
est correct et réessayez.
Au caractère Ligne:1 : 1
+ telemac2d.py .\t2d_break.cas
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (telemac2d.py:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException


The Telemac2d.py file is here:
C:\Program FilesTELEMAC\V8P4\scripts\python3
But I don't know how to find it.
The administrator has disabled public write access.

FORTRAN : Error messages in TELEMAC2D 1 year 4 months ago #42929

  • zied.amama
  • zied.amama's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 2
From which terminal are you executing the command telemac2d.py ?

Once you set up TELEMAC from the automatic installer, you should see appear a new shortcut named "TELEMAC Command Prompt" if you search it in your windows taskbar or find it in "Windows/Start Menu/Programs/TELEMAC V8P4/".

This shortcut has the benefit of directly opening the terminal in your TELEMAC folder while sourcing the configuration files "pysource.bat".
The administrator has disabled public write access.

FORTRAN : Error messages in TELEMAC2D 1 year 4 months ago #42930

  • Laurie
  • Laurie's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 97
  • Thank you received: 5
Yes ! I found it. Thanks.

But, how to launch a run with it ?
The TELEMAC Command Prompt open a command invit with :
(telemac) C:\TELEMAC\V8P4>

But, my Telemac steering file is in an other folder.

I tried :
(telemac) C:\TELEMAC\V8P4>cd C:\Users\lboudet\Desktop\calc_TELEMAC\02_TELEMAC\break\

(telemac) C:\Users\lboudet\Desktop\calc_TELEMAC\02_TELEMAC\break>telemac2d.py t2d_break.cas
Traceback (most recent call last):
  File "C:\TELEMAC\V8P4\scripts\python3\telemac2d.py", line 4, in <module>
    from runcode import main
  File "C:\TELEMAC\V8P4\scripts\python3\runcode.py", line 12, in <module>
    from config import CFGS, add_config_argument, update_config
  File "C:\TELEMAC\V8P4\scripts\python3\config.py", line 14, in <module>
    from configuration.cfg import Config
  File "C:\TELEMAC\V8P4\scripts\python3\configuration\cfg.py", line 8, in <module>
    import configparser
ImportError: No module named configparser

"No module named configparser" --> an idea ?
The administrator has disabled public write access.

FORTRAN : Error messages in TELEMAC2D 10 months 1 day ago #43982

  • Laurie
  • Laurie's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 97
  • Thank you received: 5
Hi all,
Sorry for the late reply.
zied.amama wrote:
Greetings,

For the first error, in your file
tarage_barrage_V3_V7P1.ftarage_barrage_V3_V7P1.f
, you declared an integer variable named LNG, this variable is also declared in the module "(sources\utils\special\declarations_special.F)"

This variable is associated to the language choice for listing outputs and can't be declared again in your user file (which probably calls the "declarations_special" file).

Hence, I suggest you to use a different variable name for LNG.

You can find more informations on how to write subroutines by reading the developer_guide : gitlab.pam-retd.fr/otm/telemac-mascaret/...loper_guide_v8p4.pdf

I hope that helps!



I tried to change LN in LNi and LNG in LNGi.
It morks for this error.

Now I continue to fix the others ;p

Thanks !
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

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