umvarma / pynastran

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

Writing long format MPCs outputs short format #163

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?

Writing MPCs in long field format using BDF.write_bdf writes the cards in short 
field format instead. A patch to correct the problem is attached 
(mpc_long_format.patch).

Example is attached in mpc_test.zip. 

1. extract the files
2. run mpc_test.py
3. the file out.bdf should contain the same card formatting as in.bdf. instead, 
the cards in out.bdf are in short field format.

What version of the product are you using? On what operating system?  Note:

r2266 on Windows 7.

Please provide any additional information below.

Patch is attached

Original issue reported on code.google.com by jeffrey....@gmail.com on 1 Oct 2014 at 9:11

Attachments:

GoogleCodeExporter commented 9 years ago
MPCs now support large field

Some notes:

1. MPCADDs are still written in small field format as they do not contain floats

2. I'm a little concerned about the double precision value for MPC cards.  
Large field, double precision values (e.g. 1.500D+03) are interpreted 
differently than 1500.0 or 1.500E+03.  I know GRID, coords, loads, and DMIx 
cards support double precision and that materials and properties, and various 
control cards (e.g. aero cards, dynamic cards) do not.  I assume MPC cards do, 
but I haven't tested it yet.

3. test_bdf now supports -l (large) and -d (double) for more efficiently 
testing BDFs.

When tests have been written this will be closed.

Original comment by mesheb82 on 2 Oct 2014 at 3:53

GoogleCodeExporter commented 9 years ago
Please also see issue 164 which was found after switching to the print_float_16 
method.

Original comment by jeffrey....@gmail.com on 3 Oct 2014 at 10:31

GoogleCodeExporter commented 9 years ago
closed due to inactivity.

Original comment by mesheb82 on 4 Nov 2014 at 7:28