Skip to content

Commit

Permalink
examples/fluids: summary report restart state/step/time
Browse files Browse the repository at this point in the history
  • Loading branch information
jedbrown committed Jan 7, 2023
1 parent cf7a045 commit 65fa31e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/fluids/navierstokes.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,14 @@ int main(int argc, char **argv) {
" DM VecType : %s\n"
" Time Stepping Scheme : %s\n",
box_faces_str, mat_type, vec_type, phys_ctx->implicit ? "implicit" : "explicit"));
if (app_ctx->cont_steps) {
PetscCall(PetscPrintf(comm,
" Continue:\n"
" Filename: : %s\n"
" Step: : %" PetscInt_FMT "\n"
" Time: : %g\n",
app_ctx->cont_file, app_ctx->cont_steps, app_ctx->cont_time));
}
// Mesh
const PetscInt num_comp_q = 5;
CeedInt glob_dofs, owned_dofs;
Expand Down

0 comments on commit 65fa31e

Please sign in to comment.