Skip to content

Remove mergeYupYdown() - #1287

Closed
johnomotani wants to merge 3 commits into
nextfrom
remove-mergeYupYdown
Closed

Remove mergeYupYdown()#1287
johnomotani wants to merge 3 commits into
nextfrom
remove-mergeYupYdown

Conversation

@johnomotani

Copy link
Copy Markdown
Contributor

Field3D::mergeYupYdown() was used to set yup/ydown to point to the field itself. Was used by ParallelTransformIdentity. It is unnecessary because there are field-aligned versions of all the operators, which can be used when hasYupYdown()==false.

Removing the method simplifies several conditionals, which can now be just 'var.hasYupYdown()' where previously they also had to check 'var.yup() != var' and 'var.ydown() != var'.

Also rename 'splitYupYdown()' to 'createYupYdown()' since it no longer makes sense to contrast 'split' with 'merge'.

This was used to set yup/ydown to point to the field itself. Used by
ParallelTransformIdentity. It is unnecessary because there are
field-aligned versions of all the operators, which can be used when
hasYupYdown()==false.

Removing the method simplifies several tests, which can now be just
'var.hasYupYdown()' where previously they also had to check 'var.yup()
!= var' and 'var.ydown() != var'.

Also rename 'splitYupYdown()' to 'createYupYdown()' since it no longer
makes sense to contrast 'split' with 'merge'.
Allows this method to be used for fields that do not have yup/ydown.
@ZedThree

Copy link
Copy Markdown
Member

This is backwards incompatible, so probably not going to get in just yet, but plausibly soon.

@d7919

d7919 commented Oct 5, 2018

Copy link
Copy Markdown
Member

Presumably if we wish to remove things in the next version we should deprecate them in v4.2 so you may want to explore deprecating this now so that you're able to remove for v4.3?

@d7919 d7919 added this to the BOUT-4.3 milestone Oct 9, 2018
johnomotani added a commit that referenced this pull request Oct 13, 2018
splitYupYdown() is still present, but also deprecated.

These are deprecated so we can remove them in v4.3, see PR #1287.
@johnomotani

Copy link
Copy Markdown
Contributor Author

Closing: see discussion in #1321.

@johnomotani
johnomotani deleted the remove-mergeYupYdown branch March 11, 2019 10:03
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