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

Add a test to instrument Linear Operator. #16294

Merged
merged 2 commits into from Nov 25, 2023
Merged

Conversation

bangerth
Copy link
Member

There was a question on the mailing list about how to find out when a LinearOperator function is called. This patch adds a test that checks one way of instrumenting things, and adds documentation about it as well.

Comment on lines 107 to 112
lo_S_inv.vmult = [base_vmult = lo_S_inv.vmult](Vector<double> &dst,
const Vector<double> &src)
{
deallog << "Calling lo_S_inv.vmult()" << std::endl;
base_vmult(dst, src);
};
Copy link
Member Author

Choose a reason for hiding this comment

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

This and the corresponding blocks below are the additions to the test, compared to schur_complement_01.cc.

@kronbichler kronbichler merged commit 3b22468 into dealii:master Nov 25, 2023
14 of 15 checks passed
@bangerth bangerth deleted the test-la branch November 25, 2023 23:55
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.

None yet

2 participants