CalculateLeftHandSide

From KratosWiki
(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
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
 +
 
 +
 
 +
[[Category:C++ Code]]

Latest revision as of 19:14, 1 November 2008

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

Personal tools
Categories