#include <source/solvers/vectors/PVodeTrio_SAMRAIVector.h>
Inheritance diagram for SAMRAI::solv::PVodeTrio_SAMRAIVector< DIM >:
Static Public Member Functions | |
static PVodeTrioAbstractVector * | createPVodeTrioVector (tbox::Pointer< SAMRAIVectorReal< DIM, double > > samrai_vec) |
static void | destroyPVodeTrioVector (PVodeTrioAbstractVector *pvode_trio_vec) |
static tbox::Pointer< SAMRAIVectorReal< DIM, double > > | getSAMRAIVector (PVodeTrioAbstractVector *pvode_trio_vec) |
Protected Member Functions | |
PVodeTrio_SAMRAIVector (tbox::Pointer< SAMRAIVectorReal< DIM, double > > samrai_vector) | |
virtual | ~PVodeTrio_SAMRAIVector () |
Observe that there are only three public member functions in this class They are used to create and destroy PVodeTrio vector objects (i.e., "N_Vector"s), and to obtain the SAMRAI vector associated with the PVodeTrio vector. In particular, note that the constructor and destructor of this class are protected members. The construction and destruction of instances of this class may occur only through the static member functions that create and destroy PVodeTrio vector objects.
Finally, we remark that this class provides vectors of type { double}, which is the default for PVodeTrio.
|
|
|
|
|
Create and return a new PVodeTrio vector object. The SAMRAI vector object is wrapped so that it may be manipulated within PVodeTrio as an N_Vector (which is typedef'd to PVodeTrioAbstractVector* in the abstract PVodeTrio vector interface). It is important to note that this function does not allocate storage for the vector data. Data must be allocated through the SAMRAI vector object directly. For output of the data through "N_VPrint" calls, the output stream to which the SAMRAI vector object writes will be used. |
|
Destroy a given PVodeTrio vector object. It is important to note that this function does not deallocate storage for the vector data. Vector data must be deallocated hrough the SAMRAI vector object. |
|
Return pointer to the SAMRAI vector object associated with the given PVodeTrio vector. |