Skip to content

Add RBParameters::set_n_steps() and update RBTheta::evaluate() APIs#3571

Merged
jwpeterson merged 3 commits intolibMesh:develfrom
jwpeterson:rb_parameters_n_steps
Jun 1, 2023
Merged

Add RBParameters::set_n_steps() and update RBTheta::evaluate() APIs#3571
jwpeterson merged 3 commits intolibMesh:develfrom
jwpeterson:rb_parameters_n_steps

Conversation

@jwpeterson
Copy link
Copy Markdown
Member

We often use RBParameters objects to "represent" multiple steps even when there are no parameters actually defined on the RBParameters object. In this case, we just need the associated RBTheta objects to know that they should return n_steps() copies of a value rather than a single copy. The RBParameters::set_n_steps() API allows us to declare that an RBParameters object has a certain number of steps in cases where there are no parameters.

Previously, we determined the number of steps stored on an
RBParameters object "dynamically" by simply checking how many steps
the user had stored for the first (alphabetically) parameter.

Unfortunately, this does not work well for a common use case, which is
when there are no parameters actually stored on the RBParameters
object, but it is still being used to represent multiple steps. In
this case, the number of steps which the RBParameters object
represents is returned by the n_steps() API.
@jwpeterson jwpeterson requested a review from dknez May 31, 2023 20:37
@moosebuild
Copy link
Copy Markdown

Job Coverage on c780d04 wanted to post the following:

Coverage

9f556a #3571 c780d0
Total Total +/- New
Rate 60.23% 60.23% +0.00% 66.67%
Hits 49376 49388 +12 10
Misses 32604 32606 +2 5

Diff coverage report

Full coverage report

Warnings

  • New new line coverage rate 66.67% is less than the suggested 90.0%

This comment will be updated on new commits.

@moosebuild
Copy link
Copy Markdown

Job Test MOOSE on c780d04 : invalidated by @jwpeterson

Got "fatal error: CombinedRevision.h: No such file or directory" error again

@jwpeterson jwpeterson merged commit b937392 into libMesh:devel Jun 1, 2023
@jwpeterson jwpeterson deleted the rb_parameters_n_steps branch June 2, 2023 13:54
jwpeterson added a commit to jwpeterson/libmesh that referenced this pull request Jun 2, 2023
The fix in libMesh#3571 makes this check unnecessary, since RBParameters
objects with no parameters report having one step now.
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.

3 participants