Welcome, Guest
Username: Password: Remember me

TOPIC: How to increase MAXFRO ?

How to increase MAXFRO ? 13 years 7 months ago #1357

  • BenoitD
  • BenoitD's Avatar
Hello,

I am modeling an urban zone with many blocks of buildings out of mesh (the lines in Matisse ar set as "boundaries"/"contour"). I have 380 boundaries today, and will have maybe 800 in the end.

By default, the parameter "MAXFRO" is set to 300.
Here is the error messsage when I start a simulation :
'FRONT2: SIZE OF ARRAYS EXCEEDED. INCREASE MAXFRO IN THE CALLING PROGRAM UP TO THE VALUE 380

I tried to use the module "Declaration_Telemac2D.f" to change MAXFRO, but the error persists.

Thank you by advance for any help.

With best regards,

Benoît
The administrator has disabled public write access.

Re:How to increase MAXFRO ? 13 years 7 months ago #1361

  • jmhervouet
  • jmhervouet's Avatar
Hello,

MAXFRO is in the file declarations_telemac2d.f, so changing this parameter is possible but would require doing it in the library of sources and recompiling the whole telemac2d program.

If you put this module in your fortran file, all subroutines in the library would see a maxfro equal to 300 and the subroutines in your fortran file would see a maxfro equal to e.g. 380, and this is why you have this message.

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.

Re:How to increase MAXFRO ? 13 years 7 months ago #1362

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
As Jean-Michel said, it's vey dangerous to add and change a value in declaration_telemac2d.f (in your fortran file).
This action could generate some crash which are sometimes very difficult to find because this modification as an influence on the memory arrangement of telemac variables.
The only solution is to change the value in the source and make a full compilation of Telemac2D. There is no other solution.

Good luck
Christophe
The administrator has disabled public write access.

Re:How to increase MAXFRO ? 13 years 7 months ago #1384

  • BenoitD
  • BenoitD's Avatar
Thank you for your advices.
It helps : I re-compiled telemac2D with MAXFRO = 1000 and it seems to work properly.

Benoît
The administrator has disabled public write access.
Moderators: pham

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