From 6474487ec4381cfa6f091427515ee7c91ecf9e04 Mon Sep 17 00:00:00 2001 From: Ann Almgren Date: Sun, 22 Sep 2024 07:13:57 -0700 Subject: [PATCH] fix setVal --- Src/LinearSolvers/MLMG/AMReX_MLALaplacian.H | 20 ++++++++++---------- Src/LinearSolvers/MLMG/AMReX_MLPoisson.H | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Src/LinearSolvers/MLMG/AMReX_MLALaplacian.H b/Src/LinearSolvers/MLMG/AMReX_MLALaplacian.H index 796512c1fe..d520a6049d 100644 --- a/Src/LinearSolvers/MLMG/AMReX_MLALaplacian.H +++ b/Src/LinearSolvers/MLMG/AMReX_MLALaplacian.H @@ -616,7 +616,7 @@ MLALaplacianT::FFlux (int amrlev, const MFIter& mfi, mlalap_flux_xface(tbox, fxarr, solarr, fac, blen, ncomp); }); } else { - flux[0]->setVal(RT(0.0)); + flux[0]->template setVal(RT(0.0)); } if (this->hiddenDirection() != 1) { RT fac = m_b_scalar * RT(dxinv[1]); @@ -627,7 +627,7 @@ MLALaplacianT::FFlux (int amrlev, const MFIter& mfi, mlalap_flux_yface(tbox, fyarr, solarr, fac, blen, ncomp); }); } else { - flux[1]->setVal(RT(0.0)); + flux[1]->template setVal(RT(0.0)); } if (this->hiddenDirection() != 2) { RT fac = m_b_scalar * RT(dxinv[2]); @@ -638,7 +638,7 @@ MLALaplacianT::FFlux (int amrlev, const MFIter& mfi, mlalap_flux_zface(tbox, fzarr, solarr, fac, blen, ncomp); }); } else { - flux[2]->setVal(RT(0.0)); + flux[2]->template setVal(RT(0.0)); } } else { if (this->hiddenDirection() != 0) { @@ -649,7 +649,7 @@ MLALaplacianT::FFlux (int amrlev, const MFIter& mfi, mlalap_flux_x(tbox, fxarr, solarr, fac, ncomp); }); } else { - flux[0]->setVal(RT(0.0)); + flux[0]->template setVal(RT(0.0)); } if (this->hiddenDirection() != 1) { RT fac = m_b_scalar * RT(dxinv[1]); @@ -659,7 +659,7 @@ MLALaplacianT::FFlux (int amrlev, const MFIter& mfi, mlalap_flux_y(tbox, fyarr, solarr, fac, ncomp); }); } else { - flux[1]->setVal(RT(0.0)); + flux[1]->template setVal(RT(0.0)); } if (this->hiddenDirection() != 2) { RT fac = m_b_scalar * RT(dxinv[2]); @@ -669,7 +669,7 @@ MLALaplacianT::FFlux (int amrlev, const MFIter& mfi, mlalap_flux_z(tbox, fzarr, solarr, fac, ncomp); }); } else { - flux[2]->setVal(RT(0.0)); + flux[2]->template setVal(RT(0.0)); } } #elif (AMREX_SPACEDIM == 2) @@ -690,7 +690,7 @@ MLALaplacianT::FFlux (int amrlev, const MFIter& mfi, }); } } else { - flux[0]->setVal(RT(0.0)); + flux[0]->template setVal(RT(0.0)); } if (this->hiddenDirection() != 1) { RT fac = m_b_scalar * RT(dxinv[1]); @@ -708,7 +708,7 @@ MLALaplacianT::FFlux (int amrlev, const MFIter& mfi, }); } } else { - flux[1]->setVal(RT(0.0)); + flux[1]->template setVal(RT(0.0)); } } else { if (this->hiddenDirection() != 0) { @@ -726,7 +726,7 @@ MLALaplacianT::FFlux (int amrlev, const MFIter& mfi, }); } } else { - flux[0]->setVal(RT(0.0)); + flux[0]->template setVal(RT(0.0)); } if (this->hiddenDirection() != 1) { RT fac = m_b_scalar * RT(dxinv[1]); @@ -743,7 +743,7 @@ MLALaplacianT::FFlux (int amrlev, const MFIter& mfi, }); } } else { - flux[1]->setVal(RT(0.0)); + flux[1]->template setVal(RT(0.0)); } } #else diff --git a/Src/LinearSolvers/MLMG/AMReX_MLPoisson.H b/Src/LinearSolvers/MLMG/AMReX_MLPoisson.H index 5cc655e6ce..4a529dff9d 100644 --- a/Src/LinearSolvers/MLMG/AMReX_MLPoisson.H +++ b/Src/LinearSolvers/MLMG/AMReX_MLPoisson.H @@ -885,7 +885,7 @@ MLPoissonT::FFlux (int amrlev, const MFIter& mfi, mlpoisson_flux_xface(tbox, fxarr, solarr, fac, blen); }); } else { - flux[0]->setVal(RT(0.0)); + flux[0]->template setVal(RT(0.0)); } if (this->hiddenDirection() != 1) { RT fac = RT(dxinv[1]); @@ -896,7 +896,7 @@ MLPoissonT::FFlux (int amrlev, const MFIter& mfi, mlpoisson_flux_yface(tbox, fyarr, solarr, fac, blen); }); } else { - flux[1]->setVal(RT(0.0)); + flux[1]->template setVal(RT(0.0)); } if (this->hiddenDirection() != 2) { RT fac = RT(dxinv[2]); @@ -907,7 +907,7 @@ MLPoissonT::FFlux (int amrlev, const MFIter& mfi, mlpoisson_flux_zface(tbox, fzarr, solarr, fac, blen); }); } else { - flux[2]->setVal(RT(0.0)); + flux[2]->template setVal(RT(0.0)); } } else { if (this->hiddenDirection() != 0) { @@ -918,7 +918,7 @@ MLPoissonT::FFlux (int amrlev, const MFIter& mfi, mlpoisson_flux_x(tbox, fxarr, solarr, fac); }); } else { - flux[0]->setVal(RT(0.0)); + flux[0]->template setVal(RT(0.0)); } if (this->hiddenDirection() != 1) { RT fac = RT(dxinv[1]); @@ -928,7 +928,7 @@ MLPoissonT::FFlux (int amrlev, const MFIter& mfi, mlpoisson_flux_y(tbox, fyarr, solarr, fac); }); } else { - flux[1]->setVal(RT(0.0)); + flux[1]->template setVal(RT(0.0)); } if (this->hiddenDirection() != 2) { RT fac = RT(dxinv[2]); @@ -938,7 +938,7 @@ MLPoissonT::FFlux (int amrlev, const MFIter& mfi, mlpoisson_flux_z(tbox, fzarr, solarr, fac); }); } else { - flux[2]->setVal(RT(0.0)); + flux[2]->template setVal(RT(0.0)); } } #elif (AMREX_SPACEDIM == 2) @@ -959,7 +959,7 @@ MLPoissonT::FFlux (int amrlev, const MFIter& mfi, }); } } else { - flux[0]->setVal(RT(0.0)); + flux[0]->template setVal(RT(0.0)); } if (this->hiddenDirection() != 1) { RT fac = RT(dxinv[1]); @@ -977,7 +977,7 @@ MLPoissonT::FFlux (int amrlev, const MFIter& mfi, }); } } else { - flux[1]->setVal(RT(0.0)); + flux[1]->template setVal(RT(0.0)); } } else { if (this->hiddenDirection() != 0) { @@ -995,7 +995,7 @@ MLPoissonT::FFlux (int amrlev, const MFIter& mfi, }); } } else { - flux[0]->setVal(RT(0.0)); + flux[0]->template setVal(RT(0.0)); } if (this->hiddenDirection() != 1) { RT fac = RT(dxinv[1]); @@ -1012,7 +1012,7 @@ MLPoissonT::FFlux (int amrlev, const MFIter& mfi, }); } } else { - flux[1]->setVal(RT(0.0)); + flux[1]->template setVal(RT(0.0)); } } #else