Welcome, Guest
Username: Password: Remember me

TOPIC: Large number of sources & tracers that exceeds MAXKEYWORD of 3000

Large number of sources & tracers that exceeds MAXKEYWORD of 3000 2 years 5 months ago #40470

  • Lan Anh
  • Lan Anh's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 20
  • Thank you received: 1
Hello,

I have a coupled Telemac-2D - Waqtel model which has 68 sources with 6 tracers at each source.
I managed to increase the MAXKEYWORD to 3000 following the advices given in this forum. However, even with the limit of 3000 characters, the model is not able to account for more than 51 sources (as can be seen in the attached telemac.log file).
I also tested the MAXKEYWORD to 5000, but the result is the same.
I would like to know if 3000 is the maximum MAXKEYWORD in Telemac? How can we deal with a large number of sources and tracers that exceeds this limit of 3000 characters?

Thanks in advance,
Lan Anh
Attachments:
The administrator has disabled public write access.

Large number of sources & tracers that exceeds MAXKEYWORD of 3000 2 years 5 months ago #40496

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello Lan Anh,

Can you change the extension of the enclosed file to .txt so that it can be read please?

What have you exactly done? Change MAXKEYWORD from 300 to 3000 in declarations_special? Have you then run compile_telemac.py with option --clean? The change of this variable declared as PARAMETER and which is used for the dimension of arrays should be taken into account by this way.

50*6 = 300 and 51*6 = 306 > 300 = default value for MAXKEYWORD. I wonder if it is not a coincidence.

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.

Large number of sources & tracers that exceeds MAXKEYWORD of 3000 2 years 5 months ago #40507

  • Lan Anh
  • Lan Anh's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 20
  • Thank you received: 1
Hi Chi-Tuan,

I have not re-compile the telemac because I ran the model in an external cluster.
What I have done is to change all the MAXKEYWORD to 3000 in a fortran.F file including:
Module declarations-special
Module interface_Telemac2D
PROGRAM HOMERE_TELEMAC2D
SUBROUTINE LECDON_TELEMAC2D
SUBROUTINE RESCUE
In case I did not change the MAXKEYWORD from 300 to 3000, I received the famous error
ADRESS GREATER THAN NMAX = 300
TOO MANY VALUES OF TYPE : 2 DECLARED.
I will try to re-compile telemac on my PC and retry the model.

You find enclosed the file in .txt. Could you please take a look at it and let me know what to do then.

Thank you,
Lan Anh

File Attachment:

File Name: telemac_log.txt
File Size: 64 KB
The administrator has disabled public write access.

Large number of sources & tracers that exceeds MAXKEYWORD of 3000 2 years 5 months ago #40508

Dear Lan Anh and Chi Tuan,

I think I have had this issue as well once, and indeed changing the MAXKEYWORD and recompiling completely worked for me (I think I set it to 600 instead of 300).
@chi-Tuan, would it be possible to increase this parameter in the next release of TELEMAC?


Kind regards,

Alexander
The administrator has disabled public write access.

Large number of sources & tracers that exceeds MAXKEYWORD of 3000 2 years 5 months ago #40509

  • Lan Anh
  • Lan Anh's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 20
  • Thank you received: 1
Hi all,

@Alexander: nice to hear from you, long time no see!

@Chi-Tuan: I already re-compiled Telemac following your advice, but the result is the same with only 51 sources recognised by Telemac.
I found a temporary solution by giving only the discharges of the sources in the source file, and keeping all the tracers in the steering file. In this case, the limit of MAXKEYWORD is not exceeded, and we can model more than 100 sources.

However this is only work when the tracers are not time-dependent.

Lan Anh
Attachments:
The administrator has disabled public write access.

Large number of sources & tracers that exceeds MAXKEYWORD of 3000 2 years 5 months ago #40529

Hi Lan Ahn,

Nice to hear form you too. I have taught why there are only 51 tracers, but I don't really know. Sorry. I had noticed in the past though that when using a really large number of sources, I needed to set TYPE OF SOURCES = 2. With TYPE OF SOURCES = 1. the model crashed (I think it was out of memory)

I let you know just in case it helps.

Kind regards,

Alexander
The administrator has disabled public write access.
Moderators: pham

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