← Back to team overview

yade-users team mailing list archive

Re: [Question #689755]: Modeling hydarulic fracturing in rock medium

 

Question #689755 on Yade changed:
https://answers.launchpad.net/yade/+question/689755

    Status: Solved => Open

mrhappy is still having a problem:
Hey Robert,

I tried to compile Yade by downloading the source file from [1]
yade-2020.01a.tar.bz2. I uncommented the line [2]. During the compiling
(command: make), I got the following error:

[ 81%] Building CXX object CMakeFiles/yade.dir/pkg/pfv/DFNFlow.cpp.o
[ 81%] Building CXX object CMakeFiles/yade.dir/pkg/pfv/DummyFlowEngine.cpp.o
[ 82%] Building CXX object CMakeFiles/yade.dir/pkg/pfv/FlowEngine.cpp.o
[ 82%] Building CXX object CMakeFiles/yade.dir/pkg/pfv/PeriodicFlowEngine.cpp.o
/home/nabid/Documents/myYade/trunk/pkg/pfv/DFNFlow.cpp: In member function ‘void yade::DFNBoundingSphere::saveVtk(const char*, bool)’:
/home/nabid/Documents/myYade/trunk/pkg/pfv/DFNFlow.cpp:59:40: error: unused parameter ‘withBoundaries’ [-Werror=unused-parameter]
  void saveVtk(const char* folder, bool withBoundaries) //FIXME: withBoundaries does nothing in DFNFlow right now. Needed for consistent templating.
                                        ^~~~~~~~~~~~~~
/home/nabid/Documents/myYade/trunk/pkg/pfv/DFNFlow.cpp: In member function ‘void yade::DFNFlowEngine::interpolateCrack(yade::TemplateFlowEngine_DFNFlowEngineT<yade::DFNCellInfo, yade::DFNVertexInfo, yade::CGT::_Tesselation<yade::CGT::TriangulationTypes<yade::DFNVertexInfo, yade::DFNCellInfo> >, yade::DFNBoundingSphere>::Tesselation&, yade::TemplateFlowEngine_DFNFlowEngineT<yade::DFNCellInfo, yade::DFNVertexInfo, yade::CGT::_Tesselation<yade::CGT::TriangulationTypes<yade::DFNVertexInfo, yade::DFNCellInfo> >, yade::DFNBoundingSphere>::Tesselation&)’:
/home/nabid/Documents/myYade/trunk/pkg/pfv/DFNFlow.cpp:208:22: error: variable ‘cellEnd’ set but not used [-Werror=unused-but-set-variable]
  FiniteCellsIterator cellEnd = newTri.finite_cells_end();
                      ^~~~~~~
[ 83%] Building CXX object CMakeFiles/yade.dir/pkg/pfv/SoluteFlowEngine.cpp.o
[ 83%] Building CXX object CMakeFiles/yade.dir/pkg/pfv/Thermal.cpp.o
[ 84%] Building CXX object CMakeFiles/yade.dir/pkg/pfv/TwoPhaseFlowEngine.cpp.o
[ 84%] Building CXX object CMakeFiles/yade.dir/pkg/pfv/UnsaturatedEngine.cpp.o
[ 85%] Building CXX object CMakeFiles/yade.dir/lib/base/Math.cpp.o
[ 85%] Building CXX object CMakeFiles/yade.dir/lib/factory/ClassFactory.cpp.o
[ 86%] Building CXX object CMakeFiles/yade.dir/lib/factory/DynLibManager.cpp.o
[ 86%] Building CXX object CMakeFiles/yade.dir/lib/base/Logging.cpp.o
[ 87%] Building CXX object CMakeFiles/yade.dir/lib/serialization/Serializable.cpp.o
[ 87%] Building CXX object CMakeFiles/yade.dir/lib/pyutil/gil.cpp.o
[ 88%] Building CXX object CMakeFiles/yade.dir/core/main/pyboot.cpp.o
[ 88%] Building CXX object CMakeFiles/yade.dir/lib/opengl/GLUtils.cpp.o
[ 89%] Building CXX object CMakeFiles/yade.dir/lib/triangulation/KinematicLocalisationAnalyser.cpp.o
cc1plus: all warnings being treated as errors
CMakeFiles/yade.dir/build.make:3446: recipe for target 'CMakeFiles/yade.dir/pkg/pfv/DFNFlow.cpp.o' failed
make[2]: *** [CMakeFiles/yade.dir/pkg/pfv/DFNFlow.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:137: recipe for target 'CMakeFiles/yade.dir/all' failed
make[1]: *** [CMakeFiles/yade.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Any advice? By the way, Yade compiles perfectly and works well when I comment the line [2]. 
Thank you for your help.

[1] https://launchpad.net/yade/+download
[2] https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/pfv/DFNFlow.cpp#L17

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.