CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   compile+discards qualifiers (https://www.cfd-online.com/Forums/openfoam/78515-compile-discards-qualifiers.html)

nimasam July 23, 2010 12:21

compile+discards qualifiers
 
hi friends
im going to implement a code based on existing code in openFoam, but i faced following error

error: passing ‘const Foam::volScalarField’ as ‘this’ argument of ‘void Foam::GeometricField<Type, PatchField, GeoMesh>::operator=(const Foam::GeometricField<Type, PatchField, GeoMesh>&) [with Type = double, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh]’ discards qualifiers

this error is for this pieces of code,
mvCoeff_=mvCoeff;

both of variables are volScalarField,whats wrong ?

sebastien_F1 August 24, 2012 15:24

I got the same error. And I have found my answer on this website.

http://stackoverflow.com/questions/5...rds-qualifiers

hope it'll help someone.


All times are GMT -4. The time now is 07:27.