PISM, A Parallel Ice Sheet Model stable 0.4.1779
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Static Private Member Functions | Private Attributes

SNESProblem< DOF, U > Class Template Reference

#include <SNESProblem.hh>

List of all members.

Classes

struct  SNESProblemCallbackData

Public Member Functions

 SNESProblem (IceGrid &g)
virtual ~SNESProblem ()
virtual PetscErrorCode solve ()
virtual const char * name ()
virtual Vec solution ()

Protected Member Functions

virtual PetscErrorCode initialize ()
virtual PetscErrorCode setFromOptions ()
virtual PetscErrorCode finalize ()
 Undo the allocations of SSAFEM::allocate_fem; called by the destructor.
virtual PetscErrorCode compute_local_function (DALocalInfo *info, const U **xg, U **yg)=0
virtual PetscErrorCode compute_local_jacobian (DALocalInfo *info, const U **x, Mat B)=0

Protected Attributes

IceGrid & m_grid
Mat m_J
Vec m_X
Vec m_F
SNES m_snes
DA m_DA

Static Private Member Functions

static PetscErrorCode LocalFunction (DALocalInfo *info, const U **x, U **f, SNESProblemCallbackData *)
static PetscErrorCode LocalJacobian (DALocalInfo *info, const U **x, Mat B, SNESProblemCallbackData *)

Private Attributes

SNESProblemCallbackData m_callbackData

Detailed Description

template<int DOF, class U>
class SNESProblem< DOF, U >

Definition at line 26 of file SNESProblem.hh.


Constructor & Destructor Documentation

SNESProblem ( IceGrid &  g)
~SNESProblem ( ) [virtual]

Definition at line 106 of file SNESProblem.hh.


Member Function Documentation

virtual PetscErrorCode compute_local_function ( DALocalInfo *  info,
const U **  xg,
U **  yg 
) [protected, pure virtual]
virtual PetscErrorCode compute_local_jacobian ( DALocalInfo *  info,
const U **  x,
Mat  B 
) [protected, pure virtual]
PetscErrorCode finalize ( ) [protected, virtual]

Undo the allocations of SSAFEM::allocate_fem; called by the destructor.

Definition at line 153 of file SNESProblem.hh.

PetscErrorCode initialize ( ) [protected, virtual]

Definition at line 119 of file SNESProblem.hh.

Referenced by SNESProblem< DOF, U >::SNESProblem().

PetscErrorCode LocalFunction ( DALocalInfo *  info,
const U **  x,
U **  f,
SNESProblemCallbackData  
) [static, private]
PetscErrorCode LocalJacobian ( DALocalInfo *  info,
const U **  x,
Mat  B,
SNESProblemCallbackData  
) [static, private]
const char * name ( ) [virtual]

Definition at line 165 of file SNESProblem.hh.

PetscErrorCode setFromOptions ( ) [protected, virtual]

Definition at line 113 of file SNESProblem.hh.

Referenced by SNESProblem< DOF, U >::SNESProblem().

virtual Vec solution ( ) [inline, virtual]

Definition at line 36 of file SNESProblem.hh.

References SNESProblem< DOF, U >::m_X.

PetscErrorCode solve ( ) [virtual]

Definition at line 171 of file SNESProblem.hh.


Member Data Documentation

Definition at line 68 of file SNESProblem.hh.

DA m_DA [protected]

Definition at line 59 of file SNESProblem.hh.

Vec m_F [protected]

Definition at line 57 of file SNESProblem.hh.

IceGrid& m_grid [protected]

Definition at line 53 of file SNESProblem.hh.

Referenced by SNESProblem< DOF, U >::SNESProblem().

Mat m_J [protected]

Definition at line 55 of file SNESProblem.hh.

SNES m_snes [protected]

Definition at line 58 of file SNESProblem.hh.

Vec m_X [protected]

Definition at line 56 of file SNESProblem.hh.

Referenced by SNESProblem< DOF, U >::solution().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines