|
PISM, A Parallel Ice Sheet Model stable 0.4.1779
|
#include <flowlaw_factory.hh>
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 |
Definition at line 32 of file flowlaw_factory.hh.
| 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().
| ~IceFlowLawFactory | ( | ) |
Definition at line 42 of file flowlaw_factory.cc.
References type_list.
| 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] |
Definition at line 85 of file flowlaw_factory.cc.
References create_arr(), create_arrwarm(), create_custom(), create_gpbld(), create_hooke(), create_hybrid(), create_pb(), ICE_ARR, ICE_ARRWARM, ICE_CUSTOM, ICE_GPBLD, ICE_HOOKE, ICE_HYBRID, ICE_PB, registerType(), and type_list.
Referenced by IceFlowLawFactory().
| 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[] | ) |
Definition at line 104 of file flowlaw_factory.cc.
References comm, type_list, and type_name.
Referenced by IceMISMIPModel::allocate_flowlaw(), IceEISModel::allocate_flowlaw(), IceFlowLawFactory(), IceModel::IceModel(), main(), IceCompModel::setFromOptions(), setFromOptions(), and IceModel::setFromOptions().
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] |
Definition at line 46 of file flowlaw_factory.hh.
Referenced by create(), registerAll(), registerType(), setFromOptions(), setType(), and ~IceFlowLawFactory().
char type_name[256] [private] |
Definition at line 45 of file flowlaw_factory.hh.
Referenced by create(), setFromOptions(), and setType().
1.7.3