Welcome, Guest
Username: Password: Remember me

TOPIC: Merging result files

Merging result files 7 years 6 months ago #26354

  • drslump
  • drslump's Avatar
I'm running a parallel 2D simulation on a HPC. It requires prescribing CPU time so that job scheduler can queue up the job accordingly. Unfortunately, there is an upper limit to this CPU time. I have been running a simulation for a week (the limit) but only about 2/3 of the prescribed time step was solved. I'd like to manually merge the T2DRES in the temporary file so that I can use the last computed time step to continue the simulation.

Any help is much appreciated!

Best regards,
Sho
The administrator has disabled public write access.

Merging result files 7 years 6 months ago #26356

  • Phelype
  • Phelype's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 64
Hello,

What you want is gretel_autop. It is compile with TELEMAC. You can find id at %INSTALLDIR%/builds/%CONFIG%/bin/gretel_autop.

Copy it to the folder where you files are and run it.
First give the name of the geometry file (T2DGEO), then the name of the results file (T2DRES) then the number of cores you ran the simulation on.

The merged file will be saved as T2DRES (without 00000-00000 appended).

Best regards,

Phelype
The administrator has disabled public write access.
The following user(s) said Thank You: drslump, liuy

Merging result files 7 years 6 months ago #26358

  • drslump
  • drslump's Avatar
Phelype,

Thank you very much, thats exactly what I was looking for!

Best regards,
Sho
The administrator has disabled public write access.

Merging result files 7 years 6 months ago #26366

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello,

Here is the recollection command from the python scripts:
runcode.py --merge -w temp_dir module cas
I normally use it to merge the results when the computation has finished successfully but the results were not recollected properly for some reason. It is more straightforward than using gretel directly.

Regards,
Costas
The administrator has disabled public write access.
The following user(s) said Thank You: drslump, Htun Pyae Sone, Marleine

Merging result files 7 years 6 months ago #26370

  • drslump
  • drslump's Avatar
Hi Costas,

Thanks for your help again! I like your solution, very simple. Also it's more suitable for merging the files in HPC directory without downloading them to my PC first.

Best regards,
Sho
The administrator has disabled public write access.

Merging result files 7 years 6 months ago #26371

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

There is also a script name gretel.py that will run the merging.
In cas you are in a situation where "runcode --merge" is not possible.
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: Htun Pyae Sone

Merging result files 6 years 5 months ago #30360

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
Hi,

I have the same problem but with 3way coupled model. I tried the
runcode.py --merge -w temp_dir module cas

But it has not worked.

Could you please explain me how the gretel.py is working so that I can merge all three files?

Regards,
Clemens
The administrator has disabled public write access.

Merging result files 6 years 5 months ago #30363

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
What was the error with runcode --merge ?

Just run gretel.py -h to see the options.
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.

Merging result files 6 years 5 months ago #30365

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
It always said
"The request is not installed on this system: T2D

I will check gretel
The administrator has disabled public write access.

Merging result files 6 years 5 months ago #30366

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
I get an error with gretel as well.

It says:
File /home/USER/telemac/..../python27/gretel.py, line 120, in <module> if not cfgs [args.configNeme].has_key('root'
KeyError: ' '

Not sure what that means.
The administrator has disabled public write access.
Moderators: pham

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