Skip to content

Commit

Permalink
Remove set of max iterations for demos with direct solver
Browse files Browse the repository at this point in the history
  • Loading branch information
dariomangoni committed May 22, 2024
1 parent 55fd8cb commit 2a4ce4a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions demos/f3of/demo_F3OF_DT1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ int main(int argc, char* argv[]) {
system.SetGravitationalAcceleration(ChVector3d(0.0, 0.0, -9.81));
double timestep = 0.02;
system.SetSolverType(ChSolver::Type::SPARSE_QR);
system.GetSolver()->AsIterative()->SetMaxIterations(
300); // the higher, the easier to keep the constraints satisfied.
ChRealtimeStepTimer realtime_timer;
double simulationDuration = 300.0;

Expand Down
2 changes: 0 additions & 2 deletions demos/f3of/demo_F3OF_DT2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ int main(int argc, char* argv[]) {
system.SetGravitationalAcceleration(ChVector3d(0.0, 0.0, -9.81));
double timestep = 0.02;
system.SetSolverType(ChSolver::Type::SPARSE_QR);
system.GetSolver()->AsIterative()->SetMaxIterations(
300); // the higher, the easier to keep the constraints satisfied.
ChRealtimeStepTimer realtime_timer;
double simulationDuration = 300.0;

Expand Down
2 changes: 0 additions & 2 deletions demos/f3of/demo_F3OF_DT3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ int main(int argc, char* argv[]) {
system.SetGravitationalAcceleration(ChVector3d(0.0, 0.0, -9.81));
double timestep = 0.02;
system.SetSolverType(ChSolver::Type::SPARSE_QR);
system.GetSolver()->AsIterative()->SetMaxIterations(
300); // the higher, the easier to keep the constraints satisfied.
ChRealtimeStepTimer realtime_timer;
double simulationDuration = 300.0;

Expand Down

0 comments on commit 2a4ce4a

Please sign in to comment.