From 758e1ca4ec6d14394609e3beebbbd4a80a77784b Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 4 Mar 2019 14:24:18 +0100 Subject: [PATCH 1/2] add missing const --- libsrc/core/mpi_wrapper.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/core/mpi_wrapper.hpp b/libsrc/core/mpi_wrapper.hpp index 4928dfda..329fee57 100644 --- a/libsrc/core/mpi_wrapper.hpp +++ b/libsrc/core/mpi_wrapper.hpp @@ -153,7 +153,7 @@ namespace ngcore /** --- collectives --- **/ template ())> - T Reduce (T d, const MPI_Op & op, int root = 0) + T Reduce (T d, const MPI_Op & op, int root = 0) const { if (size == 1) return d; From 05518ea796b4eb7328e8f4ed141d2b515ac6c048 Mon Sep 17 00:00:00 2001 From: Lukas Date: Wed, 20 Mar 2019 17:06:57 +0100 Subject: [PATCH 2/2] fix index 1/0 typo --- libsrc/meshing/topology.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/meshing/topology.cpp b/libsrc/meshing/topology.cpp index 63894f9a..b1bd3a62 100644 --- a/libsrc/meshing/topology.cpp +++ b/libsrc/meshing/topology.cpp @@ -530,7 +530,7 @@ namespace netgen for (int i = mesh->mlbetweennodes.Begin(); i < mesh->mlbetweennodes.End(); i++) { INDEX_2 parents = Sort (mesh->mlbetweennodes[i]); - if (parents[0] > PointIndex::BASE) vert2vertcoarse.AddSave (parents[0], parents[1]); + if (parents[0] >= PointIndex::BASE) vert2vertcoarse.AddSave (parents[0], parents[1]); }