Welcome, Guest
Username: Password: Remember me

TOPIC: Question regarding CONLIM class in parserSELAFIN.py

Question regarding CONLIM class in parserSELAFIN.py 6 years 8 months ago #29063

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

Although it is fairly simple to work with CLI files, I am trying to understand and work with the existing toolkit as much as I can.

In the CONLIM class there is the setNUMLIQ function that takes "closedContours" as an argument. I've been searching for a definition of this argument but I am unable to find one.

Can anyone provide more insight?

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

Question regarding CONLIM class in parserSELAFIN.py 6 years 6 months ago #30157

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

Trying to do some manipulation in CLI files using the CONLIM class I have noticed that when trying to write back the file, the first line is always missing.

Looking into the putContent function I have found that the if statement check (shown below) is to blame:
def putContent(self,fileName):

      # standard part of the CONLIM
      core = []
      for ifr in range(self.NPTFR):
         if self.INDEX[ifr] != 0: <---

Removing this check works for me, but could this break some other functionality? What purpose does this check serve?

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

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