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

TOPIC: error running cas

error running cas 11 years 10 months ago #6965

  • ygrisard
  • ygrisard's Avatar
Hi all,

I posted a question on the telemac2d forum 2 months ago and had some help from Mr Hervouet, but did not find my solution. So I post it now on the installation forum. As pointed in the post, the problem might be resolved with the help of Sébastien Bourban or A Weisgerber.
Could you please have a look at this discussion?
www.opentelemac.org/index.php/kunena/16-...error-in-files-names

Thank you so much,
Regards,
Yohann
The administrator has disabled public write access.

error running cas 11 years 9 months ago #7350

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

I am sorry I have not been able to find the problem or to reproduce your problem.

What I can recommend is for you to modify the processCAS python method of the script runcode.py: please comment (add the symbol '#' in front) the two lines in French and in English that add the DICTIONARY key to your CAS file:

# setKeyValue('DICTIONNAIRE',cas,frgb,repr(path.normpath(frgb)))

and
# setKeyValue('DICTIONARY',cas,frgb,repr(path.normpath(frgb)))

These lines are there for our automated validation system but should not be needed for running TELEMAC on its own.

Hope this helps for the time being.
Sebastien.
The administrator has disabled public write access.

error running cas 11 years 9 months ago #7360

  • ygrisard
  • ygrisard's Avatar
Hello,

Thank you so much for your time. I did try what you recommended and here is the error I got:

LISTING OF TELEMAC-2D

TTTTT EEEEE L EEEEE M M AAAAA CCCCC
T E L E MM MM A A C
T EEE L EEE M M M AAAAA C
T E L E M M A A C
T EEEEE LLLLL EEEEE M M A A CCCCC

2D VERSION 6.2 FORTRAN 90
WITH SEVERAL TRACERS
COUPLED WITH SISYPHE AND TOMAWAC

****************************************
ERROR AT LINE: 1 OF THE DICTIONARY
INVALID INDEX: 123456 MAX = 400
****************************************

I'll keep on trying. I also wanted to point that in the two lines you mentioned on the last post, (frgb) does appear this way:(frgb ). I don't know if it's relevant.

Thanks again,

Yohann
The administrator has disabled public write access.

error running cas 11 years 9 months ago #7361

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
So, let us try something different (I am doing this blind really as I cannot reproduce the problem myself). Following Jean-Michel's advise, we will remove the ' ' (spaces) in front of each sub-line in your CAS file. So:
- reactivate the previous two lines (uncomment)
- modify the rewriteCAS() method in parsers/parserKeywords.py as follows:

was:
lcur = ''
for i in range(len(str(val[0]))/65+1):
lcur = lcur + ' ' + ( str(val[0])+65*' ' )[65*i:65*i+65] + '\n'
new:
lcur = ' '
for i in range(len(str(val[0]))/65+1):
lcur = lcur + ( str(val[0])+65*' ' )[65*i:65*i+65] + '\n'

Let me know. If this is successful, I will change it for the next version to the system.

Hope this helps,
Sebastien.
The administrator has disabled public write access.

error running cas 11 years 9 months ago #7365

  • ygrisard
  • ygrisard's Avatar
Thank you for helping me, I understand the difficulty of searching blind as you do.

So I did change the lines as you said but it did not solve the problem and the message is still the same. Here you will find the CAS file and the SORTIE file. As pointed Jean-Michel in a previous post, the address of the dictionary file is quite strange, especially the double \\. Should I try to investigate in that direction?

Cordially,

Yohann
The administrator has disabled public write access.

error running cas 11 years 9 months ago #7367

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
mmmm ... I knew it could possibly not change anything .. it was worth the try nonetheless.

Here is another trial for you -- we are going to go to the source of the file write-up:
- modify the rewriteCAS method back to what it was (just to make sure)
- modify the putFileContent method of utils/files.py as follows:

SrcF.write((lines[0].rstrip()).replace('\r','').replace('\n\n','\n').replace('\\\\','\\'))
for line in lines[1:]:
pbar.update(ibar); ibar += 1
SrcF.write('\n'+(line.rstrip()).replace('\r','').replace('\n\n','\n').replace('\\\\','\\'))


