From 8af83cdf5c118eb5c0d20def1be7080ae5370549 Mon Sep 17 00:00:00 2001 From: akva Date: Fri, 13 Jan 2012 13:42:31 +0000 Subject: [PATCH] fixed: don't try to project secondary solution if integrand has none this will lead to a crash in GoTools git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1395 e10b68d5-8a6e-419e-a041-bce267b0401d --- src/SIM/SIMbase.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SIM/SIMbase.C b/src/SIM/SIMbase.C index 5c51b6b1..4b572f77 100644 --- a/src/SIM/SIMbase.C +++ b/src/SIM/SIMbase.C @@ -1600,7 +1600,8 @@ bool SIMbase::writeGlvS (const Vector& psol, const int* nViz, else sID[k++].push_back(nBlock); - if (discretization == ASM::Spline || discretization == ASM::SplineC1) + if ((discretization == ASM::Spline || discretization == ASM::SplineC1) && + myProblem->getNoFields(2) > 0) { // 3. Projection of secondary solution variables (tensorial splines only)