FEApp_CZeroDiscretization.hpp

Go to the documentation of this file.
00001 // $Id$ 
00002 // $Source$ 
00003 // @HEADER
00004 // ***********************************************************************
00005 // 
00006 //                           Sacado Package
00007 //                 Copyright (2006) Sandia Corporation
00008 // 
00009 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00010 // the U.S. Government retains certain rights in this software.
00011 // 
00012 // This library is free software; you can redistribute it and/or modify
00013 // it under the terms of the GNU Lesser General Public License as
00014 // published by the Free Software Foundation; either version 2.1 of the
00015 // License, or (at your option) any later version.
00016 //  
00017 // This library is distributed in the hope that it will be useful, but
00018 // WITHOUT ANY WARRANTY; without even the implied warranty of
00019 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020 // Lesser General Public License for more details.
00021 //  
00022 // You should have received a copy of the GNU Lesser General Public
00023 // License along with this library; if not, write to the Free Software
00024 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00025 // USA
00026 // Questions? Contact David M. Gay (dmgay@sandia.gov) or Eric T. Phipps
00027 // (etphipp@sandia.gov).
00028 // 
00029 // ***********************************************************************
00030 // @HEADER
00031 
00032 #ifndef FEAPP_CZERODISCRETIZATION_HPP
00033 #define FEAPP_CZERODISCRETIZATION_HPP
00034 
00035 #include <vector>
00036 
00037 #include "Teuchos_ParameterList.hpp"
00038 #include "Epetra_Comm.h"
00039 
00040 #include "FEApp_AbstractDiscretization.hpp"
00041 #include "FEApp_ElementFactory.hpp"
00042 
00043 namespace FEApp {
00044 
00045   class CZeroDiscretization : public FEApp::AbstractDiscretization {
00046   public:
00047 
00049     CZeroDiscretization(const std::vector<double>& coords,
00050                         unsigned int num_equations,
00051                         const Teuchos::RCP<const Epetra_Comm>& epetra_comm,
00052                         const Teuchos::RCP<Teuchos::ParameterList>& params);
00053 
00055     virtual ~CZeroDiscretization();
00056 
00058     virtual void createMesh();
00059 
00061     virtual void createMaps();
00062 
00064     virtual void createJacobianGraphs();
00065 
00067     virtual Teuchos::RCP<const FEApp::Mesh> 
00068     getMesh() const; 
00069 
00071     virtual Teuchos::RCP<const Epetra_Map> 
00072     getMap() const;
00073 
00075     virtual Teuchos::RCP<const Epetra_Map> 
00076     getOverlapMap() const;
00077 
00079     virtual Teuchos::RCP<const Epetra_CrsGraph> 
00080     getJacobianGraph() const;
00081 
00083     virtual Teuchos::RCP<const Epetra_CrsGraph> 
00084     getOverlapJacobianGraph() const;
00085 
00087     virtual int getNumNodesPerElement() const;
00088 
00089 
00090   private:
00091 
00093     CZeroDiscretization(const CZeroDiscretization&);
00094 
00096     CZeroDiscretization& operator=(const CZeroDiscretization&);
00097 
00098   protected:
00099     
00101     std::vector<double> x;
00102 
00104     Teuchos::RCP<const Epetra_Comm> comm;
00105 
00107     FEApp::ElementFactory elemFactory;
00108 
00110     Teuchos::RCP<FEApp::Mesh> mesh;
00111 
00113     Teuchos::RCP<Epetra_Map> elem_map;
00114 
00116     Teuchos::RCP<Epetra_Map> map;
00117 
00119     Teuchos::RCP<Epetra_Map> overlap_map;
00120 
00122     Teuchos::RCP<Epetra_CrsGraph> graph;
00123 
00125     Teuchos::RCP<Epetra_CrsGraph> overlap_graph;
00126 
00128     unsigned int myPID;
00129 
00131     unsigned int numMyElements;
00132 
00134     unsigned int nodes_per_element;
00135 
00137     unsigned int neq;
00138 
00139   };
00140 
00141 }
00142 
00143 #endif // FEAPP_CZERODISCRETIZATION_HPP

Generated on Wed May 12 21:39:32 2010 for Sacado Package Browser (Single Doxygen Collection) by  doxygen 1.4.7