From d7a5a82bc5fe0e7b33aa1a59929be22764570f84 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 16 Nov 2017 19:33:57 +0100 Subject: [PATCH] Warning when there are no unknowns in the parametrization process: fixes #319 --- Geo/discreteDiskFace.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Geo/discreteDiskFace.cpp b/Geo/discreteDiskFace.cpp index eff590d77e..758b8ccb18 100644 --- a/Geo/discreteDiskFace.cpp +++ b/Geo/discreteDiskFace.cpp @@ -377,6 +377,13 @@ bool discreteDiskFace::parametrize() const double t2 = Cpu(); Msg::Debug("Assembly done in %8.3f seconds", t2 - t1); + + + if(!myAssemblerU.sizeOfR() || !myAssemblerV.sizeOfR()){ + Msg::Warning("No unknowns in systems to compute parametrization - skipping"); + return false; + } + lsys_u->systemSolve(); lsys_v->systemSolve(); Msg::Debug("Systems solved"); -- GitLab