Skip to content

Commit

Permalink
Fix extra indentation in fcompare output
Browse files Browse the repository at this point in the history
The previous code placed the padding spaces after the newlines, which
showed up as extra indentation on the following line.
  • Loading branch information
yut23 committed Mar 19, 2024
1 parent 8afec3e commit 2a9802c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Tools/Plotfile/fcompare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,19 +279,23 @@ int main_main()
if (ivar_b[icomp_a] < 0) {
amrex::Print() << " " << std::setw(24) << std::left << names_a[icomp_a]
<< " " << std::setw(50)
<< "< variable not present in both files > \n";
<< "< variable not present in both files > "
<< "\n";
} else if (has_nan_a[icomp_a] && has_nan_b[icomp_a]) {
amrex::Print() << " " << std::setw(24) << std::left << names_a[icomp_a]
<< " " << std::setw(50)
<< "< NaN present in both A and B > \n";
<< "< NaN present in both A and B > "
<< "\n";
} else if (has_nan_a[icomp_a]) {
amrex::Print() << " " << std::setw(24) << std::left << names_a[icomp_a]
<< " " << std::setw(50)
<< "< NaN present in A > \n";
<< "< NaN present in A > "
<< "\n";
} else if (has_nan_b[icomp_a]) {
amrex::Print() << " " << std::setw(24) << std::left << names_b[icomp_a]
<< " " << std::setw(50)
<< "< NaN present in B > \n";
<< "< NaN present in B > "
<< "\n";
} else {
Real aerr = 0., rerr = 0.;
if (aerror[icomp_a] > 0.) {
Expand Down

0 comments on commit 2a9802c

Please sign in to comment.