Skip to content

Commit

Permalink
Merge pull request #104 from pabloseleson/examples_solver_heading
Browse files Browse the repository at this point in the history
Added solver heading and separate it from run heading for consistency
  • Loading branch information
streeve authored Jun 14, 2024
2 parents 907463d + 76b2d51 commit cf8f02a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion examples/mechanics/crack_branching.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,14 @@ void crackBranchingExample( const std::string filename )
particles->updateParticles( exec_space{}, init_functor );

// ====================================================
// Simulation run
// Create solver
// ====================================================
auto cabana_pd = CabanaPD::createSolverFracture<memory_space>(
inputs, particles, force_model, prenotch );

// ====================================================
// Simulation run
// ====================================================
cabana_pd->init();
cabana_pd->run( bc );
}
Expand Down
6 changes: 5 additions & 1 deletion examples/mechanics/elastic_wave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,14 @@ void elasticWaveExample( const std::string filename )
particles->updateParticles( exec_space{}, init_functor );

// ====================================================
// Simulation run
// Create solver
// ====================================================
auto cabana_pd = CabanaPD::createSolverElastic<memory_space>(
inputs, particles, force_model );

// ====================================================
// Simulation run
// ====================================================
cabana_pd->init();
cabana_pd->run();

Expand Down
6 changes: 5 additions & 1 deletion examples/mechanics/kalthoff_winkler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,14 @@ void kalthoffWinklerExample( const std::string filename )
particles->updateParticles( exec_space{}, init_functor );

// ====================================================
// Simulation run
// Create solver
// ====================================================
auto cabana_pd = CabanaPD::createSolverFracture<memory_space>(
inputs, particles, force_model, prenotch );

// ====================================================
// Simulation run
// ====================================================
cabana_pd->init();
cabana_pd->run( bc );
}
Expand Down

0 comments on commit cf8f02a

Please sign in to comment.