#include <UserDef.h>
Public Member Functions | |
UserDef (string &args, const Parameters *p, const PDE &pde) throw (InitCond::Exception&) | |
Creates initial condition. | |
virtual GReal_t | getTime () const |
Gets the time parameter at the initialization. | |
Protected Member Functions | |
void | init (PDE *pde, GReal_t x, FieldWrapper &phi) throw (InitCond::Exception&) |
Initializes the grid at the specified point. |
gridripper::amr1d::initcond::UserDef::UserDef | ( | string & | args, | |
const Parameters * | p, | |||
const PDE & | pde | |||
) | throw (InitCond::Exception&) |
virtual GReal_t gridripper::amr1d::initcond::UserDef::getTime | ( | ) | const [inline, virtual] |
Gets the time parameter at the initialization.
The default implementation returns 0.
Reimplemented from gridripper::amr1d::FuncInitCond.
void gridripper::amr1d::initcond::UserDef::init | ( | PDE * | pde, | |
GReal_t | x, | |||
FieldWrapper & | phi | |||
) | throw (InitCond::Exception&) [protected, virtual] |
Initializes the grid at the specified point.
pde | the PDE | |
x | the x coordinate | |
phi | output array for the field values |
Implements gridripper::amr1d::FuncInitCond.
Reimplemented in gridripper::amr1d::initcond::ODEShootInit.