Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F67253227
non_linear_solver_petsc.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jun 21, 05:19
Size
1 KB
Mime Type
text/x-c++
Expires
Sun, Jun 23, 05:19 (2 d)
Engine
blob
Format
Raw Data
Handle
18334101
Attached To
rAKA akantu
non_linear_solver_petsc.hh
View Options
/* -------------------------------------------------------------------------- */
#include "non_linear_solver.hh"
#include "petscsnes.h"
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_NON_LINEAR_SOLVER_PETSC_HH__
#define __AKANTU_NON_LINEAR_SOLVER_PETSC_HH__
namespace
akantu
{
class
NonLinearSolverPETSc
:
NonLinearSolver
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
NonLinearSolverPETSc
(
DOFManagerPETSc
&
dof_manager
,
const
NonLinearSolverType
&
non_linear_solver_type
,
const
ID
&
id
=
"non_linear_solver_petsc"
,
UInt
memory_id
=
0
);
~
NonLinearSolverPETSc
()
override
;
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
/// solve the system described by the jacobian matrix, and rhs contained in
/// the dof manager
void
solve
(
SolverCallback
&
callback
)
override
;
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
DOFManagerPETSc
&
dof_manager
;
SNES
snes
;
};
}
// akantu
#endif
/* __AKANTU_NON_LINEAR_SOLVER_PETSC_HH__ */
Event Timeline
Log In to Comment