Skip to content

Commit 4699c79

Browse files
committed
Fix Windows a different way
1 parent 27835ca commit 4699c79

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Src/FFT/AMReX_FFT_Poisson.H

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,13 @@ void PoissonHybrid<MF>::solve_z (FA& spmf, TRIA const& tria, TRIC const& tric)
581581
}
582582
}
583583

584-
if constexpr (std::is_same_v<TRIA,fft_poisson_detail::Tri_Zero<T>> &&
585-
std::is_same_v<TRIC,fft_poisson_detail::Tri_Zero<T>>) {
584+
if
585+
#ifndef _WIN32
586+
constexpr
587+
#endif
588+
(std::is_same_v<TRIA,fft_poisson_detail::Tri_Zero<T>> &&
589+
std::is_same_v<TRIC,fft_poisson_detail::Tri_Zero<T>>) {
590+
amrex::ignore_unused(tria,tric);
586591
#if defined(AMREX_USE_OMP) && !defined(AMREX_USE_GPU)
587592
#pragma omp parallel
588593
#endif

0 commit comments

Comments
 (0)