From 36c0aaf32c09ea679249f6acb14e8395b4500295 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Tue, 6 Aug 2024 08:27:23 -0400 Subject: [PATCH] some fixes for clang-tidy CI (#2942) --- Source/driver/Castro.cpp | 2 +- Source/rotation/Castro_rotation.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/driver/Castro.cpp b/Source/driver/Castro.cpp index 283cdf1e11..8cacbcf560 100644 --- a/Source/driver/Castro.cpp +++ b/Source/driver/Castro.cpp @@ -566,7 +566,7 @@ Castro::read_params () // in Amr::InitAmr(), right before the ParmParse checks, so if the user opts to // override our overriding, they can do so. - Amr::setComputeNewDtOnRegrid(1); + Amr::setComputeNewDtOnRegrid(true); // Read in custom refinement scheme. diff --git a/Source/rotation/Castro_rotation.cpp b/Source/rotation/Castro_rotation.cpp index 9c98f878ca..67cbf15384 100644 --- a/Source/rotation/Castro_rotation.cpp +++ b/Source/rotation/Castro_rotation.cpp @@ -91,13 +91,13 @@ Castro::construct_new_rotation_source(MultiFab& source, MultiFab& state_old, Mul { const int IOProc = ParallelDescriptor::IOProcessorNumber(); Real run_time = ParallelDescriptor::second() - strt_time; - + Real llevel = level; #ifdef BL_LAZY Lazy::QueueReduction( [=] () mutable { #endif ParallelDescriptor::ReduceRealMax(run_time,IOProc); - amrex::Print() << "Castro::construct_new_rotation_source() time = " << run_time << " on level " << level << "\n" << "\n"; + amrex::Print() << "Castro::construct_new_rotation_source() time = " << run_time << " on level " << llevel << "\n" << "\n"; #ifdef BL_LAZY }); #endif