Welcome, Guest
Username: Password: Remember me

TOPIC: Can't change the value of maxkeyword

Can't change the value of maxkeyword 2 years 8 months ago #40046

  • haozailao
  • haozailao's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 86
  • Thank you received: 1
Hello.
I want to add multiple source points in my simulation.
SO I try to change the value of maxkeyword in declarations_special.f but failed.(I have referred to some methods on the forum)
I try a lot of method such as change another computer(higher configuration),change another version of telemac,change another version of Ggortran, change another version of python...
I can change the value of maxkeyword to 450,but error appears when I changed it greater than 500.The telemac2d can't run normally, the error message was showed in the Fig.1.
But I don't think it is the problems of mpi,beacause other module work well(such as telemac3d,tomawac..).And I also try to compile telemac without parallel,telemac2d still can't run normally.

I used gdb to debug telemac2d.The error seems to be due to lecdon_telemac.message shows in Fig 2.
I check the code of lecdon_telemac.f,but I don't find the where the problem is.
Can anyone give me some advice to solve this or give me some advice to manage multiple point sources?
Thanks advanced.
Attachments:
The administrator has disabled public write access.

Can't change the value of maxkeyword 2 years 8 months ago #40047

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
Maxkeyword is mainly linked to the reading of steering file where sources points are described.
But you could bypass this problem with few intervention in the sources.
In lecdon_telemac.f, you should find the location where the number of sources is determine and instead of this automatic determination by an access to the steering file, you could give the value you want...
After that, you modify the filling of the sources informations (location, discharge) by a read in an external file and normally the program should run without any change to maxkeyword...

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

Can't change the value of maxkeyword 2 years 8 months ago #40050

  • haozailao
  • haozailao's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 86
  • Thank you received: 1
Thanks for your advice.
I still have a problem.
By follow your advice,can I manage point sources more than the value of maxkeyword?
It means if I set the value of maxkeyword to 450(so that telemac2d can normally work),can I manage 500 point source?
The administrator has disabled public write access.

Can't change the value of maxkeyword 2 years 8 months ago #40051

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
With my solution, you don't have to change the value of maxkeyword.
As we bypass the reading of steering file, you shouldn't fill the sources values in the steering file itself...

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

Can't change the value of maxkeyword 2 years 8 months ago #40052

  • haozailao
  • haozailao's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 86
  • Thank you received: 1
Yes,I know.
I think the information of source also stores in a matrix. Can this matrix's size bigger than maxkeyword?
The administrator has disabled public write access.

Can't change the value of maxkeyword 2 years 8 months ago #40053

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
No there was a dynamic allocation of the bief_obj structures according to the number of sources point...
You maybe have to look at point_telemac2d.f for the allocation

Regards
Christophe
The administrator has disabled public write access.

Can't change the value of maxkeyword 2 years 8 months ago #40070

  • haozailao
  • haozailao's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 86
  • Thank you received: 1
Hi,c.coulet.
I have successfully added multiple sources through your method.Thanks for your help.
I have a question that when I added too much point,the simulation seems hard to convergence.
My current settings are almost set according to the user manual.
Based on your experience, are there better options in simulation areas with complex terrain(like urban area) and more sources(only care about Hydrodynamic)?
Thanks again.
The administrator has disabled public write access.

Can't change the value of maxkeyword 2 years 7 months ago #40085

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

In the TELEMAC-2D user manual is described the feature linked to keyword SOURCE REGIONS DATA FILE which may help you. You should read the whole chapter 8 if not already done.

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.
Moderators: pham

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