CalculateLeftHandSide
From KratosWiki
(Difference between revisions)
Line 15: | Line 15: | ||
rLeftHandSideVector.resize(0); | rLeftHandSideVector.resize(0); | ||
} | } | ||
− | As it is clear in the first one [[LHS]] is matrix and in the second one is vector | + | As it is clear in the first one [[LHS]] is a matrix and in the second one is a vector |
Revision as of 13:48, 3 December 2007
void LinearElement::CalculateLeftHandSide(MatrixType& rLeftHandSideMatrix, ProcessInfo& rCurrentProcessInfo) { bool CalculateStiffnessMatrixFlag = true; bool CalculateResidualVectorFlag = false; Vector temp = Vector(); CalculateAll(rLeftHandSideMatrix, temp, rCurrentProcessInfo, CalculateStiffnessMatrixFlag, CalculateResidualVectorFlag); }
the other available function is
virtual void CalculateLeftHandSide(VectorType& rLeftHandSideVector, ProcessInfo& rCurrentProcessInfo) { if(rLeftHandSideVector.size()!=0) rLeftHandSideVector.resize(0); }
As it is clear in the first one LHS is a matrix and in the second one is a vector