Пример #1
0
//--------------------------------------------------------------------------
//-------- execute ---------------------------------------------------------
//--------------------------------------------------------------------------
void
SolverAlgorithmDriver::execute()
{
  pre_work();
  
  // assemble all interior and boundary contributions; consolidated homogeneous approach
  std::map<std::string, SolverAlgorithm *>::iterator itc;
  for ( itc = solverAlgorithmMap_.begin(); itc != solverAlgorithmMap_.end(); ++itc ) {
    itc->second->execute();
  }

  // assemble all interior and boundary contributions
  std::map<AlgorithmType, SolverAlgorithm *>::iterator it;
  for ( it = solverAlgMap_.begin(); it != solverAlgMap_.end(); ++it ) {
    it->second->execute();
  }
  
  // handle constraint (will zero out entire row and process constraint)
  for ( it = solverConstraintAlgMap_.begin(); it != solverConstraintAlgMap_.end(); ++it ) {
    it->second->execute();
  }

  // handle dirichlet
  for ( it = solverDirichAlgMap_.begin(); it != solverDirichAlgMap_.end(); ++it ) {
    it->second->execute();
  }

  post_work();
  
}
Пример #2
0
john::john(int machin_value, int detail_value, int **matrix_value, QObject *parent):
	QObject(parent){
	this->machin=machin_value;
	this->detail=detail_value;
	this->old_matrix=matrix_value;
	this->processed=false;
	post_work();
}
Пример #3
0
//--------------------------------------------------------------------------
//-------- execute ---------------------------------------------------------
//--------------------------------------------------------------------------
void
AlgorithmDriver::execute()
{
  pre_work();

  // assemble
  std::map<AlgorithmType, Algorithm *>::iterator it;
  for ( it = algMap_.begin(); it != algMap_.end(); ++it ) {
    it->second->execute();
  }

  post_work();

}