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

Porting foundation->ESI: "‘area’ is not a member of ‘Foam::face’"

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 28, 2021, 04:28
Default Porting foundation->ESI: "‘area’ is not a member of ‘Foam::face’"
  #1
Member
 
Mike Worth
Join Date: Jun 2019
Posts: 45
Rep Power: 6
MikeWorth is on a distinguished road
I'm trying to port some code from the OpenFOAM-Dev github repository to work with my ESI installation.

Upon running wmake it's thrown two errors - one was easily fixed by substituting "vSmall" for "VSMALL", which I did by comparing equivalent files and noticing that the only difference was the capitalisation. Unfortunately the other error seems to be less easily fixed. It's complaining about the following:
Code:
MPLIC/MPLICfaceI.H: In member function ‘const vector Foam::MPLICface::Sf() const’:
MPLIC/MPLICfaceI.H:117:18: error: ‘area’ is not a member of ‘Foam::face’
     return face::area(subPoints_);
                  ^~~~
Have had a rummage in the source, it looks to me that what it needs is defined in src/OpenFOAM/meshes/meshShapes/face/face.C. Comparing the two forks versions of this file it looks like ESI have a "areaNormal" in an equivalent place in the file to foundations "area"; I don't understand the full workings, but comparing to other surrounding functions it initially looks equivalent.

Unfortunately my optimistic 'swap them over' didn't work - it produces this error:
Code:
MPLIC/MPLICfaceI.H:117:39: error: cannot call member function ‘Foam::vector Foam::face::areaNormal(const Foam::UList<Foam::Vector<double> >&) const’ without object
     return face::areaNormal(subPoints_);
                                       ^
My C++ isn't great, but it seems that these are actually not equivalent functions. Does anyone know if this is a simple case of substituting one thing for another, or do the incompatibilities between forks actually run much deeper here?

Thanks,
Mike
MikeWorth is offline   Reply With Quote

 


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
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 11:39
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 06:59
OpenFoam 14 installation problem gfcoppola OpenFOAM Installation 20 November 2, 2007 13:38
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 11:10.