Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GRIDEDIT-1407 add mkernel_mesh2d_get_property api #368

Merged
merged 5 commits into from
Sep 4, 2024

Conversation

lucacarniato
Copy link
Contributor

No description provided.

@lucacarniato lucacarniato marked this pull request as ready for review September 2, 2024 13:42
Comment on lines 392 to 394
/// Returns the value of the property
// [[nodiscard]] std::vector<double> GetProperty(Property property) const;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess sonarcloud will complain about this, commend out code.

Comment on lines +1479 to +1483
if (static_cast<size_t>(geometryList.num_coordinates) < values.size())
{
throw meshkernel::MeshKernelError("GeometryList with wrong dimensions");
}
std::copy(values.begin(), values.end(), geometryList.values);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this snippet common to both cases?

Comment on lines 390 to 391
///
/// @param [in] property The property to retrive
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably already have an email about the typo

Comment on lines +1324 to +1326
/// @param[in] propertyValue The value representing the specific property
/// @param[in] dimension The dimension of the specified property
/// @returns Error code
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dimension should be an out parameter

@lucacarniato lucacarniato merged commit 90bcb59 into master Sep 4, 2024
13 checks passed
@lucacarniato lucacarniato deleted the feature/GRIDEDIT-1407_api_for_edge_length branch September 4, 2024 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants