|
MADNESS 0.10.1
|
Implements derivatives operators with variety of boundary conditions on simulation domain. More...
#include <derivative.h>


Public Types | |
| typedef std::pair< keyT, coeffT > | argT |
| typedef GenTensor< T > | coeffT |
| holding the node's coeffs (possibly low rank) | |
| typedef WorldContainer< Key< NDIM >, FunctionNode< T, NDIM > > | dcT |
| typedef Function< T, NDIM > | functionT |
| typedef FunctionImpl< T, NDIM > | implT |
| typedef Key< NDIM > | keyT |
| typedef FunctionNode< T, NDIM > | nodeT |
| typedef T | opT |
| typedef Tensor< T > | tensorT |
| Public Types inherited from madness::DerivativeBase< T, NDIM > | |
| typedef std::pair< keyT, coeffT > | argT |
| typedef GenTensor< T > | coeffT |
| holding the node's coeffs (possibly low rank) | |
| typedef WorldContainer< Key< NDIM >, FunctionNode< T, NDIM > > | dcT |
| typedef Function< T, NDIM > | functionT |
| typedef FunctionImpl< T, NDIM > | implT |
| typedef Key< NDIM > | keyT |
| typedef FunctionNode< T, NDIM > | nodeT |
| typedef Tensor< T > | tensorT |
| regular tensors, like rm, etc | |
| Public Types inherited from madness::WorldObject< DerivativeBase< T, NDIM > > | |
| typedef WorldObject< DerivativeBase< T, NDIM > > | objT |
Public Member Functions | |
| Derivative (World &world, std::size_t axis, const BoundaryConditions< NDIM > &bc=FunctionDefaults< NDIM >::get_bc(), const functionT g1=functionT(), const functionT g2=functionT(), int k=FunctionDefaults< NDIM >::get_k()) | |
| Constructs a derivative operator. | |
| virtual | ~Derivative () |
| void | read_from_file (const std::string &filename, unsigned int order=1) |
| void | set_ble1 () |
| void | set_ble2 () |
| void | set_bspline1 () |
| void | set_bspline2 () |
| void | set_bspline3 () |
| void | set_is_first () |
| void | set_is_second () |
| void | set_is_third () |
| Public Member Functions inherited from madness::DerivativeBase< T, NDIM > | |
| DerivativeBase (World &world, std::size_t axis, int k, BoundaryConditions< NDIM > bc) | |
| virtual | ~DerivativeBase () |
| void | do_diff1 (const implT *f, implT *df, const keyT &key, const argT &left, const argT ¢er, const argT &right) const |
| Future< argT > | find_neighbor (const implT *f, const Key< NDIM > &key, int step) const |
| void | forward_do_diff1 (const implT *f, implT *df, const keyT &key, const argT &left, const argT ¢er, const argT &right) const |
| Key< NDIM > | neighbor (const keyT &key, int step) const |
| Function< T, NDIM > | operator() (const functionT &f, bool fence=true) const |
| Differentiate w.r.t. given coordinate (x=0, y=1, ...) with optional fence. | |
| template<typename Archive> | |
| void | serialize (const Archive &ar) const |
| void | stage_halo (const implT *f, bool fence=true) const |
| Push f's remote same-level neighbor coefficients to the ranks that will need them. | |
| void | submit_diff_tasks (const implT *f, implT *df) const |
| Parallel form of FunctionImpl::diff's submission loop; the caller owns the fence. | |
| Public Member Functions inherited from madness::WorldObject< DerivativeBase< T, NDIM > > | |
| WorldObject (const WorldObject &other) | |
| WorldObject (World &world) | |
| Constructor that associates an object (via the derived class) with a globally unique ID. | |
| virtual | ~WorldObject () |
| WorldObject & | operator= (const WorldObject &)=delete |
| detail::task_result_type< memfnT >::futureT | send (ProcessID dest, memfnT memfn) const |
| detail::task_result_type< memfnT >::futureT | send (ProcessID dest, memfnT memfn, const a1T &a1) const |
| detail::task_result_type< memfnT >::futureT | send (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2) const |
| detail::task_result_type< memfnT >::futureT | send (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2, const a3T &a3) const |
| detail::task_result_type< memfnT >::futureT | send (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2, const a3T &a3, const a4T &a4) const |
| detail::task_result_type< memfnT >::futureT | send (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2, const a3T &a3, const a4T &a4, const a5T &a5) const |
| detail::task_result_type< memfnT >::futureT | send (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2, const a3T &a3, const a4T &a4, const a5T &a5, const a6T &a6) const |
| detail::task_result_type< memfnT >::futureT | send (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2, const a3T &a3, const a4T &a4, const a5T &a5, const a6T &a6, const a7T &a7) const |
| detail::task_result_type< memfnT >::futureT | send (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2, const a3T &a3, const a4T &a4, const a5T &a5, const a6T &a6, const a7T &a7, const a8T &a8) const |
| detail::task_result_type< memfnT >::futureT | send (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2, const a3T &a3, const a4T &a4, const a5T &a5, const a6T &a6, const a7T &a7, const a8T &a8, const a9T &a9) const |
| detail::task_result_type< memfnT >::futureT | task (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2, const a3T &a3, const a4T &a4, const a5T &a5, const a6T &a6, const a7T &a7, const a8T &a8, const a9T &a9, const TaskAttributes &attr=TaskAttributes()) const |
| Sends task to derived class method returnT (this->*memfn)(a1,a2,a3,a4,a5,a6,a7,a8,a9). | |
| detail::task_result_type< memfnT >::futureT | task (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2, const a3T &a3, const a4T &a4, const a5T &a5, const a6T &a6, const a7T &a7, const a8T &a8, const TaskAttributes &attr=TaskAttributes()) const |
| Sends task to derived class method returnT (this->*memfn)(a1,a2,a3,a4,a5,a6,a7,a8). | |
| detail::task_result_type< memfnT >::futureT | task (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2, const a3T &a3, const a4T &a4, const a5T &a5, const a6T &a6, const a7T &a7, const TaskAttributes &attr=TaskAttributes()) const |
| Sends task to derived class method returnT (this->*memfn)(a1,a2,a3,a4,a5,a6,a7). | |
| detail::task_result_type< memfnT >::futureT | task (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2, const a3T &a3, const a4T &a4, const a5T &a5, const a6T &a6, const TaskAttributes &attr=TaskAttributes()) const |
| Sends task to derived class method returnT (this->*memfn)(a1,a2,a3,a4,a5,a6). | |
| detail::task_result_type< memfnT >::futureT | task (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2, const a3T &a3, const a4T &a4, const a5T &a5, const TaskAttributes &attr=TaskAttributes()) const |
| Sends task to derived class method returnT (this->*memfn)(a1,a2,a3,a4,a5). | |
| detail::task_result_type< memfnT >::futureT | task (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2, const a3T &a3, const a4T &a4, const TaskAttributes &attr=TaskAttributes()) const |
| Sends task to derived class method returnT (this->*memfn)(a1,a2,a3,a4). | |
| detail::task_result_type< memfnT >::futureT | task (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2, const a3T &a3, const TaskAttributes &attr=TaskAttributes()) const |
| Sends task to derived class method returnT (this->*memfn)(a1,a2,a3). | |
| detail::task_result_type< memfnT >::futureT | task (ProcessID dest, memfnT memfn, const a1T &a1, const a2T &a2, const TaskAttributes &attr=TaskAttributes()) const |
| Sends task to derived class method returnT (this->*memfn)(a1,a2). | |
| detail::task_result_type< memfnT >::futureT | task (ProcessID dest, memfnT memfn, const a1T &a1, const TaskAttributes &attr=TaskAttributes()) const |
| Sends task to derived class method returnT (this->*memfn)(a1). | |
| detail::task_result_type< memfnT >::futureT | task (ProcessID dest, memfnT memfn, const TaskAttributes &attr=TaskAttributes()) const |
| Sends task to derived class method returnT (this->*memfn)(). | |
| Public Member Functions inherited from madness::WorldObjectBase | |
| virtual | ~WorldObjectBase () |
| World & | get_world () const |
| World & | get_world_noexcept () const noexcept |
| Get the world to which this object belongs, without risking a throw. | |
| const uniqueidT & | id () const |
| Returns the globally unique object ID. | |
| bool | world_is_alive () const noexcept |
| Reports whether the world to which this object belongs still exists. | |
Private Types | |
| typedef DerivativeBase< T, NDIM > | baseT |
Private Member Functions | |
| void | do_diff2b (const implT *f, implT *df, const keyT &key, const argT &left, const argT ¢er, const argT &right) const |
| void | do_diff2i (const implT *f, implT *df, const keyT &key, const argT &left, const argT ¢er, const argT &right) const |
| void | initCoefficients () |
Private Attributes | |
| Tensor< double > | bv_left |
| Tensor< double > | bv_right |
| Blocks of the derivative operator for the boundary contribution. | |
| const functionT | g1 |
| Function describing the boundary condition on the right side. | |
| const functionT | g2 |
| Function describing the boundary condition on the left side. | |
| bool | is_second |
| bool | is_third |
| Tensor< double > | left_r0 |
| Blocks of the derivative for the left boundary. | |
| Tensor< double > | left_r0t |
| Blocks of the derivative for the left boundary. | |
| Tensor< double > | left_rm |
| Tensor< double > | left_rmt |
| Tensor< double > | r0 |
| Tensor< double > | r0_bsp |
| Tensor< double > | r0_bsp_t |
| Tensor< double > | r0t |
| Tensor< double > | right_r0 |
| Tensor< double > | right_r0t |
| Tensor< double > | right_rp |
| Blocks of the derivative for the right boundary. | |
| Tensor< double > | right_rpt |
| Blocks of the derivative for the right boundary. | |
| Tensor< double > | rm |
| Tensor< double > | rm_bsp |
| Tensor< double > | rm_bsp_t |
| Tensor< double > | rmt |
| Tensor< double > | rp |
| Blocks of the derivative operator. | |
| Tensor< double > | rp_bsp |
| Tensor< double > | rp_bsp_t |
| Tensor< double > | rpt |
| Blocks of the derivative operator, transposed. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from madness::DerivativeBase< T, NDIM > | |
| static bool | enforce_bc (int bc_left, int bc_right, Level n, Translation &l) |
| Public Attributes inherited from madness::DerivativeBase< T, NDIM > | |
| bool | parallel_submit_ = false |
| Spawn diff's per-node tasks from the task pool instead of the main thread. | |
| Protected Member Functions inherited from madness::WorldObject< DerivativeBase< T, NDIM > > | |
| void | process_pending () |
| To be called from derived constructor to process pending messages. | |
| Protected Member Functions inherited from madness::WorldObjectBase | |
| WorldObjectBase (const WorldObjectBase &other) | |
| Copy constructor; produces an unregistered object. | |
| WorldObjectBase (World &w) | |
| Construct a new WorldObjectBase. | |
| World & | get_world_unchecked () const noexcept |
| Unchecked access to the memoized world reference. | |
| template<typename DerivedT> | |
| void | register_self (DerivedT *this_ptr) |
| Registers this object with its world, making it globally addressable. | |
| Protected Attributes inherited from madness::DerivativeBase< T, NDIM > | |
| const std::size_t | axis |
| Axis along which the operation is performed. | |
| const BoundaryConditions< NDIM > | bc |
| const int | k |
| Number of wavelets of the function. | |
| const std::vector< long > | vk |
| (k,...) used to initialize Tensors | |
| World & | world |
Implements derivatives operators with variety of boundary conditions on simulation domain.
| typedef std::pair<keyT,coeffT> madness::Derivative< T, NDIM >::argT |
|
private |
| typedef GenTensor<T> madness::Derivative< T, NDIM >::coeffT |
holding the node's coeffs (possibly low rank)
| typedef WorldContainer< Key<NDIM> , FunctionNode<T, NDIM> > madness::Derivative< T, NDIM >::dcT |
| typedef Function<T,NDIM> madness::Derivative< T, NDIM >::functionT |
| typedef FunctionImpl<T,NDIM> madness::Derivative< T, NDIM >::implT |
| typedef Key<NDIM> madness::Derivative< T, NDIM >::keyT |
| typedef FunctionNode<T,NDIM> madness::Derivative< T, NDIM >::nodeT |
| typedef T madness::Derivative< T, NDIM >::opT |
| typedef Tensor<T> madness::Derivative< T, NDIM >::tensorT |
|
inline |
Constructs a derivative operator.
| world | The world |
| axis | The direction to differentiate |
| bc | Boundary conditions (default from FunctionDefaults) |
| g1 | Function providing left boundary value (default empty) |
| g2 | Function providing right boundary value (default empty) |
| k | Wavelet order (default from FunctionDefaults) |
|
inlinevirtual |
|
inlineprivatevirtual |
Implements madness::DerivativeBase< T, NDIM >.
|
inlineprivatevirtual |
Implements madness::DerivativeBase< T, NDIM >.
|
inlineprivate |
Referenced by madness::Derivative< double, 1 >::Derivative().
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by madness::Lz< T, NDIM >::operator()().
|
inline |
|
inline |
|
inline |
Referenced by madness::Derivative< double, 1 >::read_from_file().
|
inline |
Referenced by madness::Derivative< double, 1 >::read_from_file().
|
inline |
Referenced by madness::Derivative< double, 1 >::read_from_file().
|
private |
Referenced by madness::Derivative< double, 1 >::initCoefficients().
|
private |
Blocks of the derivative operator for the boundary contribution.
Referenced by madness::Derivative< double, 1 >::initCoefficients().
|
private |
Function describing the boundary condition on the right side.
|
private |
Function describing the boundary condition on the left side.
|
private |
|
private |
|
private |
Blocks of the derivative for the left boundary.
Referenced by madness::Derivative< double, 1 >::initCoefficients().
|
private |
Blocks of the derivative for the left boundary.
|
private |
Referenced by madness::Derivative< double, 1 >::initCoefficients().
|
private |
|
private |
Referenced by madness::Derivative< double, 1 >::initCoefficients().
|
private |
Referenced by madness::Derivative< double, 1 >::read_from_file().
|
private |
|
private |
|
private |
Referenced by madness::Derivative< double, 1 >::initCoefficients().
|
private |
|
private |
Blocks of the derivative for the right boundary.
Referenced by madness::Derivative< double, 1 >::initCoefficients().
|
private |
Blocks of the derivative for the right boundary.
|
private |
Referenced by madness::Derivative< double, 1 >::initCoefficients().
|
private |
Referenced by madness::Derivative< double, 1 >::read_from_file().
|
private |
|
private |
|
private |
Blocks of the derivative operator.
Referenced by madness::Derivative< double, 1 >::initCoefficients().
|
private |
Referenced by madness::Derivative< double, 1 >::read_from_file().
|
private |
|
private |
Blocks of the derivative operator, transposed.