... because this method is used everywhere in the whole system it could have dramatic consequences, but if it works, it would confirm that the double backward slashes are the problem.

Please let me know.
Sebastien.
The administrator has disabled public write access.

error running cas 11 years 9 months ago #7463

  • ygrisard
  • ygrisard's Avatar
Hello Sebastien,

Sorry, I am a bit late on that.
I did try your recommendation and add the .replace('\\\','\\') command in the putFileContent method, but it get me every time a syntax error with unexpected character.
So I changed it with this command: .replace('\\\n','\\n') and it did start the simulation, but the same error appeared as before and I still have the DICO address on 2 lines with double\\ in my T2DCAS file:

DICTIONARY :
'C:\\opentelemac\\v6p2\\telemac2d\\tel2d_v6p2\\lib\\telemac2dv6p2
.dico'

Thank you for your patience,

Yohann
The administrator has disabled public write access.

error running cas 11 years 9 months ago #7486

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

In your first attempt you seem to have only 3 '\' (which would cause a python error). Try with 4 '\' as mentioned in my previous post i.e.

.replace('\\\\','\\') instead of .replace('\\\','\\')

Please let me know if this can become an official fix. (the .replace('\\\n','\\n') would not work indeed.

Thanks.
Sebastien.
The administrator has disabled public write access.

error running cas 11 years 9 months ago #7489

  • ygrisard
  • ygrisard's Avatar
Hi,

Sorry, my mistake. Indeed, with 4\\\\ it started the simulation, but unfortunately did not resolve my problem. The same message appears:

LOGICAL UNIT 3 ERROR LINE 290
LOGICAL UNIT 3 ERROR LINE 291
LOGICAL UNIT 3 ERROR LINE 291
LOGICAL UNIT 3 ERROR LINE 292
LOGICAL UNIT 3 ERROR LINE 292
LOGICAL UNIT 3 ERROR LINE 293
LOGICAL UNIT 3 ERROR LINE 293
LOGICAL UNIT 3 ERROR LINE 294
LOGICAL UNIT 3 ERROR LINE 294
LOGICAL UNIT 3 ERROR LINE 295
LOGICAL UNIT 3 ERROR LINE 295
LOGICAL UNIT 3 ERROR LINE 296
LOGICAL UNIT 3 ERROR LINE 296
LOGICAL UNIT 3 ERROR LINE 297
LOGICAL UNIT 3 ERROR LINE 297
LOGICAL UNIT 3 ERROR LINE 298
LECDON_TELEMAC2D: ERROR IN FILES NAMES
I= 1 NAME=

PLANTE: PROGRAM STOPPED AFTER AN ERROR

Concerning the address of the DICO in the T2DCAS file, it now appears with a single \ but still on two lines:

DICTIONARY :
'C:\opentelemac\v6p2\telemac2d\tel2d_v6p2\lib\telemac2dv6p2
.dico'

Maybe it should appear in a single line?

Thanks for your patience,

Yohann
The administrator has disabled public write access.

error running cas 11 years 9 months ago #7491

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
OK -- this is partially good news -- it means we can do that with python, and that the scripts does not seem to be the problem with your simulation.

Also, the problem should not be because the key is on 2 lines. DAMOCLES (a TELEMAC module reading your T2DCAS file) has a limited amount of character per line. DAMOCLES assumes that long lists of values or long values are split over several lines.

So the truth is out there

The only thing I can recommend at this stage if for you to start with the simplest CAS file possible and then add the keywords one by one just to see which one fails. Start with this, for instance:

GEOMETRY FILE = geo_confluence.slf
BOUNDARY CONDITIONS FILE = geo_confluence.cli
RESULTS FILE = r2d_confluence.slf

If the error is about missing/mandatory keywords, add them. Otherwise let us know.

To come back to what Jean-Michel said in a previous answer, is it possible that your CAS gets converted (or rather not) between windows and Linux operating system. i.e., you edit in Windows and run Linux and vice-versa ?

Hope this helps,
Sebastien.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

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