Skip to content

Conversation

@aneeshs1729
Copy link

Hello libCEED team

This PR is related to issue #1795. I'm happy to iterate on this further and open to any feedback or suggestions you have. Let me know if there are any style, structural, or interface adjustments you'd like to see!

Thanks a lot for your time

@jeremylt
Copy link
Member

This PR appears to be missing the corresponding hpp file with the QFunction source code like BP1 and BP3 have.

@valeriabarra
Copy link
Contributor

Hi @aneeshs1729 , thank you for your contribution!
Please address Jeremy's comment here. Thank you

Copy link
Member

@jeremylt jeremylt left a comment

Choose a reason for hiding this comment

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

The contents of the files you added do not match how bp1 and bp3 were written. I'm not sure what example you are looking at, but you should look at bp1.cpp, bp1.h, and bp1.hpp in examples/mfem in the libCEED repository.

// 11. destroy
CeedDestroy(&ceed);
return 0;
} No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
}
}

void SaveSolution(const mfem::GridFunction &solution, const std::string &filename);
}

#endif // BIHARMONIC_H No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#endif // BIHARMONIC_H
#endif // BIHARMONIC_H

void SaveSolution(const mfem::GridFunction &solution, const std::string &filename);
}

#endif // BIHARMONIC_HPP No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#endif // BIHARMONIC_HPP
#endif // BIHARMONIC_HPP

@valeriabarra
Copy link
Contributor

@aneeshs1729 , thank you for your work. Are you able to address the reviewer's comments?

@aneeshs1729
Copy link
Author

@aneeshs1729 , thank you for your work. Are you able to address the reviewer's comments?

Hello Professor barra,
Yes, I am working on addressing those. Updates coming soon

@@ -0,0 +1,17 @@
#ifndef BIHARMONIC_HPP
Copy link
Member

Choose a reason for hiding this comment

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

@@ -0,0 +1,20 @@
#ifndef BIHARMONIC_H
Copy link
Member

Choose a reason for hiding this comment

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

Comment on lines +8 to +15
// libCEED + MFEM Example: BP1
//
// This example illustrates a simple usage of libCEED with the MFEM (mfem.org) finite element library.
//
// The example reads a mesh from a file and solves a simple linear system with a mass matrix (L2-projection of a given analytic function provided by
// 'solution'). The mass matrix required for performing the projection is expressed as a new class, CeedMassOperator, derived from mfem::Operator.
// Internally, CeedMassOperator uses a CeedOperator object constructed based on an mfem::FiniteElementSpace.
// All libCEED objects use a Ceed device object constructed based on a command line argument (-ceed).
Copy link
Member

Choose a reason for hiding this comment

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

This biharmonic example is not a BP, so this description needs to be updated

// ./biharmonic -m ../../../mfem/data/inline-segment.mesh -o 8

/// @file
/// MFEM mass operator based on libCEED
Copy link
Member

Choose a reason for hiding this comment

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

this line also needs to be updated

@jeremylt jeremylt added the 0-WIP label May 28, 2025
@CEED CEED locked and limited conversation to collaborators Aug 8, 2025
@CEED CEED unlocked this conversation Aug 8, 2025
@valeriabarra
Copy link
Contributor

Hi @aneeshs1729 , how are you? I was wondering if you intended to complete this PR or if there were any impeding issues that you encountered.

There are a couple of other potential contributors that are eyeing this project and I was wondering if there was a missing interface for which this BP could not be completed or if it was just for personal reasons. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants