From af7728a10f9155c034b99d7a4806931a3ea9f566 Mon Sep 17 00:00:00 2001 From: Andreas Buykx Date: Tue, 6 Feb 2024 16:55:04 +0100 Subject: [PATCH] removed unnecessary call to compute edge centers --- libs/MeshKernelApi/include/MeshKernelApi/Utils.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/MeshKernelApi/include/MeshKernelApi/Utils.hpp b/libs/MeshKernelApi/include/MeshKernelApi/Utils.hpp index 0ab5ed660..ca24779a6 100644 --- a/libs/MeshKernelApi/include/MeshKernelApi/Utils.hpp +++ b/libs/MeshKernelApi/include/MeshKernelApi/Utils.hpp @@ -372,10 +372,9 @@ namespace meshkernelapi /// @brief Sets the meshkernelapi::CurvilinearGrid data /// @param[in] mesh2d The meshkernel::Mesh2D instance /// @param[out] mesh2dApi The output meshkernelapi::Mesh2D instance - static void SetCurvilinearGridApiData(meshkernel::CurvilinearGrid& curvilinearGrid, + static void SetCurvilinearGridApiData(const meshkernel::CurvilinearGrid& curvilinearGrid, CurvilinearGrid& curvilinearGridApi) { - curvilinearGrid.ComputeEdgesCenters(); for (size_t n = 0; n < curvilinearGrid.GetNumNodes(); n++) { curvilinearGridApi.node_x[n] = curvilinearGrid.m_nodes[n].x;