CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Is private data of fvMatrix declare public on purpose (http://www.cfd-online.com/Forums/openfoam/65995-private-data-fvmatrix-declare-public-purpose.html)

jaswi July 2, 2009 13:03

Is private data of fvMatrix declare public on purpose
 
Dear Developers

Good Evening

Browsing the code for the class fvMatrix I noticed that its private data is listed under the keyword public. Is this for some specific purpose or might be a dormant bug . Also I noticed that it is present only in the 1.5.x version where as the dev version have this particular section private.

Code:

template<class Type>
 class fvMatrix
 :
    public refCount,
    public lduMatrix
 {
 public:
 
    // Private data
 
        // Reference to GeometricField<Type, fvPatchField, volMesh>
        GeometricField<Type, fvPatchField, volMesh>& psi_;
 
        //- Dimension set
        dimensionSet dimensions_;
 
        //- Source term
        Field<Type> source_;
              ...............................
              ...................

Any comments will be helpful to clear the doubt.

Thanks
BR
Jaswi

P.S: I pulled the code from git last week Friday


All times are GMT -4. The time now is 03:37.