umvarma / pynastran

Automatically exported from code.google.com/p/pynastran
1 stars 0 forks source link

INCLUDE file bug #159

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When you have a series of files such as:

---a.bdf---
CEND
BEGIN BULK
GRID,1
INCLUDE 'b.bdf'

---b.bdf---
GRID,2
INCLUDE 'c.bdf'

---c.bdf---
GRID,3

Only, GRID 1 and 2 are found.  What happens is GRID 1 is parsed, then the line 
INCLUDE 'b.bdf' is found.  The file 'a.bdf' is then closed and the line is 
returned.  File 'b.bdf' is opened, and GRID 2 is read.  INCLUDE 'c.bdf' is 
read, file 'b.bdf' goes to close, but no more files are open (self._iFile=-1), 
so the program terminates.

So for the user, don't put INCLUDE files at the end of the file for now or 
don't use doubly INCLUDE files.

Original issue reported on code.google.com by mesheb82 on 4 Aug 2014 at 4:52

GoogleCodeExporter commented 9 years ago
moved to github

Original comment by mesheb82 on 14 Mar 2015 at 8:13

GoogleCodeExporter commented 9 years ago

Original comment by mesheb82 on 8 Apr 2015 at 6:34