BUG: Nastran reading of free format truncates last field (fixes #3189)
- the old logic relied on the presence/absence of a comma to decide whether to parse as fixed or free format. This logic is faulty when handling the final (trailing) entry and will generally lead to the last field being truncated when read in. Now the caller decides on fixed vs free. FIX: inconsistent Nastran surface output format - use FREE format by default. Previously had an odd mix of SHORT format when created without options and LONG format (as default) when created with format options.
Showing
- src/fileFormats/nastran/NASCore.C 18 additions, 9 deletionssrc/fileFormats/nastran/NASCore.C
- src/fileFormats/nastran/NASCore.H 15 additions, 14 deletionssrc/fileFormats/nastran/NASCore.H
- src/meshTools/edgeMesh/edgeFormats/nastran/NASedgeFormat.C 58 additions, 24 deletionssrc/meshTools/edgeMesh/edgeFormats/nastran/NASedgeFormat.C
- src/surfMesh/surfaceFormats/nas/NASsurfaceFormat.C 54 additions, 19 deletionssrc/surfMesh/surfaceFormats/nas/NASsurfaceFormat.C
- src/surfMesh/writers/nastran/nastranSurfaceWriter.C 6 additions, 14 deletionssrc/surfMesh/writers/nastran/nastranSurfaceWriter.C
- src/surfMesh/writers/nastran/nastranSurfaceWriter.H 12 additions, 13 deletionssrc/surfMesh/writers/nastran/nastranSurfaceWriter.H
Please register or sign in to comment