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

compile+discards qualifiers

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 23, 2010, 13:21
Default compile+discards qualifiers
  #1
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
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,
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: 14
Rep Power: 14
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


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 Off
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 40 March 18, 2018 07:05
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 01:09.