Skip to content

Some small tests for Field2D/3D#776

Merged
bendudson merged 8 commits intonextfrom
fieldmesh_tests
Dec 18, 2017
Merged

Some small tests for Field2D/3D#776
bendudson merged 8 commits intonextfrom
fieldmesh_tests

Conversation

@ZedThree
Copy link
Member

@ZedThree ZedThree commented Dec 8, 2017

Adds some simple tests for Field2D/Field3D:

  • check fieldmesh gets set correctly when copying fields
  • check yup/ydown/deriv fields get created correctly

Also adds UNUSED to some arguments for the new setAttributes methods in DataFormat

@ZedThree ZedThree added the tests label Dec 8, 2017
@ZedThree ZedThree added this to the BOUT-4.2 milestone Dec 8, 2017
}

TEST_F(Field2DTest, CopyCheckFieldmesh) {
int test_nx = 2;
Copy link
Member

Choose a reason for hiding this comment

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

I assume these values are different from the "global" mesh so we're testing that it's definitely using fieldmesh? Would it be more robust to explicitly define these in terms of some difference from the global mesh (e.g. test_nx = global_nx + 2 or similar)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that would probably make it more obvious what's happening, thanks

@bendudson bendudson merged commit 85beb8b into next Dec 18, 2017
@bendudson bendudson deleted the fieldmesh_tests branch December 18, 2017 12:52
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.

3 participants