From 875922ceaeba5f380cf1b95258f695df5f2735cc Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 4 Oct 2010 11:37:10 +0000 Subject: [PATCH] fix compile without post --- Geo/GModelIO_Mesh.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Geo/GModelIO_Mesh.cpp b/Geo/GModelIO_Mesh.cpp index 718d3f1374..e6d1f18a8b 100644 --- a/Geo/GModelIO_Mesh.cpp +++ b/Geo/GModelIO_Mesh.cpp @@ -29,9 +29,12 @@ #include "discreteFace.h" #include "discreteRegion.h" #include "MVertexPositionSet.h" + +#if defined(HAVE_POST) #include "PView.h" #include "PViewData.h" #include "PViewDataList.h" +#endif void GModel::_storePhysicalTagsInEntities(int dim, std::map<int, std::map<int, std::string> > &map) @@ -1339,8 +1342,8 @@ int GModel::readPLY(const std::string &name) _associateEntityWithMeshVertices(); _storeVerticesInEntities(vertexVector); - - //Create PViews here +#if defined(HAVE_POST) + // create PViews here std::vector<GEntity*> _entities; getEntities(_entities); for (int iV=0; iV< nbView; iV++){ @@ -1369,6 +1372,7 @@ int GModel::readPLY(const std::string &name) data->setFileName("property.pos"); data->finalize(); } +#endif fclose(fp); -- GitLab