AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
519 stars 339 forks source link

Fix extra indentation in fcompare output #3823

Closed yut23 closed 5 months ago

yut23 commented 5 months ago

Summary

This PR fixes the column alignment when the plotfiles being compared have missing variables or NaNs.

The previous code placed the padding spaces from std::setw(50) after the newline, which showed up as extra indentation on the following line. This moves the newlines to a separate string, so the padding only gets applied to the message.

Additional background

Checklist

The proposed changes: