Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#657)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/pre-commit/mirrors-clang-format: v18.1.6 →
v18.1.7](pre-commit/mirrors-clang-format@v18.1.6...v18.1.7)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jun 27, 2024
1 parent 8191640 commit 899592e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 3 additions & 5 deletions src/DiagPDF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<amrex::Real> transformed_range(nvars);
std::vector<amrex::Real> transformed_binWidth(nvars);
Expand Down

0 comments on commit 899592e

Please sign in to comment.