No matching function for call to "FOAM::GeometricField<double, FOAM::fvPatchField, >"
Dear Foamers,
This issues happen while building a new eddy viscosity model which is based on Smagorinsky model. Error messages Code:
../turbulenceModels/lnInclude/QR.C:91:10: error: no matching function for call to ‘Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField()’ The modified codes are Code:
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // Any pointer would be great appreciated! Teresa |
Quote:
That's the problem when you stare at code too long. You have an ';' in your creation of tmp<volScalarField>. The flood of compiler errors doesn't really help with finding it. |
[QUOTE=Teresa Sun;818460]
Code:
return tmp<volScalarField> For that type of code it can be a bit clearer if you use the forwarding factory method instead. Eg, Code:
return tmp<volScalarField>::New |
Hi Mark,
thanks for your correction and will change the layout later. The mistake was way too straightforward. But after correcting the issue is as same as before. Is that because something went wrong about the conversion between dimensioedScalar and volScalarField? The is issue Quote:
Quote:
|
Quote:
Not really the problem. At this point you really need to check how the fields are defined, which arguments are expected etc. Either in the header or here: https://www.openfoam.com/documentati...d.html#details See which constructors are available and pick the one that you think you are using. In your current case you will notice that you are trying something, but not really sure what. |
All times are GMT -4. The time now is 12:03. |