Welcome, Guest
Username: Password: Remember me

TOPIC: Running multiple instances of TELEMAC-2D with the API

Running multiple instances of TELEMAC-2D with the API 1 year 6 months ago #42727

Hello,

I have a small testcase for which I want test some optimization algorithm using the TELEMAC api. Everything works fine as long as I perform the simulations consecutively. However, I want to speed up the algorithm and therefore want to run multiple instances of the TELEMAC model (on 1 Processor) simultaneously. When trying to create multiple instances of the model, I get the following error:

TelemacException: a Telemac2d instance already exists

Initializing multiple instances of the model is apparently prevented in the Telemac2D class. Is there a reason for that, e.g. the shared object can only deal with one instance at a time? If yes, does anyone have an idea how I could still get multiple T2D instances or knows a workaround for that?

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

Running multiple instances of TELEMAC-2D with the API 1 year 5 months ago #42889

  • Htun Pyae Sone
  • Htun Pyae Sone's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Thank you received: 2
Hi Sebastian,
I am not expert in TelApy but I had experienced a similar problems before. It has been some years. At that time, I was using SCEUA implemented in SPOTPYSPOTPY and it worked well. As far as I understand and remember, it created another class using Telemac2D class inside. I defined all the simulations parameter, changes that is supposed to be happend and output inside the new class. Then I deleted the Telemac2D class at the end of the new class definition. The parallelization is done by the SPOTPY and at that time I used MPC. Hope it helps.

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

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