Skip to content

Commit

Permalink
PetscNonlinearSolver destructor should remain defaulted out-of-line
Browse files Browse the repository at this point in the history
  • Loading branch information
jwpeterson committed Jul 26, 2022
1 parent 9362d57 commit a292390
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/solvers/petsc_nonlinear_solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class PetscNonlinearSolver : public NonlinearSolver<T>
/**
* Destructor.
*/
~PetscNonlinearSolver () = default;
~PetscNonlinearSolver ();

/**
* Release all memory and clear data structures.
Expand Down
6 changes: 6 additions & 0 deletions src/solvers/petsc_nonlinear_solver.C
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,12 @@ PetscNonlinearSolver<T>::PetscNonlinearSolver (sys_type & system_in) :
}



template <typename T>
PetscNonlinearSolver<T>::~PetscNonlinearSolver () = default;



template <typename T>
void PetscNonlinearSolver<T>::clear ()
{
Expand Down

0 comments on commit a292390

Please sign in to comment.