Skip to content

Commit

Permalink
Allow getting unset contacts in API (#289 | GRIDEDIT-883)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-el-sayed authored Jan 30, 2024
1 parent b034092 commit de62e33
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions libs/MeshKernelApi/src/MeshKernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(meshKernelState[meshKernelId].m_contacts->Mesh2dIndices().size());
}
catch (...)
Expand All @@ -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)
Expand Down

0 comments on commit de62e33

Please sign in to comment.