Skip to content

Commit

Permalink
Add a few explicit flush calls
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Mar 21, 2024
1 parent 41d75c8 commit 218a0e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Src/Amr/AMReX_Amr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2207,6 +2207,7 @@ Amr::coarseTimeStep (Real stop_time)
if (record_run_info_terse && ParallelDescriptor::IOProcessor()) {
runlog_terse << level_steps[0] << " " << cumtime << " " << dt_level[0];
runlog_terse << '\n';
runlog_terse.flush();
}

int check_test = 0;
Expand Down Expand Up @@ -2917,6 +2918,7 @@ Amr::printGridInfo (std::ostream& os,
}

os << '\n';
os.flush();
}


Expand Down
1 change: 1 addition & 0 deletions Src/AmrCore/AMReX_AmrCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ AmrCore::printGridSummary (std::ostream& os, int min_lev, int max_lev) const noe
}

os << '\n';
os.flush();
}

}

0 comments on commit 218a0e3

Please sign in to comment.