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

Fix ROL_Constraint_Partitioned_Def.hpp bound check #12603

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dougshidong
Copy link

@dougshidong dougshidong commented Dec 14, 2023

@trilinos/rol

Motivation

Constraint_Partitioned::get will currently accept an index of size cvec_.size().

Since int ncval_; // Number of constraint evaluations is a private member variable, its interface can't be used by external calling functions to determine the range of acceptable indices. At the moment, the only usable interface is to call get within a try-catch.

Stakeholder Feedback

Testing

@dougshidong dougshidong requested a review from a team as a code owner December 14, 2023 05:59
@trilinos-autotester
Copy link
Contributor

Status Flag 'Pre-Test Inspection' - - This Pull Request Requires Inspection... The code must be inspected by a member of the Team before Testing/Merging
NO INSPECTION HAS BEEN PERFORMED ON THIS PULL REQUEST! - This PR must be inspected by setting label 'AT: PRE-TEST INSPECTED'.

@cgcgcg
Copy link
Contributor

cgcgcg commented Jan 16, 2024

@dridzal @dpkouri @aj463 Did you apply this to the ROL develop branch? Can this be closed?

@dridzal
Copy link
Contributor

dridzal commented Apr 4, 2024

@dpkouri : Do you remember where the partitioned constraint is used?

Copy link
Contributor

@dpkouri dpkouri left a comment

Choose a reason for hiding this comment

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

This looks fine to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants