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

[cfMesh] OpenFOAM 1712 cfmesh compile error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2018, 20:50
Default OpenFOAM 1712 cfmesh compile error
  #1
New Member
 
Xuefeng Zou
Join Date: Mar 2018
Posts: 2
Rep Power: 0
Thomas Zou is on a distinguished road
I try to compile OpenFOAM 1712 from source code on linux mint 18.All components are successfully finished except cfmesh.Cfmesh is a new module .Error message will like these below:
2018-02-28 21:03:05 +0800
Starting compile of cfMesh with OpenFOAM-v1712
Gcc system compiler
linux64GccDPInt64Opt, with SYSTEMOPENMPI openmpi-system

wmake libso meshLibrary
make[1]: Entering directory '/home/zou/OpenFOAM/OpenFOAM-v1712/modules/cfmesh/meshLibrary'
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -I/home/zou/OpenFOAM/OpenFOAM-v1712/src/fileFormats/lnInclude -I/home/zou/OpenFOAM/OpenFOAM-v1712/src/surfMesh/lnInclude -I/home/zou/OpenFOAM/OpenFOAM-v1712/src/meshTools/lnInclude -IlnInclude -I. -I/home/zou/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/zou/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude -fPIC -c utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.C -o /home/zou/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt64Opt/modules/cfmesh/meshLibrary/utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.o
In file included from lnInclude/DynList.H:254:0,
from lnInclude/VRWGraph.H:41,
from lnInclude/meshSubset.H:40,
from lnInclude/polyMeshGenPoints.H:41,
from lnInclude/polyMeshGenFaces.H:40,
from lnInclude/polyMeshGenCells.H:40,
from lnInclude/polyMeshGen.H:40,
from utilities/meshes/polyMeshGenModifier/polyMeshGenModifier.H:40,
from utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.C:26:
lnInclude/DynListI.H: In instantiation of ‘Foam::Module:ynList<T, staticSize>:ynList(const ListType&) [with ListType = int; T = long int; long int staticSize = 16l]’:
lnInclude/helperFunctionsTopologyManipulationI.H:600:34: required from here
lnInclude/DynListI.H:218:12: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’
setSize(l.size());
^
lnInclude/DynListI.H:221:32: error: subscripted value is neither array nor pointer
this->operator[](i) = l[i];
^
lnInclude/DynListI.H: In instantiation of ‘Foam::Module:ynList<T, staticSize>:ynList(const ListType&) [with ListType = int; T = Foam::Vector2D<double>; long int staticSize = 6l]’:
lnInclude/helperFunctionsGeometryQueriesI.H:1144:37: required from here
lnInclude/DynListI.H:218:12: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’
setSize(l.size());
^
lnInclude/DynListI.H:221:32: error: subscripted value is neither array nor pointer
this->operator[](i) = l[i];
^
/home/zou/OpenFOAM/OpenFOAM-v1712/wmake/rules/General/transform:28: recipe for target '/home/zou/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt64Opt/modules/cfmesh/meshLibrary/utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.o' failed
make[1]: *** [/home/zou/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt64Opt/modules/cfmesh/meshLibrary/utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.o] Error 1
make[1]: Leaving directory '/home/zou/OpenFOAM/OpenFOAM-v1712/modules/cfmesh/meshLibrary'
/home/zou/OpenFOAM/OpenFOAM-v1712/wmake/makefiles/apps:39: recipe for target 'cfmesh' failed
make: *** [cfmesh] Error 2
Thomas Zou is offline   Reply With Quote

Old   March 2, 2018, 08:27
Default
  #2
Member
 
Anurag
Join Date: Aug 2014
Location: Germany
Posts: 57
Rep Power: 11
anuragm is on a distinguished road
What branch of cfMesh are you using? AFAIK, the development branch should compile as reported in the following thread

Compiling cfMesh with OpenFOAM 4.x
anuragm is offline   Reply With Quote

Old   March 4, 2018, 04:43
Default
  #3
New Member
 
Xuefeng Zou
Join Date: Mar 2018
Posts: 2
Rep Power: 0
Thomas Zou is on a distinguished road
I dont now ,newest openfoam 1712 has included cfmesh , may just use built-in version.
Thomas Zou is offline   Reply With Quote

Old   April 17, 2018, 00:56
Default
  #4
Member
 
YS
Join Date: Jan 2010
Posts: 93
Rep Power: 16
Ya_Squall2010 is on a distinguished road
Has anyone solved this issue? I got similar compilation error on building cfmesh in OF-v1712.

========================================
2018-04-17 10:06:21 +0800
Starting compile of cfMesh with OpenFOAM-v1712
Gcc system compiler
linux64GccDPInt64Opt, with OPENMPI openmpi-1.10.4

wmake libso meshLibrary
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -I/scratch_fdns/lux/OpenFOAM/OpenFOAM-v1712/src/fileFormats/lnInclude -I/scratch_fdns/lux/OpenFOAM/OpenFOAM-v1712/src/surfMesh/lnInclude -I/scratch_fdns/lux/OpenFOAM/OpenFOAM-v1712/src/meshTools/lnInclude -IlnInclude -I. -I/scratch_fdns/lux/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/scratch_fdns/lux/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude -fPIC -c utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.C -o /scratch_fdns/lux/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt64Opt/modules/cfmesh/meshLibrary/utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.o
In file included from lnInclude/DynList.H:254:0,
from lnInclude/VRWGraph.H:41,
from lnInclude/meshSubset.H:40,
from lnInclude/polyMeshGenPoints.H:41,
from lnInclude/polyMeshGenFaces.H:40,
from lnInclude/polyMeshGenCells.H:40,
from lnInclude/polyMeshGen.H:40,
from utilities/meshes/polyMeshGenModifier/polyMeshGenModifier.H:40,
from utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.C:26:
lnInclude/DynListI.H: In instantiation of ‘Foam::Module:ynList<T, staticSize>:ynList(const ListType&) [with ListType = int; T = long int; long int staticSize = 16l]’:
lnInclude/helperFunctionsTopologyManipulationI.H:600:34: required from here
lnInclude/DynListI.H:218:21: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’
setSize(l.size());
^
lnInclude/DynListI.H:221:32: error: subscripted value is neither array nor pointer
this->operator[](i) = l[i];
^
lnInclude/DynListI.H: In instantiation of ‘Foam::Module:ynList<T, staticSize>:ynList(const ListType&) [with ListType = int; T = Foam::Vector2D<double>; long int staticSize = 6l]’:
lnInclude/helperFunctionsGeometryQueriesI.H:1144:37: required from here
lnInclude/DynListI.H:218:21: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’
setSize(l.size());
^
lnInclude/DynListI.H:221:32: error: subscripted value is neither array nor pointer
this->operator[](i) = l[i];
^
make: *** [/scratch_fdns/lux/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt64Opt/modules/cfmesh/meshLibrary/utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.o] Error 1
Ya_Squall2010 is offline   Reply With Quote

Old   May 18, 2018, 02:36
Default
  #5
Member
 
Join Date: Jan 2014
Posts: 32
Rep Power: 12
spaceprop is on a distinguished road
I get the same error.
spaceprop is offline   Reply With Quote

Old   May 18, 2018, 03:38
Default
  #6
Member
 
Join Date: Jan 2014
Posts: 32
Rep Power: 12
spaceprop is on a distinguished road
Just to follow up. OpenFOAM appears to work despite the error. I'm guessing anything that requires cfmesh will not work, though.

This thread: Compiling cfMesh with OpenFOAM 4.x shows people grabbing cfmesh from v1606 and compiling it for use with OpenFOAM v4. I haven't tried it because I don't really understand how that works, but that might work.
spaceprop is offline   Reply With Quote

Old   May 18, 2018, 11:51
Default
  #7
Member
 
Join Date: Jan 2014
Posts: 32
Rep Power: 12
spaceprop is on a distinguished road
Oh. Has anyone filed a bug report for this yet?

edit: I just filed one

Last edited by spaceprop; May 21, 2018 at 05:17.
spaceprop is offline   Reply With Quote

Old   May 28, 2018, 03:19
Default
  #8
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by spaceprop View Post
Oh. Has anyone filed a bug report for this yet?

edit: I just filed one
Thanks for filing the bug-report (problems note here in the forum tend to get easily missed).
I think that the problem noted is related to 64-bit label sizes and should be addressed by this commit (5-JAN-2018):

https://develop.openfoam.com/Communi...367fd9565ad8ae
olesen is offline   Reply With Quote

Old   May 29, 2018, 06:39
Default
  #9
Member
 
Join Date: Jan 2014
Posts: 32
Rep Power: 12
spaceprop is on a distinguished road
I can confirm this fixed my problem.

Before building openfoam:
1. Delete the cfmesh folder in your download.
2. Clone the whole master branch of cfmesh to "cfmesh" in the same location that you just deleted the old cfmesh from.
3. Build openfoam normally.

I think you can probably compile it after openfoam is built using the instructions in the cfmesh readme.
spaceprop is offline   Reply With Quote

Reply

Tags
intallation;openfoam


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
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x Saxwax OpenFOAM Installation 25 November 29, 2013 05:34
Errors in UDF shashank312 Fluent UDF and Scheme Programming 6 May 30, 2013 20:30
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38


All times are GMT -4. The time now is 17:19.