TRC-HPC / LFM_Public

libFastMesh - Optimized Finite Volume Computational Aeroacoustics (CAA) Code
GNU General Public License v3.0
7 stars 0 forks source link

polyMeshReader util does not compile with OpenFOAM v2206 #2

Open noam2720 opened 1 year ago

noam2720 commented 1 year ago

While trying to build polyMeshReaderOF from polyMeshReaderOF dir I encounter the following error: polyMeshReaderOF.cpp:455:11: error: ‘processorPolyPatch’ does not name a type; did you mean ‘pPolyPatch’? const processorPolyPatch pProcPolyPatch = static_cast<const processorPolyPatch>(pPolyPatch); ^~~~~~

It seems that processorPolyPatch class in OF was relocated. I bypassed the issue by manually adding the following: -I$(LIB_SRC)/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processor \ to PolyMeshReaderOF/Make/options, and adding #include "processorPolyPatch.H" to polyMeshReaderOF.cpp.

But, this doesn't seem the way to go.

markw14 commented 1 year ago

@AlonZameret, please take a look