-
Notifications
You must be signed in to change notification settings - Fork 8
Fix some memory leaks #189
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
Conversation
|
|
||
| tribol::finalize(); | ||
|
|
||
| // delete the jacobian matrix |
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.
was jac not being used?
srwopschall
left a comment
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.
@ebchin - Thanks for throwing this together. Everything looks good, just had some clarification comments so I follow.
| auto dfdx = cs->getMfemJacobianData()->GetMfemDfDxFullJacobian( *cs->getMethodData() ); | ||
| auto dfdn = cs->getMfemJacobianData()->GetMfemDfDnJacobian( *cs->getDfDnMethodData() ); | ||
| auto dndx = cs->getMfemJacobianData()->GetMfemDnDxJacobian( *cs->getDnDxMethodData() ); | ||
| auto dfdx_nconst = std::unique_ptr<mfem::HypreParMatrix>( |
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.
Just to confirm looks like you had a mult embedded in an add and here you just separate them?
| * \brief Destructor | ||
| */ | ||
| ~MethodData() {}; | ||
| virtual ~MethodData() {}; |
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.
Why this change?
| ones.GetMemory().SetHostPtrOwner( false ); | ||
| inactive_sm.SetDataOwner( false ); | ||
| inactive_hpm->SetOwnerFlags( 3, 3, 1 ); | ||
| inactive_hpm->SetOwnerFlags( 3, inactive_hpm->OwnsOffd(), inactive_hpm->OwnsColMap() ); |
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.
Not familiar with this, but we can chat about it.
No description provided.