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

remove explicit default destructor from core classes #413

Merged
merged 6 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions include/sundials/sundials_linearsolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ struct _generic_SUNLinearSolver_Ops
SUNErrCode (*space)(SUNLinearSolver, long int*, long int*);
N_Vector (*resid)(SUNLinearSolver);
SUNErrCode (*free)(SUNLinearSolver);
#ifdef __cplusplus
_generic_SUNLinearSolver_Ops() = default;
#endif
};

/* A linear solver is a structure with an implementation-dependent
Expand All @@ -141,9 +138,6 @@ struct _generic_SUNLinearSolver
void* content;
SUNLinearSolver_Ops ops;
SUNContext sunctx;
#ifdef __cplusplus
_generic_SUNLinearSolver() = default;
#endif
};

/* -----------------------------------------------------------------
Expand Down
6 changes: 0 additions & 6 deletions include/sundials/sundials_matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ struct _generic_SUNMatrix_Ops
SUNErrCode (*matvecsetup)(SUNMatrix);
SUNErrCode (*matvec)(SUNMatrix, N_Vector, N_Vector);
SUNErrCode (*space)(SUNMatrix, long int*, long int*);
#ifdef __cplusplus
_generic_SUNMatrix_Ops() = default;
#endif
};

/* A matrix is a structure with an implementation-dependent
Expand All @@ -107,9 +104,6 @@ struct _generic_SUNMatrix
void* content;
SUNMatrix_Ops ops;
SUNContext sunctx;
#ifdef __cplusplus
_generic_SUNMatrix() = default;
#endif
};

/* -----------------------------------------------------------------
Expand Down
6 changes: 0 additions & 6 deletions include/sundials/sundials_nonlinearsolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ struct _generic_SUNNonlinearSolver_Ops
SUNErrCode (*getnumiters)(SUNNonlinearSolver, long int*);
SUNErrCode (*getcuriter)(SUNNonlinearSolver, int*);
SUNErrCode (*getnumconvfails)(SUNNonlinearSolver, long int*);
#ifdef __cplusplus
_generic_SUNNonlinearSolver_Ops() = default;
#endif
};

/* A nonlinear solver is a structure with an implementation-dependent 'content'
Expand All @@ -126,9 +123,6 @@ struct _generic_SUNNonlinearSolver
void* content;
SUNNonlinearSolver_Ops ops;
SUNContext sunctx;
#ifdef __cplusplus
_generic_SUNNonlinearSolver() = default;
#endif
};

/* -----------------------------------------------------------------------------
Expand Down
7 changes: 0 additions & 7 deletions include/sundials/sundials_nvector.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,6 @@ struct _generic_N_Vector_Ops
/* Debugging functions (called when SUNDIALS_DEBUG_PRINTVEC is defined). */
void (*nvprint)(N_Vector);
void (*nvprintfile)(N_Vector, FILE*);

#ifdef __cplusplus
_generic_N_Vector_Ops() = default;
#endif
};

/* A vector is a structure with an implementation-dependent
Expand All @@ -203,9 +199,6 @@ struct _generic_N_Vector
void* content;
N_Vector_Ops ops;
SUNContext sunctx;
#ifdef __cplusplus
_generic_N_Vector() = default;
#endif
};

/* -----------------------------------------------------------------
Expand Down
Loading