From de62e3309ca28f0f331e339f4ac5d61dba5116bc Mon Sep 17 00:00:00 2001 From: Ahmad El Sayed Date: Tue, 30 Jan 2024 13:47:39 +0100 Subject: [PATCH] Allow getting unset contacts in API (#289 | GRIDEDIT-883) --- libs/MeshKernelApi/src/MeshKernel.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/libs/MeshKernelApi/src/MeshKernel.cpp b/libs/MeshKernelApi/src/MeshKernel.cpp index 19ce5dc21..afd79f7a9 100644 --- a/libs/MeshKernelApi/src/MeshKernel.cpp +++ b/libs/MeshKernelApi/src/MeshKernel.cpp @@ -564,11 +564,6 @@ namespace meshkernelapi throw meshkernel::MeshKernelError("The selected mesh kernel id does not exist."); } - if (!meshKernelState[meshKernelId].m_contacts->AreComputed()) - { - throw meshkernel::MeshKernelError("The The contacts have not been computed."); - } - contacts.num_contacts = static_cast(meshKernelState[meshKernelId].m_contacts->Mesh2dIndices().size()); } catch (...) @@ -588,11 +583,6 @@ namespace meshkernelapi throw meshkernel::MeshKernelError("The selected mesh kernel id does not exist."); } - if (!meshKernelState[meshKernelId].m_contacts->AreComputed()) - { - throw meshkernel::MeshKernelError("The The contacts have not been computed."); - } - auto const& mesh1dIndices = meshKernelState[meshKernelId].m_contacts->Mesh1dIndices(); auto const& mesh2dIndices = meshKernelState[meshKernelId].m_contacts->Mesh2dIndices(); for (auto i = 0; i < contacts.num_contacts; ++i)