-
Notifications
You must be signed in to change notification settings - Fork 34
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
Fix compilation error on mac sequoia. #1305
Conversation
/style |
@@ -396,7 +396,7 @@ private: | |||
{ | |||
} | |||
|
|||
void Mult(const mfem::Vector& x, mfem::Vector& y) const { form_.GradientMult(x, y); } | |||
void Mult(const mfem::Vector& x, mfem::Vector& y) const { form_.ActionOfGradient(x, y, which_argument); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work?
void Mult(const mfem::Vector& x, mfem::Vector& y) const { form_.ActionOfGradient(x, y, which_argument); } | |
void Mult(const mfem::Vector& x, mfem::Vector& y) const { y[0] = form_.ActionOfGradient(x, which_argument); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or maybe just delete this Mult method, since this Gradient type isn't an mfem::Operator anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went with delete. Seems it was unused. Interesting that the newer clang catches that as a warning/error.
No description provided.