FEApp_CZeroDiscretization.hpp

Go to the documentation of this file.
00001 // $Id: FEApp_CZeroDiscretization.hpp,v 1.2 2007/07/09 17:04:02 etphipp Exp $ 
00002 // $Source: /space/CVS/Trilinos/packages/sacado/example/FEApp/FEApp_CZeroDiscretization.hpp,v $ 
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(
00050      const std::vector<double>& coords,
00051      unsigned int num_equations,
00052      const Teuchos::RCP<const Epetra_Comm>& epetra_comm,
00053      const Teuchos::RCP<Teuchos::ParameterList>& params);
00054 
00056     virtual ~CZeroDiscretization();
00057 
00059     virtual void createMesh();
00060 
00062     virtual void createMaps();
00063 
00065     virtual void createJacobianGraphs();
00066 
00068     virtual Teuchos::RCP<const FEApp::Mesh> 
00069     getMesh() const; 
00070 
00072     virtual Teuchos::RCP<const Epetra_Map> 
00073     getMap() const;
00074 
00076     virtual Teuchos::RCP<const Epetra_Map> 
00077     getOverlapMap() const;
00078 
00080     virtual Teuchos::RCP<const Epetra_CrsGraph> 
00081     getJacobianGraph() const;
00082 
00084     virtual Teuchos::RCP<const Epetra_CrsGraph> 
00085     getOverlapJacobianGraph() const;
00086 
00088     virtual int getNumNodesPerElement() const;
00089 
00090 
00091   private:
00092 
00094     CZeroDiscretization(const CZeroDiscretization&);
00095 
00097     CZeroDiscretization& operator=(const CZeroDiscretization&);
00098 
00099   protected:
00100     
00102     std::vector<double> x;
00103 
00105     Teuchos::RCP<const Epetra_Comm> comm;
00106 
00108     FEApp::ElementFactory elemFactory;
00109 
00111     Teuchos::RCP<FEApp::Mesh> mesh;
00112 
00114     Teuchos::RCP<Epetra_Map> elem_map;
00115 
00117     Teuchos::RCP<Epetra_Map> map;
00118 
00120     Teuchos::RCP<Epetra_Map> overlap_map;
00121 
00123     Teuchos::RCP<Epetra_CrsGraph> graph;
00124 
00126     Teuchos::RCP<Epetra_CrsGraph> overlap_graph;
00127 
00129     unsigned int myPID;
00130 
00132     unsigned int numMyElements;
00133 
00135     unsigned int nodes_per_element;
00136 
00138     unsigned int neq;
00139 
00140   };
00141 
00142 }
00143 
00144 #endif // FEAPP_CZERODISCRETIZATION_HPP

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