Welcome, Guest
Username: Password: Remember me

TOPIC: Why do I get an error trying to run an example?

Why do I get an error trying to run an example? 3 years 2 months ago #39030

  • dneves
  • dneves's Avatar
Hi, do you have any idea why I am getting this problem when running an example?
The compilation went well...I do not know why he is complaining that he is not finding geometry file when it is there in the folder...

Do you have any idea?
Attachments:
The administrator has disabled public write access.

Why do I get an error trying to run an example? 3 years 2 months ago #39031

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
Run the example from the directory of the example not from the directory which contain scripts
Christophe
The administrator has disabled public write access.

Why do I get an error trying to run an example? 3 years 2 months ago #39032

  • dneves
  • dneves's Avatar
Hi c.coulet,

Sorry this might be silly but what command should I use to run the example?

I copied the telemac2d.py into the example folder and was trying to run like this...but I suspect I am doing something wrong...
Attachments:
The administrator has disabled public write access.

Why do I get an error trying to run an example? 3 years 2 months ago #39036

  • PMV
  • PMV's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 149
  • Thank you received: 42
If you have python associated with .py files in your path and environnent settings you can skip the python call:
telemac2d.py t2d_xxx.cas
or
runcode.py telemac2d t2d_xxx.cas

Hope that helps, if not have a look on the forum,
Patrick
The administrator has disabled public write access.

Why do I get an error trying to run an example? 3 years 2 months ago #39039

  • dneves
  • dneves's Avatar
Hi,

I manage to run it, e only had to copy all files from python folder into the example folder...

Cheers!

Thank you very much for the help!
The administrator has disabled public write access.

Why do I get an error trying to run an example? 3 years 2 months ago #39043

  • PMV
  • PMV's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 149
  • Thank you received: 42
Create a shortcut to a command window and set the target in the properites to:
C:\Windows\System32\cmd.exe /E:ON /V:ON /K set SYSTELCFG=C:\opentelemac-mascaret\v8p2r0\configs\systel_v8p2r0.cfg && PATH=C:\opentelemac-mascaret\v8p2r0\scripts\python3;!PATH!

Then you can run simulation from all folders.

Patrick
The administrator has disabled public write access.

Why do I get an error trying to run an example? 3 years 2 months ago #39044

  • dneves
  • dneves's Avatar
Thank you very much Patrick!

Kind regards
The administrator has disabled public write access.
Moderators: borisb

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