Skip to content

Commit

Permalink
Merge branch 'development' into compiler_warning_ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored May 17, 2024
2 parents a7fcb0b + e8db3be commit c47ad06
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Source/MaestroAdvance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ void Maestro::AdvanceTimeStep(bool is_initIter) {

bool is_predictor;

Print() << "\nTimestep " << istep << " starts with TIME = " << t_old
<< " DT = " << dt << std::endl
<< std::endl;
amrex::Print() << amrex::Font::Bold << amrex::FGColor::Green
<< "\nTimestep " << istep << " starts with TIME = " << t_old
<< " DT = " << dt << amrex::ResetDisplay << std::endl << std::endl;

if (maestro_verbose > 0) {
Print() << "Cell Count:" << std::endl;
Expand Down
6 changes: 3 additions & 3 deletions Source/MaestroAdvanceAvg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ void Maestro::AdvanceTimeStepAverage(bool is_initIter) {

bool is_predictor;

Print() << "\nTimestep " << istep << " starts with TIME = " << t_old
<< " DT = " << dt << std::endl
<< std::endl;
amrex::Print() << amrex::Font::Bold << amrex::FGColor::Green
<< "\nTimestep " << istep << " starts with TIME = " << t_old
<< " DT = " << dt << amrex::ResetDisplay << std::endl << std::endl;

if (maestro_verbose > 0) {
Print() << "Cell Count:" << std::endl;
Expand Down
3 changes: 2 additions & 1 deletion Source/MaestroBurner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ void Maestro::Burner(const Vector<MultiFab>& s_in, Vector<MultiFab>& s_out,

if (std::abs(sumX - 1.0) > reaction_sum_tol) {
#ifndef AMREX_USE_GPU
amrex::Print() << "ERROR: abundances do not sum to 1";
std::cout << amrex::Font::Bold << amrex::FGColor::Green
<< "ERROR: abundances do not sum to 1" << amrex::ResetDisplay << std::endl;
#endif
burn_failed = 1.0_rt;
}
Expand Down
3 changes: 2 additions & 1 deletion Source/MaestroEvolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ void Maestro::Evolve() {
// timer for profiling
BL_PROFILE_VAR("Maestro::Evolve()", Evolve);

Print() << "Calling Evolve()" << std::endl;
amrex::Print() << "\n";
amrex::Print() << amrex::Font::Bold << amrex::FGColor::Green << "Beginning main evolution" << amrex::ResetDisplay << std::endl;

// check to make sure spherical is only used for 3d
if (spherical && AMREX_SPACEDIM != 3) {
Expand Down
10 changes: 7 additions & 3 deletions Source/MaestroInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ void Maestro::Init() {

// initial projection
if (do_initial_projection) {
Print() << "Doing initial projection" << std::endl;
amrex::Print() << "\n";
amrex::Print() << amrex::Font::Bold << amrex::FGColor::Green << "Doing initial projection" << amrex::ResetDisplay << std::endl;
InitProj();

if (plot_int > 0 || plot_deltat > 0) {
Expand All @@ -166,7 +167,8 @@ void Maestro::Init() {
// divu iters - also update dt at end of each divu_iter
if (init_divu_iter > 0) {
for (int i = 1; i <= init_divu_iter; ++i) {
Print() << "Doing initial divu iteration #" << i << std::endl;
amrex::Print() << "\n";
amrex::Print() << amrex::Font::Bold << amrex::FGColor::Green << "Doing initial divu iteration #" << i << amrex::ResetDisplay << std::endl;
DivuIter(i);
}

Expand Down Expand Up @@ -198,7 +200,9 @@ void Maestro::Init() {

// initial (pressure) iters
for (int i = 1; i <= init_iter; ++i) {
Print() << "Doing initial pressure iteration #" << i << std::endl;
amrex::Print() << "\n";
amrex::Print() << amrex::Font::Bold << amrex::FGColor::Green
<< "Doing initial pressure iteration #" << i << amrex::ResetDisplay << std::endl;
InitIter();
}

Expand Down

0 comments on commit c47ad06

Please sign in to comment.