Closed GoogleCodeExporter closed 9 years ago
It is an artificial limitation to prevent infinite looping. I'll bump it a bit
higher. The new version should be out sometime this week. The huhh... message
should be clearer.
Original comment by mesheb82
on 6 Aug 2012 at 4:39
The new artificial limitation will set the maximum number of case control lines
to 10,000. Hopefully that's enough :)
Original comment by mesheb82
on 6 Aug 2012 at 10:58
Thanks for the fix! I have some nitpicks about it, please don't take it
personally :-)
I looked into MSC Nastran 2012 Quick Reference Guide and I can't find any
limitation regarding case control deck maximal length. Where this information
comes from?
Generally, I don't see a reason why is necessary to artificially limit number
of lines in CaseControlDeck. Method _read(self, lines) contains cycle "while i
< len(lines)" and variable "i" is incremented in each iteration in any case.
Because "i" is only incremented, _read() method has to finish in finite time
(in any case, even with invalid input).
IMHO it would be better to completely remove this limitation, because it avoids
surprises in future.
I can send a patch, if you want to not spent time with this amendment.
Original comment by space...@centrum.cz
on 7 Aug 2012 at 8:01
Thanks for your patience!
Original comment by space...@centrum.cz
on 7 Aug 2012 at 8:01
I do my best at not adding artificial restrictions, but it's there because of
the way INCLUDE files are supported. Specifically, what happens when you find
a bunch of blank lines at the end of a file because you're looking for another
line with text on it. It needs to break out of the loop at some point and
admittedly 100 was too low (It can actually have more than 100 lines if you use
INCLUDE files). I figure 10,000 was more than enough for every model that a
user would ever make.
That part of the code isn't the highest priority because it works in all the
cases I've run, but that said, if you'd like to work on a patch, I'd be more
than happy to add it as well as explain the code. I'd suggest reading the
latex developer guide in the dev version to help familiarize yourself with the
approach of that part of the code.
Also, I'm glad you're nitpicking b/c it means people want to use the software
:) Nitpick away!
Original comment by mesheb82
on 7 Aug 2012 at 8:21
Hello,
I tried version r1084 and now it works. I still didn't have time to look into
developer guide, sorry.
Original comment by space...@centrum.cz
on 13 Sep 2012 at 7:39
Original comment by mesheb82
on 23 Oct 2012 at 11:55
Original issue reported on code.google.com by
space...@centrum.cz
on 6 Aug 2012 at 8:56Attachments: