Skip to content

Commit

Permalink
fix some duplicate branches in sum_integrated_quantities
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Mar 18, 2024
1 parent 3a32318 commit 5141efe
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions Source/driver/sum_integrated_quantities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,9 @@ Castro::sum_integrated_quantities ()

data_log1 << std::setw(intwidth) << timestep;

if (time == 0.0_rt) {
data_log1 << std::fixed;
}
else if (time < 1.e-4_rt || time > 1.e4_rt) {
if (time < 1.e-4_rt || time > 1.e4_rt) {
data_log1 << std::scientific;
}
else {
} else {
data_log1 << std::fixed;
}

Expand Down Expand Up @@ -616,13 +612,9 @@ Castro::sum_integrated_quantities ()

log << std::setw(intwidth) << timestep;

if (time == 0.0_rt) {
log << std::fixed;
}
else if (time < 1.e-4_rt || time > 1.e4_rt) {
if (time < 1.e-4_rt || time > 1.e4_rt) {
log << std::scientific;
}
else {
} else {
log << std::fixed;
}

Expand Down Expand Up @@ -717,13 +709,9 @@ Castro::sum_integrated_quantities ()

log << std::setw(intwidth) << timestep;

if (time == 0.0_rt) {
log << std::fixed;
}
else if (time < 1.e-4_rt || time > 1.e4_rt) {
if (time < 1.e-4_rt || time > 1.e4_rt) {
log << std::scientific;
}
else {
} else {
log << std::fixed;
}

Expand Down

0 comments on commit 5141efe

Please sign in to comment.