Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

massop.hpp

Go to the documentation of this file.
00001 //************************************************************************************//
00002 // Module       : massop.hpp
00003 // Date         : 6/4/02 (DLR)
00004 // Copyright    : 2002-2006 Copyright University Corporation for Atmospheric
00005 //                Research
00006 // Description  : Encapsulates the methods and data associated with
00007 //                the mass (weak Laplacian) linear operator
00008 // Derived From : LinOp.
00009 // Modifications:
00010 //************************************************************************************//
00011 #if !defined(MASSOP_HPP)
00012 #define MASSOP_HPP
00013 
00014 #include "linop.hpp"
00015 #include "diagop.hpp"
00016 #include "elem2d.hpp"
00017 
00018 
00019 class MassOp: public LinOp 
00020 {
00021 public:
00022                            MassOp();
00023                            MassOp(Elem2D *e);
00024 //                         MassOp(const MassOp &);
00025                           ~MassOp();
00026 
00027          GVector           operator*(GVector) ;                   // Multiply operator on the RHS by vector
00028          void              OpVec_prod(GVector &x, GVector &ret); // \* operator, with no vector copy or = 
00029          void              SetElem(Elem2D *);
00030          void              SetMask(GVector *);
00031          void              SetConst(GDOUBLE c);
00032          GVector          *GetDiag();
00033          void              Inverse();
00034 
00035 
00036 //       friend ostream&   operator<<(ostream&, const MassOp&);
00037 
00038 private:
00039          GBOOL            QuadOp    (GVector *x, GVector *newx);
00040          GBOOL            TriangleOp(GVector *x, GVector *newx);
00041          GDOUBLE          cmc_;
00042          GVector          *mask; 
00043          Elem2D           *elem;
00044          DiagOp           *MM;
00045 
00046 };
00047 
00048 #endif

Generated on Wed Dec 21 16:00:48 2005 for Geophysics & Astrophysics Spectral Element Adaptive Refinement (GASpAR) 2D Code by  doxygen 1.4.4