CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

compile+discards qualifiers

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 23, 2010, 13:21
Default compile+discards qualifiers
  #1
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,079
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
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,
mvCoeff_=mvCoeff;

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

Old   August 24, 2012, 16:24
Default
  #2
New Member
 
sebastien vilfayeau
Join Date: Feb 2012
Posts: 8
Rep Power: 4
sebastien_F1 is on a distinguished road
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.
sebastien_F1 is offline   Reply With Quote

Reply

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 30 March 21, 2014 07:34
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 18:22
Error compile file udf czfluent Fluent UDF and Scheme Programming 24 September 26, 2009 14: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 22:18


All times are GMT -4. The time now is 02:16.