From 899592edf6d5d95daf6e1b8676a2fcb4ac8354de Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 27 Jun 2024 09:15:33 -0400 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#657) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-clang-format: v18.1.6 → v18.1.7](https://github.com/pre-commit/mirrors-clang-format/compare/v18.1.6...v18.1.7) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- src/DiagPDF.cpp | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0a7380df2..886054abb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: - id: check-symlinks - id: mixed-line-ending - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v18.1.6 + rev: v18.1.7 hooks: - id: clang-format ci: diff --git a/src/DiagPDF.cpp b/src/DiagPDF.cpp index cca9f6d6c..8141acc46 100644 --- a/src/DiagPDF.cpp +++ b/src/DiagPDF.cpp @@ -321,13 +321,11 @@ void DiagPDF::writePDFToFile(int a_nstep, const amrex::Real &a_time, const amrex // write column names for variables for (int n = 0; n < nvars; ++n) { - pdfFile << std::setw(widths[n][0]) << m_varNames[n] + "_idx" - << " " << std::setw(widths[n][0]) << m_varNames[n] + "_min" - << " " << std::setw(widths[n][1]) << m_varNames[n] + "_max"; + pdfFile << std::setw(widths[n][0]) << m_varNames[n] + "_idx" << " " << std::setw(widths[n][0]) << m_varNames[n] + "_min" << " " + << std::setw(widths[n][1]) << m_varNames[n] + "_max"; } // write out column name for histogram value: "mass_sum", "volume_sum", or "cell_counts_sum" - pdfFile << " " << std::setw(width) << m_weightType + "_sum" - << "\n"; + pdfFile << " " << std::setw(width) << m_weightType + "_sum" << "\n"; std::vector transformed_range(nvars); std::vector transformed_binWidth(nvars);