Skip to content

Commit

Permalink
Fix const
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Feb 24, 2025
1 parent 06ce432 commit 3d4f7a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/NonlinearSolvers/NewtonSolver.H
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ void NewtonSolver<Vec,Ops>::Define ( const Vec& a_U,
// Create diagnostic file and write header
if (!this->m_diagnostic_file.empty() && amrex::ParallelDescriptor::IOProcessor()) {

std::filesystem::path diagnostic_path(this->m_diagnostic_file);
std::filesystem::path diagnostic_dir = diagnostic_path.parent_path();
std::filesystem::path const diagnostic_path(this->m_diagnostic_file);
std::filesystem::path const diagnostic_dir = diagnostic_path.parent_path();
if (!diagnostic_dir.empty()) {
std::filesystem::create_directories(diagnostic_dir);
}
Expand Down
4 changes: 2 additions & 2 deletions Source/NonlinearSolvers/PicardSolver.H
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ void PicardSolver<Vec,Ops>::Define ( const Vec& a_U,
// Create diagnostic file and write header
if (!this->m_diagnostic_file.empty() && amrex::ParallelDescriptor::IOProcessor()) {

std::filesystem::path diagnostic_path(this->m_diagnostic_file);
std::filesystem::path diagnostic_dir = diagnostic_path.parent_path();
std::filesystem::path const diagnostic_path(this->m_diagnostic_file);
std::filesystem::path const diagnostic_dir = diagnostic_path.parent_path();
if (!diagnostic_dir.empty()) {
std::filesystem::create_directories(diagnostic_dir);
}
Expand Down

0 comments on commit 3d4f7a6

Please sign in to comment.