View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000326||OpenFOAM||[All Projects] Bug||public||2011-10-27 00:20||2011-10-31 09:23|
|Fixed in Version|
|Summary||0000326: Printing reactions causes fatal error|
|Description||Printing a Reaction (to an Ostream) outside of the chemistry reader that constructed it causes a fatal error because the speciesTable object gets deleted with the chemistry reader (in reactingMixture constructor).|
|Steps To Reproduce||Download and compile attached example application (chemFoamEx1).|
Run chemFoam tutorial (e.g. h2) with chemFoamEx1.
|Additional Information||Proposed fix:|
Make speciesTable_ member of chemistry readers static. See attached chemkinReader source that works for me. foamChemistryReader should be updated as well.
|Tags||No tags attached.|
rxnPrintBug.tgz (8,037 bytes)
||If the speciesTable_ member is made static it will not be possible to instantiate more than one chemistry reader as the speciesTable_ would effectively be shared between them. We need a solution which avoids this restriction.|
Thanks for the report - output behaviour has been corrected by commit 1ff9f361.
Also see commits 47bd9ba9 and 23470a59 which relate to updates for the chemkinToFoam utility and reaction I/O.
||Apologies if I'm doing something silly, but I'm not seeing any of the commits mentioned. Did they not get pushed to github or am I missing something?|
|indeed - apologies - all should now be up to date|
|2011-10-27 00:20||russelldub||New Issue|
|2011-10-27 00:20||russelldub||File Added: rxnPrintBug.tgz|
|2011-10-27 09:29||henry||Note Added: 0000756|
||Note Added: 0000763|
||Status||new => resolved|
||Fixed in Version||=> 2.0.x|
||Resolution||open => fixed|
||Assigned To||=> user2|
|2011-10-28 23:03||russelldub||Note Added: 0000772|
|2011-10-28 23:03||russelldub||Status||resolved => feedback|
|2011-10-28 23:03||russelldub||Resolution||fixed => reopened|
||Note Added: 0000778|
||Status||feedback => resolved|
||Resolution||reopened => fixed|