From 1b72235471c55f0a77eff65bc955fc333f17243a Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 26 Apr 2021 09:51:32 +0200 Subject: [PATCH] fix double-->float conversion --- Src/EB/AMReX_EB2_2D_C.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/EB/AMReX_EB2_2D_C.cpp b/Src/EB/AMReX_EB2_2D_C.cpp index 8fc96908c55..a94de0c314b 100644 --- a/Src/EB/AMReX_EB2_2D_C.cpp +++ b/Src/EB/AMReX_EB2_2D_C.cpp @@ -100,8 +100,8 @@ void set_eb_data (const int i, const int j, } else { vcent(i,j,0,0) *= (1.0/vfrac(i,j,0)); vcent(i,j,0,1) *= (1.0/vfrac(i,j,0)); - vcent(i,j,0,0) = amrex::min(amrex::max(vcent(i,j,0,0),-0.5),0.5); - vcent(i,j,0,1) = amrex::min(amrex::max(vcent(i,j,0,1),-0.5),0.5); + vcent(i,j,0,0) = amrex::min(amrex::max(vcent(i,j,0,0),Real(-0.5)),Real(0.5)); + vcent(i,j,0,1) = amrex::min(amrex::max(vcent(i,j,0,1),Real(-0.5)),Real(0.5)); } } }