View Issue Details

IDProjectCategoryView StatusLast Update
0000326OpenFOAMBugpublic2011-10-31 09:23
Reporterrusselldub Assigned Touser2 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformALL 
Summary0000326: Printing reactions causes fatal error
DescriptionPrinting 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 ReproduceDownload and compile attached example application (chemFoamEx1).
Run chemFoam tutorial (e.g. h2) with chemFoamEx1.
Additional InformationProposed fix:

Make speciesTable_ member of chemistry readers static. See attached chemkinReader source that works for me. foamChemistryReader should be updated as well.
TagsNo tags attached.

Activities

russelldub

2011-10-27 00:20

reporter  

rxnPrintBug.tgz (8,037 bytes)

henry

2011-10-27 09:29

manager   ~0000756

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.

user2

2011-10-27 14:06

  ~0000763

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.

russelldub

2011-10-28 23:03

reporter   ~0000772

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?

user2

2011-10-31 09:23

  ~0000778

indeed - apologies - all should now be up to date

Issue History

Date Modified Username Field Change
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
2011-10-27 14:06 user2 Note Added: 0000763
2011-10-27 14:06 user2 Status new => resolved
2011-10-27 14:06 user2 Fixed in Version => 2.0.x
2011-10-27 14:06 user2 Resolution open => fixed
2011-10-27 14:06 user2 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
2011-10-31 09:23 user2 Note Added: 0000778
2011-10-31 09:23 user2 Status feedback => resolved
2011-10-31 09:23 user2 Resolution reopened => fixed