Compiling cfMesh with OpenFOAM 4.x
Quote:
Code:
git clone git://git.code.sf.net/p/cfmesh/code cfmesh Here's the compile time error. Code:
icpc -std=c++11 -fp-trap=common -fp-model precise -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -diag-disable 327,654,1125,2289,2304,11062,11074,11076 -O3 -DNoRepository -I../../meshLibrary/lnInclude -I/home/dkokron/OpenFOAM/OpenFOAM-4.x/src/triSurface/lnInclude -I/home/dkokron/OpenFOAM/OpenFOAM-4.x/src/meshTools/lnInclude -I/home/dkokron/OpenFOAM/OpenFOAM-4.x/src/edgeMesh/lnInclude -IlnInclude -I. -I/home/dkokron/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude -I/home/dkokron/OpenFOAM/OpenFOAM-4.x/src/OSspecific/POSIX/lnInclude -fPIC -c FLMAToSurface.C -o Make/linux64IccDPInt32Opt/FLMAToSurface.o |
Quick answer: You need to checkout the "development" branch. Complete list of commands:
Code:
git clone git://git.code.sf.net/p/cfmesh/code cfmesh |
I confirmed that the 'development' branch does indeed build and run under 4.x. I also confirmed essentially zero-diff output for one of my geometries compared with cfMesh-1.1.1 built against OF-3.0+.
Thanks again Bruno. |
Just a quick note: They have released cfMesh 1.2.1 recently: https://twitter.com/CFieldsHR/status/785774036206755840
Quote:
|
Hello I've successfully compiled cfMesh-v1.1.2 with OpenFOAM-4.1 and it works very well.
However when I try to mesh something with a smaller cell size I get this error Code:
Create time I thought I had too many cells so I tried to compile cfMesh against OpenFOAM-4.1 with WM_LABEL_SIZE=64 Unfortunately I get this compilation error Code:
lnInclude/DynListI.H: In instantiation of ‘Foam::DynList<T, staticSize>::DynList(const ListType&) [with ListType = int; T = long int; long int staticSize = 16l]’: Thank you Giampaolo |
OpenFOAM-dev not compiling due to metaDict_
1 Attachment(s)
*Edit* I have gone further along in the compilation. The original problem was metaDict_
Here is the list of steps I encountered and what I did to combat them: 1. metaDict_ not declared. Added "IOdictionary.H to polyMeshGen.H 2. The annoying tautology warning can be removed by changing ms.type_ != ms.type_ to ms.type != type_ in meshSubsetI.H 3. edgeMesh has been incorporated into meshTools in OF5 and dev. I did an in-place replacement of -ledgeMesh with nothing 4. Pstream::blocking and Pstream::scheduled have been replaced by Pstream::commsTypes::blocking and Pstream::commsTypes::scheduled - I replaced these 5. My foam compilation was done with WM_LABEL_SIZE=64. This seems to kill the compilation as it can't recognise a list in these circumstances (see Giampalo's error) 6. Set the WM_LABEL_SIZE to 32, meshLibrary compiles, but errors occur straight away once we try and build the executables. I saw the approach proposed by laurent in thread 160757 but that has since changed. I am thinking of going back to LABEL_SIZE of 64 and trying to sort out the problem there. I now have heaps more problems after this. First errors start at first program in the rank: cartesian2DMesh. See error message attached. Any help would be greatly appreciated. |
Compilation of cfMesh works
Quote:
|
Openfoam v1706 will compile with:
Quote:
|
Quote:
Quote:
Quote:
|
I was able to partially compile the library, by fixing point 1 adding to:
../meshLibrary/lnInclude/polyMeshGen.H Code:
#include "polyMeshGenCells.H" Code:
find ./ -exec sed -i -e 's/Pstream::blocking/Pstream::commsTypes::blocking/' {} \; Code:
find ./ -exec sed -i -e 's/Pstream::scheduled/Pstream::commsTypes::scheduled/' {} \; Code:
utilities/smoothers/geometry/meshOptimizer/tetMeshOptimisation/tetMeshOptimisation.C:505:67: error: no matching function for call to ‘eigenVector(Foam::symmTensor&, const double&)’ Code:
utilities/smoothers/geometry/meshOptimizer/tetMeshOptimisation/tetMeshOptimisation.C:498:66: error: no matching function for call to ‘eigenVector(Foam::symmTensor&, const double&)’ Thanks a lot I'm compiling on Linux Mint 18.2 with openfoam-dev (last update) |
Hi,
please can somebody helps me with this issue? Code:
utilities/smoothers/geometry/meshOptimizer/tetMeshOptimisation/tetMeshOptimisation.C:507:67: error: no matching function for call to ‘eigenVector(Foam::symmTensor&, const double&)’ Regards |
I downloaded the latest version in git today and now the source compiles without any modifications from the source.
|
Are you using ubuntu and opebfoam-dev?
|
1 Attachment(s)
Hi,
I can't understand, but I'm not able to run the compilation on LinuxMint 18.2. I used Code:
git clone git://git.code.sf.net/p/cfmesh/code cfmesh-code After fixing point 1,3,4, and ./Allwmake, I got this Code:
wmakeLnInclude: linking include files to ./lnInclude Code:
utilities/smoothers/geometry/meshOptimizer/tetMeshOptimisation/tetMeshOptimisation.C: In member function ‘void Foam::tetMeshOptimisation::optimiseBoundaryVolumeOptimizer(Foam::label, bool)’: |
You need to get the development branch, see post #2
Code:
git checkout development |
Thank you very much, As the post from Bruno is 1-year old, I thought it was "old" Regards. |
Quote:
also getting this issue. Did you manage to solve it? |
All times are GMT -4. The time now is 02:37. |