diff --git a/source/DemCoupling/CreateDemObjectsCoProcessor.cpp b/source/DemCoupling/CreateDemObjectsCoProcessor.cpp index 1d695f605cf2116d74f1d038b76ec971145cc20b..2aa86631cd9746f32d86639c4e9f9c9d008ffd9d 100644 --- a/source/DemCoupling/CreateDemObjectsCoProcessor.cpp +++ b/source/DemCoupling/CreateDemObjectsCoProcessor.cpp @@ -92,7 +92,7 @@ void CreateDemObjectsCoProcessor::createGeoObjects() for (int i = 0; i < size; i++) { SPtr<GbSphere3D> sphere = std::dynamic_pointer_cast<GbSphere3D>(geoObjectPrototypeVector[i]); - if (demCoProcessor->isSpheresIntersection(sphere->getX1Centroid(), sphere->getX2Centroid(), sphere->getX3Centroid(), sphere->getRadius()*2.0*(1.0-toleranz))) + if (demCoProcessor->isSpheresIntersection(sphere->getX1Centroid(), sphere->getX2Centroid(), sphere->getX3Centroid(), sphere->getRadius()*2.0*(1.0-tolerance))) { continue; } diff --git a/source/DemCoupling/CreateDemObjectsCoProcessor.h b/source/DemCoupling/CreateDemObjectsCoProcessor.h index 6d3a1dc3ea0b511b4e02be5d34401386a2d1a6a7..0d4961568292b726a8a944ccdb90cbd33c641d33 100644 --- a/source/DemCoupling/CreateDemObjectsCoProcessor.h +++ b/source/DemCoupling/CreateDemObjectsCoProcessor.h @@ -32,6 +32,8 @@ public: void addGeoObject(SPtr<GbObject3D> geoObjectPrototype, Vector3D initalVelocity); void clearGeoObjects(); void createGeoObjects(); + double getToleranz() const { return tolerance; } + void setToleranz(double val) { tolerance = val; } protected: private: SPtr<Communicator> comm; @@ -42,7 +44,7 @@ private: SPtr<BCAdapter> velocityBcParticleAdapter; SPtr<Reconstructor> extrapolationReconstructor; int demCounter; - double toleranz; + double tolerance; #ifdef TIMING UbTimer timer; #endif