bugfix for mixed spline fields: ip must be cleared before calling scatterInd for the second basis
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1349 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
parent
d5036ab66d
commit
554594ed2b
@ -118,6 +118,7 @@ bool SplineField2D::gradFE (const FiniteElement& fe, Vector& grad) const
|
||||
}
|
||||
dNdX.multiply(dNdu,Jac); // dNdX = dNdu * Jac
|
||||
|
||||
ip.clear();
|
||||
ASMs2D::scatterInd(basis->numCoefs_u(),basis->numCoefs_v(),
|
||||
basis->order_u(),basis->order_v(),
|
||||
spline.left_idx,ip);
|
||||
|
@ -123,6 +123,7 @@ bool SplineField3D::gradFE (const FiniteElement& fe, Vector& grad) const
|
||||
}
|
||||
dNdX.multiply(dNdu,Jac); // dNdX = dNdu * Jac
|
||||
|
||||
ip.clear();
|
||||
ASMs3D::scatterInd(basis->numCoefs(0),basis->numCoefs(1),basis->numCoefs(2),
|
||||
basis->order(0),basis->order(1),basis->order(2),
|
||||
spline.left_idx,ip);
|
||||
|
@ -125,6 +125,7 @@ bool SplineFields2D::gradFE (const FiniteElement& fe, Matrix& grad) const
|
||||
}
|
||||
dNdX.multiply(dNdu,Jac); // dNdX = dNdu * Jac
|
||||
|
||||
ip.clear();
|
||||
ASMs2D::scatterInd(basis->numCoefs_u(),basis->numCoefs_v(),
|
||||
basis->order_u(),basis->order_v(),
|
||||
spline.left_idx,ip);
|
||||
|
@ -130,6 +130,7 @@ bool SplineFields3D::gradFE(const FiniteElement& fe, Matrix& grad) const
|
||||
}
|
||||
dNdX.multiply(dNdu,Jac); // dNdX = dNdu * Jac
|
||||
|
||||
ip.clear();
|
||||
ASMs3D::scatterInd(basis->numCoefs(0),basis->numCoefs(1),basis->numCoefs(2),
|
||||
basis->order(0),basis->order(1),basis->order(2),
|
||||
spline.left_idx,ip);
|
||||
|
Loading…
Reference in New Issue
Block a user