Welcome, Guest
Username: Password: Remember me

TOPIC: v8p0r2: problem with python3/runcode.py in parallel

v8p0r2: problem with python3/runcode.py in parallel 5 years 1 month ago #34663

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
Hi,

I'm updating my workflow from v8p0r0 to v8p0r2 on macOS.

Compilation works fine in serial (gcc9) and parallel (openmpi-gcc9) modes.

Then I try to run the telemac2d/malpasset example. The 5 "coarse-grid" examples work fine in serial mode. However, I got the following error when running the fine-grid example in parallel:
Traceback (most recent call last):                                             
  File "/Users/ogourgue/Applications/telemac/v8p0r2/scripts/python3/runcode.py", line 292, in <module>
    main(None)
  File "/Users/ogourgue/Applications/telemac/v8p0r2/scripts/python3/runcode.py", line 275, in main
    run_study(cas_file, code_name, options)
  File "/Users/ogourgue/Applications/telemac/v8p0r2/scripts/python3/execution/run_cas.py", line 140, in run_study
    run_local_cas(my_study, options)
  File "/Users/ogourgue/Applications/telemac/v8p0r2/scripts/python3/execution/run_cas.py", line 31, in run_local_cas
    my_study.partionning(options.use_link)
  File "/Users/ogourgue/Applications/telemac/v8p0r2/scripts/python3/execution/study.py", line 349, in partionning
    concat = self.cas.get('CONCATENATE PARTEL OUTPUT')
  File "/Users/ogourgue/Applications/telemac/v8p0r2/scripts/python3/execution/telemac_cas.py", line 320, in get
    "keyword: {} not in dictionary".format(key))
utils.exceptions.TelemacException: keyword: CONCATENATE PARTEL OUTPUT not in dictionary

The error disappears when I use the python scripts of v8p0r0.

As I'm running the classic malpasset example, I'm only attaching my configuration file and run script (two lines to comment/uncomment for using v8p0r0 or v8p0r2 python3 scripts).

Thank you for your help!
Attachments:
The administrator has disabled public write access.

v8p0r2: problem with python3/runcode.py in parallel 5 years 1 month ago #34665

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

This is a bug for Python3 in v8p0r2.
Python3 was still in development in that release.

You need to replace the line 349 in /Users/ogourgue/Applications/telemac/v8p0r2/scripts/python3/execution/study.py
concat = self.cas.get('CONCATENATE PARTEL OUTPUT')

by
concat = self.cas.get('CONCATENATE PARTEL OUTPUT', '')

That should solve the issue.

Hope it helps
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: o.gourgue

v8p0r2: problem with python3/runcode.py in parallel 5 years 1 month ago #34666

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
Thank you! That works now.
The administrator has disabled public write access.
Moderators: pham

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