Welcome, Guest
Username: Password: Remember me

TOPIC: Failure with many sources and tracers

Failure with many sources and tracers 6 years 11 months ago #28404

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
In fact this is a little more complex...
As you have a large number of Sources and Tracers, you exceed the limits of the Keywords...
Then some of your keywords are not taken in account and the default value is used. This will probably explain the message about MoC and also the fact that nothing change even you change the steering file...
Probably this will change if you change the order of keywords in you steering file but i'm not fully sure.
The only solution is the one you found, increasing the MAXKEYWORD value and compile the code...
The other solution is to adapt some fortran code to give the right dimension to the sources and fill the sources data array directly from the code...

Hope this helps
Christophe
The administrator has disabled public write access.

Failure with many sources and tracers 6 years 3 weeks ago #31875

Hello everybody,
Has someone found the solution for V7p2r1 concerning the increase of MAXKEYWORD ? Because when i compile after changing the value of MAXKEYWORD in declaration_special.f, nothing changes.
We also fin MAXKEYWORD in lecdon, homere and interface (_telemac3d.f) but there is no way to modify it.
The administrator has disabled public write access.

Failure with many sources and tracers 6 years 2 weeks ago #31919

Hi everyone ! I finally managed to overpass somere issues in order to run simulations with a big number of tracers and sources. Here the modifications i did in v7p2r1 :

To avoid the message "ADRESS GREATER THAN NMAX = 300" I replaced MAXKEYWORD by the number i wanted (3000) in lecton_telemac3d.f interface_telemac3d.f homere_telemac3d.f and modified the value of MAXKEYWORD in declarations_special.f

To avoid the message 'T3D_DEBSCE NOT PROGRAMMED FOR MORE THAN 99 SOURCES' I modified the ELSEIF(I.LT.100) by ELSEIF(I.LT.3000) in t3d_debsce.f

To avoid the message 'TRSC ENOT PROGRAMMED FOR MORE THAN 99 TRACERS' I modified the ELSEIF(I.LT.100) by ELSEIF(I.LT.3000) in t3d_trsce.f

To avoid the message
'BIEF_ALLVEC_IN_BLOCK:
MORE THAN 256 ( 360 )
VECTORS TO BE ALLOCATED
CHANGE MAXBLOCK IN ALLBLO.
'
I changed MAXBLOCK value in allblo.f (/bief/utils/)


I finally managed to perform a simulation with 18 sources and 18 tracers (324 combinations). In the source.txt file where i add Q() and TR(,) , there where a limitation in term of number of columns that created a SEGMENTATION FAULT when i overpass the 18x19 (source x tracer ) combinations. But for me it is already enough, at the beginning i could only perform a simulation with 9 x 9 combinations.
The administrator has disabled public write access.
The following user(s) said Thank You: Schmirre

Failure with many sources and tracers 6 years 2 weeks ago #31922

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
I'm pretty sure your solution is not fully correct and could create some problem.
Your solution which works by replacing MAXKEYWORD by 3000 means you probably not fully recompile the code from scratch after changing the value of MAXKEYWORD...
If you don't recompile from scratch, all the subroutine know the previous value (300) except the one you modified.

Kind regards
Christophe
The administrator has disabled public write access.

Failure with many sources and tracers 6 years 2 weeks ago #31923

  • Leballeur
  • Leballeur's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 434
  • Thank you received: 163
Hello,

I agree with Christophe.
I recently fully recompiled the v7p2r1 version by modifying MAXKEYWORD=500 only in declarations_special.f and I succeed to run Telemac2d with numerous tracers, sources and tubes.
Nevertheless, during the compilation, I had error messages from sisyphe API and I had to modify the 2 following subroutines (use of INST%MAXKEYWORD instead of hard-coded values of 300).

File Attachment:

File Name: api_instance_sis.f
File Size: 13 KB


File Attachment:

File Name: api_run_sis.f
File Size: 12 KB



I hope it helps.

Regards,
Laurent
The administrator has disabled public write access.

Failure with many sources and tracers 6 years 2 weeks ago #31924

Hello, thanks for the request

Leballeur, i also had to modify api_run_sisyphe.f after having modified declarations_special.f. I will follow your method with INST%MAXKEYWORD.

C.coulet, what do you mean by compile from scratch ? I compile with compileTELEMAC.py.
The administrator has disabled public write access.

Failure with many sources and tracers 6 years 2 weeks ago #31925

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
I would say a full compilation of all sources file
It could be done by adding option --clean
Christophe
The administrator has disabled public write access.

Failure with many sources and tracers 6 years 1 week ago #31996

Indeed c.coulet, it crashes when full compilation is done, but my simulations work well with the 18x18 sources x tracers input...
The administrator has disabled public write access.

Failure with many sources and tracers 6 years 1 week ago #31997

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Could you join the full case to let us see what happens?
Christophe
The administrator has disabled public write access.

Failure with many sources and tracers 5 years 4 months ago #33974

Hi everyone, sorry for the very very late reply, I thought I responded but in fact not.
At that time, following your warnings, I compared my simulations with modifications in the code (concerning the number of sources and tracers)to simulations without modifications . In terms of speed, water level, and tracer behaviour, there were no differences visible (on Bluekenue). Maybe it could alter other parameters or processes but on the ones that interested me it was ok.
Thank you
The administrator has disabled public write access.
Moderators: pham

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