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

Fix compilation error on mac sequoia. #1305

Merged
merged 2 commits into from
Jan 3, 2025
Merged

Conversation

tupek2
Copy link
Collaborator

@tupek2 tupek2 commented Jan 2, 2025

No description provided.

@tupek2
Copy link
Collaborator Author

tupek2 commented Jan 2, 2025

/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); }
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this work?

Suggested change
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); }

Copy link
Contributor

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

Copy link
Collaborator Author

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.

@tupek2 tupek2 requested a review from samuelpmishLLNL January 3, 2025 17:01
@tupek2 tupek2 merged commit 39edf64 into develop Jan 3, 2025
13 checks passed
@btalamini btalamini deleted the tupek/mac_compile_fix branch January 3, 2025 17:31
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.

4 participants