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

Revert "Remove deprecation of specifying the direction vector name" #87

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

inducer
Copy link
Owner

@inducer inducer commented Oct 11, 2021

Reverts #81

@@ -1077,6 +1077,10 @@ class DirectionalDerivative(DerivativeBase):
def __init__(self, inner_kernel, dir_vec_name=None):
if dir_vec_name is None:
dir_vec_name = self.directional_kind + "_derivative_dir"
else:
from warnings import warn
Copy link
Owner Author

Choose a reason for hiding this comment

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

Suggested change
from warnings import warn
# Modifying this variable name leads to redundant code generation,
# with kernels only differing in this name.
from warnings import warn

But what about directional derivatives of directional derivatives?

cc @isuruf

@inducer inducer marked this pull request as draft October 11, 2021 18:40
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.

1 participant