MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
solver.h File Reference
#include <unistd.h>
#include <cfloat>
#include <cmath>
#include <limits>
#include "myassert.h"
#include "mynewmem.h"
#include "except.h"
#include "dataman.h"
#include "schurdataman.h"
#include "schsolman.h"
#include <deque>
#include "linsol.h"
#include "stepsol.h"
#include "nonlin.h"
#include "linesearch.h"
#include "mfree.h"
#include "cstring"
#include "precond.h"
#include "rtsolver.h"
#include "TimeStepControl.h"
Include dependency graph for solver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Solver
 
class  Solver::ErrGeneric
 
class  Solver::ErrMaxIterations
 
class  Solver::SimulationDiverged
 
class  Solver::EndOfSimulation
 
struct  Solver::EigenAnalysis
 
struct  Solver::EigenAnalysis::ARPACK
 
struct  Solver::EigenAnalysis::JDQZ
 

Functions

int mbdyn_stop_at_end_of_iteration (void)
 
int mbdyn_stop_at_end_of_time_step (void)
 
void mbdyn_set_stop_at_end_of_iteration (void)
 
void mbdyn_set_stop_at_end_of_time_step (void)
 

Function Documentation

void mbdyn_set_stop_at_end_of_iteration ( void  )

Definition at line 192 of file solver.cc.

193 {
194 #ifdef HAVE_SIGNAL
195  ::mbdyn_keep_going = MBDYN_STOP_AT_END_OF_ITERATION;
196 #endif // HAVE_SIGNAL
197 }
void mbdyn_set_stop_at_end_of_time_step ( void  )

Definition at line 200 of file solver.cc.

Referenced by InverseSolver::Advance(), LoadIncNorm::AfterConvergence(), and ExtFileHandlerEDGE::Recv_pre().

201 {
202 #ifdef HAVE_SIGNAL
203  ::mbdyn_keep_going = MBDYN_STOP_AT_END_OF_TIME_STEP;
204 #endif // HAVE_SIGNAL
205 }
int mbdyn_stop_at_end_of_iteration ( void  )

Definition at line 172 of file solver.cc.

Referenced by ExtFileHandlerEDGE::CheckFlag(), LineSearchSolver::LineSearch(), ExtFileHandlerEDGE::Recv_pre(), ExtFileHandler::Recv_pre(), ExtFileHandlerEDGE::Send_pre(), ExtFileHandler::Send_pre(), ExtFileHandlerEDGE::SendFlag(), BiCGStab::Solve(), NewtonRaphsonSolver::Solve(), and Gmres::Solve().

173 {
174 #ifdef HAVE_SIGNAL
175  return ::mbdyn_keep_going >= MBDYN_STOP_AT_END_OF_ITERATION;
176 #else // ! HAVE_SIGNAL
177  return 0;
178 #endif // ! HAVE_SIGNAL
179 }
int mbdyn_stop_at_end_of_time_step ( void  )

Definition at line 182 of file solver.cc.

Referenced by InverseSolver::Advance(), Solver::Advance(), InverseSolver::Prepare(), Solver::Prepare(), and Solver::Start().

183 {
184 #ifdef HAVE_SIGNAL
185  return ::mbdyn_keep_going >= MBDYN_STOP_AT_END_OF_TIME_STEP;
186 #else // ! HAVE_SIGNAL
187  return 0;
188 #endif // ! HAVE_SIGNAL
189 }