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

Check DataFile grid sizes match those in existing mesh #2145

Merged
merged 1 commit into from
Nov 20, 2020

Conversation

ZedThree
Copy link
Member

Fixes #2141

@ZedThree ZedThree added bugfix small-change Changes less than 100 lines - should be quick to review labels Nov 18, 2020
@ZedThree ZedThree added this to the BOUT-5.0 milestone Nov 18, 2020
namespace {
// Read a value from file and check it matches reference_value, throw if not
void checkGridValue(DataFormat* file, const std::string& name,
const std::string& filename, const int reference_value) {
Copy link
Contributor

Choose a reason for hiding this comment

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

unneeded const on int?

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes no different to the signature, but the local variable is const :)

Copy link
Contributor

@bendudson bendudson left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@johnomotani johnomotani left a comment

Choose a reason for hiding this comment

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

Looks good to me. Would have told me exactly what the problem was that led me to open #2141

@johnomotani johnomotani added the backport candidiate Does not break backward compatibility, so can be back-ported to v4.4 label Nov 18, 2020
@ZedThree
Copy link
Member Author

Failing test is just Fedora build that we fixed today

@ZedThree ZedThree merged commit d3040e5 into next Nov 20, 2020
@ZedThree ZedThree deleted the check-datafile-grid-sizes branch November 20, 2020 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport candidiate Does not break backward compatibility, so can be back-ported to v4.4 bugfix small-change Changes less than 100 lines - should be quick to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants