Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Error getting NPLEO from cas file

Error getting NPLEO from cas file 8 years 8 months ago #20442

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello,

I am using the trunk, revision 7307.

I want to write the spectrum of a point to continue a computation with ARTEMIS. I specify the abscissa/ordinate of ONLY ONE POINT point in the TOMAWAC steering file and get the following error (run is in parallel):
================================================================================
       TEMPS :       0.0000 SECONDES                            0IEME  ITERATION
--------------------------------------------------------------------------------
 SPECTRUM OR SOURCE POINT            1  OUTSIDE DOMAIN
 NOT A MISTAKE IN PARALLEL MODE
 SPECTRUM OR SOURCE POINT            2  OUTSIDE DOMAIN
 NOT A MISTAKE IN PARALLEL MODE
 POINT            2  IS NOT IN ANY SUB-DOMAIN

 PLANTE: PROGRAM STOPPED AFTER AN ERROR
 RETURNING EXIT CODE:            2

When I add a second point, TOMAWAC works, but then I cannot use the PUNCTUAL RESULTS FILE with ARTEMIS because it requires a file with only one point. At firsts it looks that there is a problem with the code that makes TOMAWAC look for a second point, even if it is not specified in the cas file.

Having a look at lecdon_tomawac.f there is the following comment:
!history  J-M HERVOUET (EDF LAB, LNHE)
!+        08/03/2016
!+        V7P2
!+  Retrieving NPLEO in a different way.

So, now the question is whether it is an error with the code, OR the code has changed and the points have to be specified in another manner.

Best Regards,
Costas
The administrator has disabled public write access.

Error getting NPLEO from cas file 8 years 8 months ago #20444

  • jmhervouet
  • jmhervouet's Avatar
Hello Costas,

I did this change when looking for another bug, when I realised that I had NO spectrum point and I was also stopped because a spectrum point was outside the domain.

In lecdon_tomawac.f I changed:

NPLEO=DIMEN(2,4) into:

IF(TROUVE(2,4).EQ.2) THEN
NPLEO=DIMEN(2,4)
ELSE
NPLEO=0
ENDIF

to secure the fact that if the keyword ABSCISSAE OF SPECTRUM PRINTOUT POINTS is not in the user steering file, no spectrum will be considered (I was afraid that the default size given in the dictionary would pop out instead of 0). Normally the original version NPLEO=DIMEN(2,4) should work and return 0 in this case.

To sum up: the number of spectrum points is deduced from the number of abscissae that you give.

Now we have to understand why you get NPLEO = 2 instead of 1, but maybe you will see after these explanations, otherwise I would need the case to investigate further.

With best regards,

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

Error getting NPLEO from cas file 8 years 8 months ago #20447

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello Jean-Michel,

Thank you for your explanation. I will have another look at it. In the meantime, I attach my cas file:

File Attachment:

File Name: tom_yfist_1_22.5_67.5_0.5_1_init.cas
File Size: 4 KB


Regards,
Costas
The administrator has disabled public write access.

Error getting NPLEO from cas file 8 years 4 months ago #22191

  • komijani
  • komijani's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 27
  • Thank you received: 3
Hi Costas

did you find solution of your problem?

i think i have something similar in a way.
i ask for 19 points and get only 2 back.
the same cas gave 19 outputs with v7p0 but gives 2 with v7p1.
my search brought me to lecdon_tomawac.f > damocle.f > damoc.f but not further yet.

bests
Homayoon
The administrator has disabled public write access.

Error getting NPLEO from cas file 8 years 4 months ago #22192

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello, Homayoon,
I have modified lecdon_tomawac.f and since then it works fine for me. See if it works for you as well:

File Attachment:

File Name: lecdon_tomawac.f
File Size: 22 KB

Regards,
Costas
The administrator has disabled public write access.

Error getting NPLEO from cas file 8 years 4 months ago #22195

  • komijani
  • komijani's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 27
  • Thank you received: 3
thank you Costas for sharing your lecdon_tomawac.f

but it didnt solve it. i will post this as a separate post. someone might have faced this.

bests
Homayoon
The administrator has disabled public write access.

Error getting NPLEO from cas file 8 years 1 month ago #23893

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Having revisited this issue after testing the latest trunk revision, I noticed that the problem still persists. My modification for lecdon_tomawac was simply to hardcode 1 for NPLEO and problem solved for me. Obviously this is not right. The original lecdon_tomawac still returns NPLEO=2 even when I have only one abscissa defined.

Still, I cannot find an explanation. Can someone have a another look?

Best Regards,
Costas
The administrator has disabled public write access.

Error getting NPLEO from cas file 8 years 1 month ago #23897

  • tfouquet
  • tfouquet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 294
  • Thank you received: 112
Hello Costas,

For a reason i don't know, the size of Abcisse and ordinate is set to 2 by default, I still don't know in detail how the dictionnary is managed but putting tail : 1 instead of 2 make your case work.

Hope it will still work for other number ....

Regards

Thierry
The administrator has disabled public write access.
The following user(s) said Thank You: cyamin

Error getting NPLEO from cas file 8 years 1 month ago #23910

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello Thierry,

Thank you for looking into the problem. I have noticed the correction you did in the trunk, but then you undid it. I will wait for a solid solution before I give it a try in my current simulations.

Best Regards,
Costas
The administrator has disabled public write access.

Error getting NPLEO from cas file 8 years 1 month ago #23911

  • tfouquet
  • tfouquet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 294
  • Thank you received: 112
Hello Costas

yesterday i found the problem. There was not the word &DYN in the dictionnary, which tells to the reader to adapt dynamically the dimension of arrays read in the steering file

Best regard

Thierry
The administrator has disabled public write access.
The following user(s) said Thank You: cyamin
  • Page:
  • 1
  • 2
Moderators: tfouquet

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