CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

compile+discards qualifiers

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 23, 2010, 12:21
Default compile+discards qualifiers
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,232
Blog Entries: 1
Rep Power: 18
nimasam is on a distinguished road
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>:perator=(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,

both of variables are volScalarField,whats wrong ?
nimasam is offline   Reply With Quote

Old   August 24, 2012, 15:24
New Member
sebastien vilfayeau
Join Date: Feb 2012
Posts: 11
Rep Power: 7
sebastien_F1 is on a distinguished road
I got the same error. And I have found my answer on this website.

hope it'll help someone.
sebastien_F1 is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 39 June 29, 2017 19:04
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 17:22
Error compile file udf czfluent Fluent UDF and Scheme Programming 24 September 26, 2009 13:24
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51
compile the UDF Li Jingping FLUENT 2 April 14, 2003 21:18

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