fixed: number of components in tensor/stensor analytical solution evaluation

This commit is contained in:
Arne Morten Kvarving
2015-12-09 13:04:30 +01:00
committed by Knut Morten Okstad
parent d1adf474ec
commit 4b2cde1154

View File

@@ -149,14 +149,14 @@ bool IntegrandBase::evalSol (Vector& s, const MxFiniteElement& fe,
bool IntegrandBase::evalSol (Vector& s, const TensorFunc& asol, const Vec3& X) const
{
s = Vector(asol(X).ptr(),nsd);
s = Vector(asol(X).ptr(),nsd*nsd);
return true;
}
bool IntegrandBase::evalSol (Vector& s, const STensorFunc& asol, const Vec3& X) const
{
s = Vector(asol(X).ptr(),nsd);
s = Vector(asol(X).ptr(),nsd*(nsd+1)/2);
return true;
}