svalinn / r2s-act

Rigorous 2 Step Activation Workflow
4 stars 7 forks source link

Fix 'dagmc' detection in scripts/r2s/mcnp_n2p.py #56

Closed erelson closed 11 years ago

erelson commented 11 years ago

The mcnp_n2p.py script is not modifying regular MCNP input (aka 3 block form, rather than 1 block dagmc input files) correctly when called from r2s_step2.py. It works fine if run from the command line. Culprit is probably the internal _is_dagmc() method. This method doesn't have a unit test, which should also be remedied.

erelson commented 11 years ago

Fixed bug. Wasn't stripping whitespace from the second line in MCNP inputs correctly.