Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some color to the output #463

Merged
merged 3 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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