Skip to content

Commit

Permalink
limit max step size to 0.1*dt
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyush Sharda authored and Piyush Sharda committed Aug 24, 2024
1 parent 1f09cb8 commit d11cf2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unit_test/burn_cell_metal_chem/burn_cell.H
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ auto burn_cell_c() -> int {

//std::cout << "before burn: " << state.rho << ", " << state.T << ", " << state.xn << ", " << state.e << std::endl;

integrator_rp::ode_max_dt = dt*1e-1;
// do the actual integration
burner(state, dt);

Expand Down Expand Up @@ -322,7 +323,7 @@ auto burn_cell_c() -> int {
state_over_time << std::setw(15) << state.xn[x];
}
state_over_time << std::endl;
std::cout << "step " << n << " done" << std::endl;
std::cout << "step " << n << " done with dt = " << dt << std::endl;

}
state_over_time.close();
Expand Down

0 comments on commit d11cf2b

Please sign in to comment.