Public Member Functions | |
| DiscreteFunction (const DiscreteSpace &space, const std::string &name="") | |
| DiscreteFunction (const DiscreteSpace &space, const Vector< double > &vec, const std::string &name="") | |
| DiscreteFunction (const DiscreteSpace &space, const double &constantValue, const std::string &name="") | |
| DiscreteFunction (const DiscreteSpace &space, const Array< string > &names) | |
| DiscreteFunction (const DiscreteSpace &space, const Vector< double > &vec, const Array< string > &names) | |
| DiscreteFunction (const DiscreteSpace &space, const double &constantValue, const Array< string > &name) | |
| void | updateGhosts () const |
| void | setVector (const Vector< double > &vec) |
| const Vector< double > & | getVector () const |
| const DiscreteSpace & | discreteSpace () const |
| const Mesh & | mesh () const |
| const RCP< DOFMapBase > & | map () const |
| RCP< GhostView< double > > | ghostView () const |
| const DiscreteFunctionData * | data () const |
| virtual | ~DiscreteFunction () |
Static Public Member Functions | |
| static const DiscreteFunction * | discFunc (const Expr &expr) |
| static DiscreteFunction * | discFunc (Expr &expr) |
Related Functions | |
(Note that these are not member functions.) | |
| void | updateDiscreteFunction (const Expr &newVals, Expr oldVals) |
| Expr | copyDiscreteFunction (const Expr &u0, const string &name="") |
| void | addVecToDiscreteFunction (Expr u, const Vector< double > &v) |
| Vector< double > | getDiscreteFunctionVector (const Expr &u) |
| void | setDiscreteFunctionVector (Expr u, const Vector< double > &v) |
| Mesh | getDiscreteFunctionMesh (const Expr &u) |
| DiscreteSpace | getDiscreteSpace (const Expr &u) |
Handleable interface | |
| RCP< DiscreteFunctionData > | data_ |
| RCP< const MapStructure > | getLocalValues (int cellDim, const Array< int > &cellLID, Array< Array< double > > &localValues) const |
| RCP< DiscreteFuncDataStub > | getRCP (DiscreteFunctionData *ptr) |
DiscreteFunction represents a function that is discretized on a finite-element space.
Definition at line 62 of file SundanceDiscreteFunction.hpp.
| Sundance::DiscreteFunction::DiscreteFunction | ( | const DiscreteSpace & | space, |
| const std::string & | name = "" |
||
| ) |
| Sundance::DiscreteFunction::DiscreteFunction | ( | const DiscreteSpace & | space, |
| const Vector< double > & | vec, | ||
| const std::string & | name = "" |
||
| ) |
| Sundance::DiscreteFunction::DiscreteFunction | ( | const DiscreteSpace & | space, |
| const double & | constantValue, | ||
| const std::string & | name = "" |
||
| ) |
| Sundance::DiscreteFunction::DiscreteFunction | ( | const DiscreteSpace & | space, |
| const Array< string > & | names | ||
| ) |
Definition at line 87 of file SundanceDiscreteFunction.cpp.
References data_, Sundance::DiscreteFunctionStub::dataStub(), and Sundance::dfCtorTimer().
| Sundance::DiscreteFunction::DiscreteFunction | ( | const DiscreteSpace & | space, |
| const Vector< double > & | vec, | ||
| const Array< string > & | names | ||
| ) |
Definition at line 140 of file SundanceDiscreteFunction.cpp.
References data_, Sundance::DiscreteFunctionStub::dataStub(), and Sundance::dfCtorTimer().
| Sundance::DiscreteFunction::DiscreteFunction | ( | const DiscreteSpace & | space, |
| const double & | constantValue, | ||
| const Array< string > & | name | ||
| ) |
Definition at line 113 of file SundanceDiscreteFunction.cpp.
References data_, Sundance::DiscreteFunctionStub::dataStub(), and Sundance::dfCtorTimer().
| virtual Sundance::DiscreteFunction::~DiscreteFunction | ( | ) | [inline, virtual] |
virtual destructor
Definition at line 122 of file SundanceDiscreteFunction.hpp.
| const DiscreteFunctionData* Sundance::DiscreteFunction::data | ( | ) | const [inline] |
Definition at line 118 of file SundanceDiscreteFunction.hpp.
References data_.
Referenced by Sundance::ExprFieldWrapper::ExprFieldWrapper().
| const DiscreteFunction * Sundance::DiscreteFunction::discFunc | ( | const Expr & | expr | ) | [static] |
Definition at line 172 of file SundanceDiscreteFunction.cpp.
References Playa::Handle< PointerType >::ptr(), and Sundance::ExprBase::typeName().
Referenced by Sundance::AToCDensitySampler::addToCounts(), Sundance::FunctionalEvaluator::fdGradientCheck(), Sundance::AToCDensitySampler::init(), Sundance::readNodalFields(), Sundance::readSerialGridField(), Sundance::AToCDensitySampler::sample(), Sundance::unfoldPeriodicDiscreteFunction(), and Sundance::CToAInterpolator::updateField().
| DiscreteFunction * Sundance::DiscreteFunction::discFunc | ( | Expr & | expr | ) | [static] |
Definition at line 187 of file SundanceDiscreteFunction.cpp.
References Playa::Handle< PointerType >::ptr().
| const DiscreteSpace& Sundance::DiscreteFunction::discreteSpace | ( | ) | const [inline] |
Definition at line 105 of file SundanceDiscreteFunction.hpp.
References data_.
Referenced by Sundance::copyDiscreteFunction(), Sundance::ExprFieldWrapper::ExprFieldWrapper(), Sundance::getDiscreteSpace(), map(), mesh(), and Sundance::unfoldPeriodicDiscreteFunction().
| RCP< const MapStructure > Sundance::DiscreteFunction::getLocalValues | ( | int | cellDim, |
| const Array< int > & | cellLID, | ||
| Array< Array< double > > & | localValues | ||
| ) | const |
Definition at line 163 of file SundanceDiscreteFunction.cpp.
References data_, and Sundance::getLocalValsTimer().
| RCP< DiscreteFuncDataStub > Sundance::DiscreteFunction::getRCP | ( | DiscreteFunctionData * | ptr | ) | [private] |
Definition at line 200 of file SundanceDiscreteFunction.cpp.
| const Vector<double>& Sundance::DiscreteFunction::getVector | ( | ) | const [inline] |
Definition at line 101 of file SundanceDiscreteFunction.hpp.
References data_.
Referenced by Sundance::AToCDensitySampler::addToCounts(), Sundance::copyDiscreteFunction(), Sundance::FunctionalEvaluator::fdGradientCheck(), Sundance::getDiscreteFunctionVector(), Sundance::AToCDensitySampler::init(), Sundance::readNodalFields(), Sundance::readSerialGridField(), Sundance::AToCDensitySampler::sample(), and Sundance::CToAInterpolator::updateField().
| RCP<GhostView<double> > Sundance::DiscreteFunction::ghostView | ( | ) | const [inline] |
Definition at line 115 of file SundanceDiscreteFunction.hpp.
References data_.
Referenced by Sundance::FunctionalEvaluator::fdGradientCheck(), and Sundance::unfoldPeriodicDiscreteFunction().
| const RCP<DOFMapBase>& Sundance::DiscreteFunction::map | ( | ) | const [inline] |
Definition at line 112 of file SundanceDiscreteFunction.hpp.
References discreteSpace(), and Sundance::DiscreteSpace::map().
Referenced by Sundance::readNodalFields(), Sundance::readSerialGridField(), and Sundance::CToAInterpolator::updateField().
| const Mesh& Sundance::DiscreteFunction::mesh | ( | ) | const [inline] |
Definition at line 109 of file SundanceDiscreteFunction.hpp.
References discreteSpace(), and Sundance::DiscreteSpace::mesh().
Referenced by Sundance::FunctionalEvaluator::fdGradientCheck(), and Sundance::getDiscreteFunctionMesh().
| void Sundance::DiscreteFunction::setVector | ( | const Vector< double > & | vec | ) |
Definition at line 152 of file SundanceDiscreteFunction.cpp.
References data_.
Referenced by Sundance::FunctionalEvaluator::fdGradientCheck(), Sundance::readNodalFields(), Sundance::readSerialGridField(), and Sundance::setDiscreteFunctionVector().
| void Sundance::DiscreteFunction::updateGhosts | ( | ) | const |
Definition at line 157 of file SundanceDiscreteFunction.cpp.
References data_.
Referenced by Sundance::unfoldPeriodicDiscreteFunction().
| void addVecToDiscreteFunction | ( | Expr | u, |
| const Vector< double > & | v | ||
| ) | [related] |
Add a vector v to the vector underlying the discrete function u.
Definition at line 218 of file SundanceDiscreteFunction.cpp.
Referenced by inlineNewtonSolve(), and main().
| Expr copyDiscreteFunction | ( | const Expr & | u0, |
| const string & | name = "" |
||
| ) | [related] |
Make a copy of the discrete function u0. The copy will have a shallow copy of u0's space, and a deep copy of u0's vector.
Definition at line 225 of file SundanceDiscreteFunction.cpp.
Referenced by main().
| Mesh getDiscreteFunctionMesh | ( | const Expr & | u | ) | [related] |
Get the mesh underlying a discrete function
Definition at line 335 of file SundanceDiscreteFunction.cpp.
| Vector< double > getDiscreteFunctionVector | ( | const Expr & | u | ) | [related] |
Get a shallow copy of the vector underlying a discrete function
Definition at line 300 of file SundanceDiscreteFunction.cpp.
Referenced by main().
| DiscreteSpace getDiscreteSpace | ( | const Expr & | u | ) | [related] |
Get the discrete space on which a discrete function is defined
Definition at line 365 of file SundanceDiscreteFunction.cpp.
| void setDiscreteFunctionVector | ( | Expr | u, |
| const Vector< double > & | v | ||
| ) | [related] |
Set the vector underlying a discrete function
Definition at line 263 of file SundanceDiscreteFunction.cpp.
Referenced by main().
| void updateDiscreteFunction | ( | const Expr & | newVals, |
| Expr | oldVals | ||
| ) | [related] |
Replace the vector in oldVals with the vector from newVals.
Definition at line 209 of file SundanceDiscreteFunction.cpp.
Referenced by main().
RCP<DiscreteFunctionData> Sundance::DiscreteFunction::data_ [private] |
Reimplemented from Sundance::DiscreteFunctionStub.
Definition at line 138 of file SundanceDiscreteFunction.hpp.
Referenced by data(), DiscreteFunction(), discreteSpace(), getLocalValues(), getVector(), ghostView(), setVector(), and updateGhosts().