You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a (claude generated) logger to decrowd outputs / save output and a few other fixes
Used Claude to help generate a logger that would log any of our material model outputs to their own files per mpi rank, output any non-0 rank MFEM logging info to its own MPI rank file, and also duplicate all of the terminal output to its own logging file for future references.
Outside of that had a few bug fixes captured in this that I noticed when running some tougher material models and hitting some interesting edge cases...
* @details Outputs detailed information about cycle time step info including:
265
+
* - Original time step size before we reduced things down
266
+
* - Current time
267
+
* - Current cycle
268
+
* - Current time step size
269
+
*
270
+
* Used for debugging convergence issues and understanding when/why
271
+
* retrying a time step is required.
272
+
*/
273
+
voidprintRetrialStats() const {
274
+
std::cout << "[Cycle: "<< (simulation_cycle + 1) << " , time: " << time << "] Previous attempts to converge failed step: dt old was " << dt_orig << " new dt is " << dt << std::endl;
275
+
}
276
+
251
277
/**
252
278
* @brief Print sub-stepping diagnostic information
253
279
*
@@ -260,7 +286,7 @@ class TimeManagement {
260
286
* sub-stepping is being triggered.
261
287
*/
262
288
voidprintSubStepStats() const {
263
-
std::cout << "Previous attempts to converge failed but now starting sub-stepping of our desired time step: desired dt old was " << dt_orig << " sub-stepping dt is " << dt << " and number of sub-steps required is " << required_num_sub_steps << std::endl;
289
+
std::cout << "[Cycle: "<< (simulation_cycle + 1) << " , time: " << time << "] Previous attempts to converge failed but now starting sub-stepping of our desired time step: desired dt old was " << dt_orig << " sub-stepping dt is " << dt << " and number of sub-steps required is " << required_num_sub_steps << std::endl;
0 commit comments