2018-06-23 12:54 BST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002874OpenFOAM[All Projects] Bugpublic2018-03-12 22:24
Reportermonto 
Assigned Tohenry 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Platformlinux 64OSDebianOS Version9
Product Versiondev 
Target VersionFixed in Versiondev 
Summary0002874: Wrong initialization order in PengRobinsonGas ctor (inline)
DescriptionIn PengRobinsonGasI.H the first inline ctor uses an initializer list with a different order with respect to the class member declaration:

[PengRobinsonGas.H]
    // Private data

        //- Critical Temperature [K]
        scalar Tc_;

        //- Critical volume [m^3/kmol]
        scalar Vc_;

        //- Critical compression factor [-]
        scalar Zc_;

        //- Critical Pressure [Pa]
        scalar Pc_;

        //- Acentric factor [-]
        scalar omega_;


[PengRobinsonGasI.H]
template<class Specie>
inline Foam::PengRobinsonGas<Specie>::PengRobinsonGas
(
    const word& name,
    const PengRobinsonGas& pg
)
:
    Specie(name, pg),
    Tc_(pg.Tc_),
    Pc_(pg.Pc_),
    Vc_(pg.Vc_),
    Zc_(pg.Zc_),
    omega_(pg.omega_)
{}

TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0009416

henry (manager)

Resolved by commit 85c1c8b94f8ff7620683bc60e5b7db025f901582
+Notes

-Issue History
Date Modified Username Field Change
2018-03-12 10:56 monto New Issue
2018-03-12 22:24 henry Assigned To => henry
2018-03-12 22:24 henry Status new => resolved
2018-03-12 22:24 henry Resolution open => fixed
2018-03-12 22:24 henry Fixed in Version => dev
2018-03-12 22:24 henry Note Added: 0009416
+Issue History