Welcome, Guest
Username: Password: Remember me

TOPIC: Error while defining more than 4 discharge source

Error while defining more than 4 discharge source 2 months 2 weeks ago #46579

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3797
  • Thank you received: 1056
As already written, the following lines are too long:
ORDINATES OF SOURCES					 = 5654750;5654756.5;5654766.5;5654768;5654810.5;5654856;5654903
ABSCISSAE OF SOURCES					 = 346966.59;346983.53;347001.22;347006.63;347022.72;347039.91;347057.22
Line should not exceed 72 characters
But you could use the CR and have more than 1 line to describe the values of those keywords. This should be explain in the user manual
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: Jay_00

Error while defining more than 4 discharge source 2 months 1 week ago #46608

  • Jay_00
  • Jay_00's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
Hi Christophe,

I tried editing the Lecdon_telemac.f file as you had suggested. However, I continued to get the error. I looked up for the error on the forum and found two possible answers: www.opentelemac.org/index.php/kunena/17-...sources-number#24548 and www.opentelemac.org/index.php/kunena/16-...es?limitstart=0#1825

Based on the above linked posts, when I try to recompile telemac for windows after editing the declarations_telemac2d.f I get the error for lecdon_telemac2d. (error attached as photo).

Im still trying to understand fortran and am not quite sure where exactly to declare as fixed values (700 in my case) NREJEX or NREJET
Attachments:
The administrator has disabled public write access.

Error while defining more than 4 discharge source 2 months 1 week ago #46611

  • DeVos_TUM
  • DeVos_TUM's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
  • Thank you received: 9
Hi Jay,

I have not 100% read through everything in this thread, but I have been doing something similar in the past and also got similar errors. I think you have already recompiled your TELEMAC with the changed declarations, so that is already a big step.

I have attached my steering file from back then and two fortran routines that I had to add to work with ~700 sources. The fortran files I also got from somewhere in the forum, but I do not remember from where.

I hope this can help you to move forward!

Kind regards
Frederik
Attachments:
The administrator has disabled public write access.
The following user(s) said Thank You: Jay_00

Error while defining more than 4 discharge source 2 months 1 week ago #46612

  • Jay_00
  • Jay_00's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
Hello Frederik,

Thank you for your reply.
Yes, I did change the declarations_telemac from INTEGER MAXSCE to INTEGER, PARAMETER :: MAXSCE =700 (see attached file). But on recompiling telemac I get the error "that a variable is expected" like i mentioned in the last message.

The fortran files that you attached here look very promising, although I have a question: Do I change/modify the files that you have attached before compiling or should I be adding these in the user_fortran folder.

I'll write again if I am stuck. Thank you for your help!

Kind Regards,
Jay
Attachments:
The administrator has disabled public write access.

Error while defining more than 4 discharge source 2 months 1 week ago #46613

  • DeVos_TUM
  • DeVos_TUM's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
  • Thank you received: 9
Hello Jay,

I think that this change in declarations_telemac2d is not necessary. The number of maximum sources can be changed in the steering file (see my attachment).

The thing you must change is in declarations_special.f (in utils/special). Here, you need to increase MAXKEYWORD. The default value is 300, I increased it to 3000. This is necessary, so that you can declare enough sources in your steering file. After changing this, you must recompile.

Kind regards
Frederik
The administrator has disabled public write access.
The following user(s) said Thank You: Jay_00

Error while defining more than 4 discharge source 2 months 4 days ago #46619

  • Jay_00
  • Jay_00's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
Hi Frederik,

I was able to successfully re-compile telemac, thank you for your guidance. However, there two new errors that im encountering (see attachment).

When I try to run the simulation with 700 sources i get the error "stop of damocles at key work number", did you encounter any error like this? Also does it stem from the fact that Im using coordinates to define my sources while you used Node Numbers? I ran another test with a previous steering file without the 700 sources and that runs just fine.

The 2nd Error that I encounter is when I reduce the number of source that I have lets say to 150, I get a error saying "Master processor number 0 of the group of 1" and "Different Number of parallel processors" even when my steering file has no keyword PARALLEL PROCESSORS nor do I try to run it in parallel.

Kind Regards,
Jay
The administrator has disabled public write access.

Error while defining more than 4 discharge source 2 months 4 days ago #46622

  • DeVos_TUM
  • DeVos_TUM's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
  • Thank you received: 9
Hi Jay,


for some reason my reply to this topic gets automatically blocked. If you google my user name, you should find me.

In short:
1. increase maxkeyword further, 700 is still too low (as the error suggests). 700 is not the number of sources, but number of characters.
2. I think it is not related to the processors, use the debugger to get more info.

Kind regards
Frederik
The administrator has disabled public write access.
The following user(s) said Thank You: Jay_00

Error while defining more than 4 discharge source 2 months 3 days ago #46626

  • Jay_00
  • Jay_00's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
Hi Frederik,

Thank you for your timely replies, you have been very helpful.

I have once agian updated the MAXKEYWORD and im also using the debugger to see where the problem lies.

I tried to contact you through like you said but the link buttons to either send a message or to add as a contact seem to be broken. Is there another way that I could contact you?

Kind Regards,
Jay
The administrator has disabled public write access.

Error while defining more than 4 discharge source 2 months 3 days ago #46627

  • DeVos_TUM
  • DeVos_TUM's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
  • Thank you received: 9
Hi Jay,

hope your simulations will work now. Otherwise this thread is always open and you can probably find me using google otherwise.

Kind regards
Frederik
The administrator has disabled public write access.

Error while defining more than 4 discharge source 2 months 2 days ago #46630

  • Jay_00
  • Jay_00's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
Hi Frederik,

I tried using the debug option in the steering file, but im not getting any detailed reason nor a specific file that is failing.

Apart from that what I realised was that while recompiling I was and still am getting a f2py error when I leave "options : api [line 73]" on in the systel.cfg file. I had commented that line out before re-compiling and thats when the segmentation error began to appear.

I looked up the use of api for telemac and it would be necessary for me later to collect data when (IF haha) the simulation runs so that would mean I can not leave the options :api commented out.

I also looked up for the error on the forum and found a post similar to the problem im having but its on linux system and im on windows and telemac is able to locate the f2py file.

www.opentelemac.org/index.php/assistance...the-python-api#42050

Kind Regards
Jay
Attachments:
The administrator has disabled public write access.
Moderators: pham

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