moose icon indicating copy to clipboard operation
moose copied to clipboard

Template jsonfilereader

Open jessecarterMOOSE opened this issue 1 year ago • 4 comments

Reason

Only Real data type currently supported when reading from JSON file with JSONFileReader UO.

Design

Changed getter functions to use templates.

Impact

Will change existing API's in that the data type will need to be specified. Not sure how many downstream apps this will break. The original getters could probably be restored if necessary.

Note I don't have much experience with templated functions in C++ and had to implement the function source in the header files to get things to link properly. If there is a better way then let me know. Also I updated unit tests but don't know how to build and run them.

closes #28850

jessecarterMOOSE avatar Oct 18 '24 15:10 jessecarterMOOSE

tagging @GiudGiud based on our Slack discussion the other day

jessecarterMOOSE avatar Oct 18 '24 15:10 jessecarterMOOSE

Job Precheck, step Clang format on e7e9e33 wanted to post the following:

Your code requires style changes.

A patch was auto generated and copied here
You can directly apply the patch by running, in the top level of your repository:

curl -s https://mooseframework.inl.gov/docs/PRs/28886/clang_format/style.patch | git apply -v

Alternatively, with your repository up to date and in the top level of your repository:

git clang-format b3924ece4ed556a7ca9811a6e046eb5c4503df72

moosebuild avatar Oct 18 '24 15:10 moosebuild

Job Documentation, step Docs: sync website on acd2f4b wanted to post the following:

View the site here

This comment will be updated on new commits.

moosebuild avatar Oct 18 '24 18:10 moosebuild

Job Coverage, step Generate coverage on 4ded675 wanted to post the following:

Framework coverage

b3924e #28886 4ded67
Total Total +/- New
Rate 85.05% 85.05% +0.00% 94.87%
Hits 106298 106294 -4 37
Misses 18691 18687 -4 2

Diff coverage report

Full coverage report

Modules coverage

Coverage did not change

Full coverage reports

Reports

This comment will be updated on new commits.

moosebuild avatar Oct 18 '24 22:10 moosebuild

Test failures are unrelated

GiudGiud avatar Oct 23 '24 13:10 GiudGiud

thanks @GiudGiud

jessecarterMOOSE avatar Oct 23 '24 15:10 jessecarterMOOSE