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

IceFlowLawFactory Class Reference

#include <flowlaw_factory.hh>

List of all members.

Public Member Functions

 IceFlowLawFactory (MPI_Comm, const char prefix[], const NCConfigVariable &conf)
 ~IceFlowLawFactory ()
PetscErrorCode setType (const char[])
PetscErrorCode setFromOptions ()
PetscErrorCode registerType (const char[], PetscErrorCode(*)(MPI_Comm, const char[], const NCConfigVariable &, IceFlowLaw **))
PetscErrorCode create (IceFlowLaw **)

Private Member Functions

PetscErrorCode registerAll ()

Private Attributes

MPI_Comm comm
char prefix [256]
char type_name [256]
PetscFList type_list
const NCConfigVariable & config

Detailed Description

Definition at line 32 of file flowlaw_factory.hh.


Constructor & Destructor Documentation

IceFlowLawFactory ( MPI_Comm  c,
const char  prefix[],
const NCConfigVariable &  conf 
)

Definition at line 25 of file flowlaw_factory.cc.

References comm, ICE_PB, prefix, registerAll(), and setType().

Definition at line 42 of file flowlaw_factory.cc.

References type_list.


Member Function Documentation

PetscErrorCode create ( IceFlowLaw **  inice)

Definition at line 157 of file flowlaw_factory.cc.

References comm, config, prefix, type_list, and type_name.

Referenced by IceModel::allocate_flowlaw(), and main().

PetscErrorCode registerAll ( ) [private]
PetscErrorCode registerType ( const char  tname[],
PetscErrorCode(*)(MPI_Comm, const char[], const NCConfigVariable &, IceFlowLaw **)  icreate 
)

Definition at line 49 of file flowlaw_factory.cc.

References type_list.

Referenced by registerAll().

PetscErrorCode setFromOptions ( )

Definition at line 121 of file flowlaw_factory.cc.

References comm, ICE_HYBRID, prefix, setType(), type_list, and type_name.

Referenced by IceModel::allocate_flowlaw(), and main().

PetscErrorCode setType ( const char  type[])

Member Data Documentation

MPI_Comm comm [private]

Definition at line 44 of file flowlaw_factory.hh.

Referenced by create(), IceFlowLawFactory(), setFromOptions(), and setType().

const NCConfigVariable& config [private]

Definition at line 47 of file flowlaw_factory.hh.

Referenced by create().

char prefix[256] [private]

Definition at line 45 of file flowlaw_factory.hh.

Referenced by create(), IceFlowLawFactory(), and setFromOptions().

PetscFList type_list [private]
char type_name[256] [private]

Definition at line 45 of file flowlaw_factory.hh.

Referenced by create(), setFromOptions(), and setType().


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