From d4d57040f674d19fc1a55025af85571ff0b1e388 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Mon, 14 Oct 2019 18:26:08 +0200 Subject: [PATCH] Use new delaunay tree with double --- libsrc/meshing/delaunay.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libsrc/meshing/delaunay.cpp b/libsrc/meshing/delaunay.cpp index 2bf1f674..a152b762 100644 --- a/libsrc/meshing/delaunay.cpp +++ b/libsrc/meshing/delaunay.cpp @@ -3,7 +3,7 @@ namespace netgen { - template + template class DelaunayTree { public: @@ -14,7 +14,7 @@ namespace netgen struct Leaf { - Point<2*dim, float> p[N]; + Point<2*dim, TSCAL> p[N]; T index[N]; int n_elements; int nr; @@ -208,7 +208,7 @@ namespace netgen { // add two new nodes and one new leaf int n_elements = leaf->n_elements; - ArrayMem coords(n_elements); + ArrayMem coords(n_elements); ArrayMem order(n_elements); // separate points in two halves, first sort all coordinates in direction dir @@ -282,8 +282,8 @@ namespace netgen } }; - typedef BoxTree<3> DTREE; - // typedef DelaunayTree<3> DTREE; + // typedef BoxTree<3> DTREE; + typedef DelaunayTree<3> DTREE; static const int deltetfaces[][3] = { { 1, 2, 3 },