From 9e7a21ae3a5cd2dd6a8ed15235f61f6b7bf3782d Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 27 Jan 2012 09:35:50 +0000
Subject: [PATCH] don't issue error if no homology requests are made

---
 Geo/GModel.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Geo/GModel.cpp b/Geo/GModel.cpp
index 69d2047fc6..2d5a1ca396 100644
--- a/Geo/GModel.cpp
+++ b/Geo/GModel.cpp
@@ -2749,6 +2749,8 @@ void GModel::addHomologyRequest(const std::string &type, std::vector<int> &domai
 
 void GModel::computeHomology()
 {
+  if(_homologyRequests.empty()) return;
+
 #if defined(HAVE_KBIPACK)
   // find unique domain/subdomain requests
   typedef std::pair<std::vector<int>, std::vector<int> > dpair;
-- 
GitLab