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
This commit is contained in:
akva 2012-01-13 13:42:31 +00:00 committed by Knut Morten Okstad
parent 618e7bc929
commit 8af83cdf5c

View File

@ -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)