View Issue Details

IDProjectCategoryView StatusLast Update
0002874OpenFOAMBugpublic2018-03-12 22:24
Reportermonto Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformlinux 64OSDebianOS Version9
Product Versiondev 
Fixed 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.

Activities

henry

2018-03-12 22:24

manager   ~0009416

Resolved by commit 85c1c8b94f8ff7620683bc60e5b7db025f901582

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