Welcome, Guest
Username: Password: Remember me

TOPIC: running runSELAFIN to merge 2Dand 3D results

running runSELAFIN to merge 2Dand 3D results 3 years 11 months ago #37291

  • Hafedh
  • Hafedh's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
Hello,

I run telemac3d coupled to tomawac and gaia and because of the walltime, my run stopped. I want to recover the 2D and 3D results.
When running runSELAFIN.py I can get the 2D results despite I get an error in the parserSELAFIN.py:

v8p1r1/scripts/python27/parsers/parserSELAFIN.py", line 604, in getVariablesAt
z[varsIndexes.index(ivar)] = unpack(endian+str(self.NPOIN3)+ftype,f.read(fsize*self.NPOIN3))
struct.error: unpack requires a string argument of length 5372

When trying to recover the 3D results, I get the following error:

File "~/v8p1r1/scripts/python27/runSELAFIN.py", line 1208, in <module>
main()
File "~/v8p1r1/scripts/python27/runSELAFIN.py", line 954, in main
slf = alterSELAFIN( slfFile, times = (int(options.tfrom),int(options.tstep),int(options.tstop)), vars = vars, root=rootFile )
File "~/v8p1r1/scripts/python27/runSELAFIN.py", line 201, in __init__
PARAFINS.__init__(self,f,root)
File "/home/hafedh/v8p1r1/scripts/python27/parsers/parserSELAFIN.py", line 935, in __init__
for i,slf in zip(range(len(self.slfs)),self.slfs): self.mapPOIN[slf.IPOB3-1] = i
IndexError: index 38668 is out of bounds for axis 0 with size 30624

regards,
The administrator has disabled public write access.

running runSELAFIN to merge 2Dand 3D results 3 years 11 months ago #37296

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

The Python 2 scripts are not supported anymore.
I would suggest switching to Python 3.

What command were you typing ?
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.

running runSELAFIN to merge 2Dand 3D results 3 years 11 months ago #37298

  • Hafedh
  • Hafedh's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
Many thanks.

For recovering 3D results, I am using the following command:
runSELAFIN.py merge --parallel T3DGEO T3DRES tout3D.slf

At the moment, I can not move to Python3 since I have got many jobs running and they need to be finished before trying to move to Pythpn3.
The administrator has disabled public write access.

running runSELAFIN to merge 2Dand 3D results 3 years 11 months ago #37300

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
You can try running gretel instead of runSELAFIN.py merge.
It should be in builds/<yourconfig>/bin/gretel_autop
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.

running runSELAFIN to merge 2Dand 3D results 3 years 11 months ago #37301

  • Hafedh
  • Hafedh's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
I have gretel and gredelhyd_autop gredelmet_autop gredelpts_autop gredelseg_autop but no gretel_autop.
How can I use it?
The administrator has disabled public write access.

running runSELAFIN to merge 2Dand 3D results 3 years 11 months ago #37302

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
My bad it is the gretel one.

You just run in a terminal the executable gretel (use the full path fo example /home/B61570/opentelemac/git/trunk/builds/S9.gfortran/bin/gretel) from the directory containing you files.
It will ask you for the parameter it needs (more or less the same as runSELAFIN)
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.

running runSELAFIN to merge 2Dand 3D results 3 years 11 months ago #37304

  • Hafedh
  • Hafedh's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
Thank you very much. It works and saved me 4 work days.
The administrator has disabled public write access.
Moderators: borisb

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