void lterrain::Initialize(int NewConfig, int SpecialFlags) { if(!(SpecialFlags & LOAD)) { InstallDataBase(NewConfig); RandomizeVisualEffects(); if(!(SpecialFlags & NO_MATERIALS)) GenerateMaterials(); } if(!(SpecialFlags & LOAD)) { PostConstruct(); RestoreHP(); } if(!(SpecialFlags & LOAD)) { if(!(SpecialFlags & NO_MATERIALS)) { CalculateAll(); if(!(SpecialFlags & NO_PIC_UPDATE)) UpdatePictures(); } } }
//*********************************************************************************** void FaceHeatConvection::CalculateLocalSystem( MatrixType& rLeftHandSideMatrix, VectorType& rRightHandSideVector, ProcessInfo& rCurrentProcessInfo ) { //calculation flags bool CalculateStiffnessMatrixFlag = true; bool CalculateResidualVectorFlag = true; CalculateAll( rLeftHandSideMatrix, rRightHandSideVector, rCurrentProcessInfo, CalculateStiffnessMatrixFlag, CalculateResidualVectorFlag ); }
//*********************************************************************************** void FaceHeatConvection::CalculateRightHandSide( VectorType& rRightHandSideVector, ProcessInfo& rCurrentProcessInfo ) { //calculation flags bool CalculateStiffnessMatrixFlag = false; bool CalculateResidualVectorFlag = true; MatrixType temp = Matrix(); CalculateAll( temp, rRightHandSideVector, rCurrentProcessInfo, CalculateStiffnessMatrixFlag, CalculateResidualVectorFlag ); }
void BeamElement::CalculateLeftHandSide(MatrixType& rLeftHandSideMatrix, ProcessInfo& rCurrentProcessInfo) { bool CalculateStiffnessMatrixFlag = true; bool CalculateResidualVectorFlag = false; Vector temp = Vector(); CalculateAll(rLeftHandSideMatrix, temp, rCurrentProcessInfo, CalculateStiffnessMatrixFlag, CalculateResidualVectorFlag); }