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

PR for partial fix for Issue 20 (Added helper function) #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aneeshs1729
Copy link
Contributor

Added a helper function to calculate the interior row for a kth order mimetic operator for large k. which partially solves 20

Added a helper function to calculate the interior row for a kth order mimetic operator for large k. which partially solves 20
src/cpp/utils.h Outdated

/**
* @brief Calculates the interior row for the kth order central finite difference scheme. This is in utils because
*Both the gradient and interior operators need to use this for large k
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you need a space here to render this via Doxygen doc, i.e.,

Suggested change
*Both the gradient and interior operators need to use this for large k
* Both the gradient and interior operators need to use this for large k

…n it.

Added documentation that the way my kthordercentraldiff function works is that it writes the second order interior operator, delta_h(f)=(f(x+h/2)-f(x-h/2))/h=(2*sinh(h/2*d/dx))/(h)*f. And then doing formal power series inversion to get d/dx out.
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.

2 participants