Skip to content

Commit

Permalink
fix setVal
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren committed Sep 22, 2024
1 parent af92088 commit 6474487
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions Src/LinearSolvers/MLMG/AMReX_MLALaplacian.H
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ MLALaplacianT<MF>::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]);
Expand All @@ -627,7 +627,7 @@ MLALaplacianT<MF>::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]);
Expand All @@ -638,7 +638,7 @@ MLALaplacianT<MF>::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) {
Expand All @@ -649,7 +649,7 @@ MLALaplacianT<MF>::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]);
Expand All @@ -659,7 +659,7 @@ MLALaplacianT<MF>::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]);
Expand All @@ -669,7 +669,7 @@ MLALaplacianT<MF>::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)
Expand All @@ -690,7 +690,7 @@ MLALaplacianT<MF>::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]);
Expand All @@ -708,7 +708,7 @@ MLALaplacianT<MF>::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) {
Expand All @@ -726,7 +726,7 @@ MLALaplacianT<MF>::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]);
Expand All @@ -743,7 +743,7 @@ MLALaplacianT<MF>::FFlux (int amrlev, const MFIter& mfi,
});
}
} else {
flux[1]->setVal(RT(0.0));
flux[1]->template setVal(RT(0.0));
}
}
#else
Expand Down
20 changes: 10 additions & 10 deletions Src/LinearSolvers/MLMG/AMReX_MLPoisson.H
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ MLPoissonT<MF>::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<RunOn::Device>(RT(0.0));
}
if (this->hiddenDirection() != 1) {
RT fac = RT(dxinv[1]);
Expand All @@ -896,7 +896,7 @@ MLPoissonT<MF>::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<RunOn::Device>(RT(0.0));
}
if (this->hiddenDirection() != 2) {
RT fac = RT(dxinv[2]);
Expand All @@ -907,7 +907,7 @@ MLPoissonT<MF>::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<RunOn::Device>(RT(0.0));
}
} else {
if (this->hiddenDirection() != 0) {
Expand All @@ -918,7 +918,7 @@ MLPoissonT<MF>::FFlux (int amrlev, const MFIter& mfi,
mlpoisson_flux_x(tbox, fxarr, solarr, fac);
});
} else {
flux[0]->setVal(RT(0.0));
flux[0]->template setVal<RunOn::Device>(RT(0.0));
}
if (this->hiddenDirection() != 1) {
RT fac = RT(dxinv[1]);
Expand All @@ -928,7 +928,7 @@ MLPoissonT<MF>::FFlux (int amrlev, const MFIter& mfi,
mlpoisson_flux_y(tbox, fyarr, solarr, fac);
});
} else {
flux[1]->setVal(RT(0.0));
flux[1]->template setVal<RunOn::Device>(RT(0.0));
}
if (this->hiddenDirection() != 2) {
RT fac = RT(dxinv[2]);
Expand All @@ -938,7 +938,7 @@ MLPoissonT<MF>::FFlux (int amrlev, const MFIter& mfi,
mlpoisson_flux_z(tbox, fzarr, solarr, fac);
});
} else {
flux[2]->setVal(RT(0.0));
flux[2]->template setVal<RunOn::Device>(RT(0.0));
}
}
#elif (AMREX_SPACEDIM == 2)
Expand All @@ -959,7 +959,7 @@ MLPoissonT<MF>::FFlux (int amrlev, const MFIter& mfi,
});
}
} else {
flux[0]->setVal(RT(0.0));
flux[0]->template setVal<RunOn::Device>(RT(0.0));
}
if (this->hiddenDirection() != 1) {
RT fac = RT(dxinv[1]);
Expand All @@ -977,7 +977,7 @@ MLPoissonT<MF>::FFlux (int amrlev, const MFIter& mfi,
});
}
} else {
flux[1]->setVal(RT(0.0));
flux[1]->template setVal<RunOn::Device>(RT(0.0));
}
} else {
if (this->hiddenDirection() != 0) {
Expand All @@ -995,7 +995,7 @@ MLPoissonT<MF>::FFlux (int amrlev, const MFIter& mfi,
});
}
} else {
flux[0]->setVal(RT(0.0));
flux[0]->template setVal<RunOn::Device>(RT(0.0));
}
if (this->hiddenDirection() != 1) {
RT fac = RT(dxinv[1]);
Expand All @@ -1012,7 +1012,7 @@ MLPoissonT<MF>::FFlux (int amrlev, const MFIter& mfi,
});
}
} else {
flux[1]->setVal(RT(0.0));
flux[1]->template setVal<RunOn::Device>(RT(0.0));
}
}
#else
Expand Down

0 comments on commit 6474487

Please sign in to comment.