Skip to content

Commit

Permalink
Included safety factor in error message output for critical time step.
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloseleson committed Jan 3, 2025
1 parent 1f3613e commit a9b72fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"horizon" : {"value": 0.00615, "unit": "m"},
"final_time" : {"value": 8, "unit": "s"},
"timestep" : {"value": 4.2e-07, "unit": "s"},
"thermal_subcycle_steps" : {"value": 5e+4},
"thermal_subcycle_steps" : {"value": 4.5e+4},
"output_frequency" : {"value": 10},
"output_reference" : {"value": true}
}
3 changes: 2 additions & 1 deletion src/CabanaPD_Input.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ class Inputs
{
log( std::cout, "WARNING: timestep (", dt,
") is larger than estimated stable timestep for ", name, " (",
dt_crit, "), using safety factor of ", safety_factor, ".\n" );
dt_crit_safety, "), using safety factor of ", safety_factor,
".\n" );
}
// Store in inputs
inputs["critical_timestep_" + name]["value"] = dt_crit_safety;
Expand Down

0 comments on commit a9b72fd

Please sign in to comment.