Welcome, Guest
Username: Password: Remember me

TOPIC: Maximum number of weirs

Maximum number of weirs 12 years 2 months ago #5568

  • Chris C.
  • Chris C.'s Avatar
Good afternoon,

Is there a technical reason why the maximum number of weirs/singularities in Telemac2D is set to 10?
Would changing the NWRMAX variable in the declarations_telemac2d file be enough to increase this limit?

Thank you,
C. C.
The administrator has disabled public write access.

Maximum number of weirs 12 years 2 months ago #5569

  • riadh
  • riadh's Avatar
Hi Chris,

Glad to read from you.
Yes, it is enough to change NWRMAX in declaration_telemac2d.f
The remaining variables using NWRMAX will be automatically updated. Don't forget to recompile the changed subroutine and to delete the old executable .exe before running Telemac.

With my best regards.

Riadh Ata
The administrator has disabled public write access.

Maximum number of weirs 12 years 2 months ago #5574

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

For me there is no technical reason (maybe by the past?) to keep the value of NWRMAX in the code.
It seems to me we could envisage to cancel this value and replace it by a dynamic allocation.

Nevertheless, 4 years ago, we start do develop a new version of weirs where the number of points on each side of the wear could be different and also with a weir crest which could vary along the weir. It was envisaged to implement this developement in Telemac and replace the current solution.
But we've met some problems in this developement which works anly in scalar mode but not in parallel that's why we didn't implement it.
So the old solution remains...

Hope to find time to develop a full parallel soltuion and implement it in telemac in a near future.

In the meantime, as riadh wrote, you could change the NWRMAX value in declarations_telemac2d.f and make a full compilation of telemac.

Regards
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: Chris C.
Moderators: pham

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