From cd69cf5ca6770ab0a5d09af3a1f921fc3a7b417a Mon Sep 17 00:00:00 2001 From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be> Date: Fri, 14 Jan 2011 08:25:27 +0000 Subject: [PATCH] dg : do not expose dgResidualVolume and dgResidualInterface, only use dgResidual (allows optimization) --- Solver/function.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Solver/function.cpp b/Solver/function.cpp index 0fd8d52fa3..1d288617f2 100644 --- a/Solver/function.cpp +++ b/Solver/function.cpp @@ -345,6 +345,8 @@ dataCacheMap::~dataCacheMap() void dataCacheMap::setNbEvaluationPoints(int nbEvaluationPoints) { + if (_nbEvaluationPoints == nbEvaluationPoints) + return; _nbEvaluationPoints = nbEvaluationPoints; for(std::set<dataCacheDouble*>::iterator it = _allDataCaches.begin(); it != _allDataCaches.end(); it++){ -- GitLab