From 22405db6996c579f4e56947edf5045cc4bc4b9b2 Mon Sep 17 00:00:00 2001 From: Hamidreza Norouzi Date: Sun, 24 Mar 2024 02:01:02 -0700 Subject: [PATCH] Trisurface modified with new data structure This commit is based on changes to geometry class of phasicFlow (version 1.0) --- src/phasicFlow/triSurface/triangleFunctions.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phasicFlow/triSurface/triangleFunctions.hpp b/src/phasicFlow/triSurface/triangleFunctions.hpp index 62c1c076..7345c07f 100644 --- a/src/phasicFlow/triSurface/triangleFunctions.hpp +++ b/src/phasicFlow/triSurface/triangleFunctions.hpp @@ -31,7 +31,7 @@ real surface( const realx3& p1, const realx3& p2, const realx3& p3) { realx3 V1 = p2 - p1; realx3 V2 = p3 - p1; - return abs((cross(V1,V2)).length()/2.0); + return abs((cross(V1,V2)).length()/(real)2.0); } INLINE_FUNCTION_HD