Skip to content

Commit

Permalink
GRIDEDIT-900: SetCurvilinearGrid unnecessarily computes edge centers (#…
Browse files Browse the repository at this point in the history
…298)

removed unnecessary call to compute edge centers
  • Loading branch information
andreasbuykx authored Feb 7, 2024
1 parent 7b49662 commit 3cfd92f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/MeshKernelApi/include/MeshKernelApi/Utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3cfd92f

Please sign in to comment.