dtk_evaluator.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 
19 
20 #ifndef DTKEVALUATOR_H
21 #define DTKEVALUATOR_H
22 
23 
24 #include "libmesh/libmesh_config.h"
25 
26 #ifdef LIBMESH_HAVE_DTK
27 
29 #include "libmesh/mesh.h"
30 #include "libmesh/system.h"
31 
32 #include <DTK_MeshContainer.hpp>
33 #include <DTK_FieldEvaluator.hpp>
34 #include <DTK_FieldContainer.hpp>
35 
36 #include <Teuchos_RCP.hpp>
37 #include <Teuchos_ArrayRCP.hpp>
38 
39 #include <string>
40 
41 namespace libMesh {
42 
43 class DTKEvaluator : public DataTransferKit::FieldEvaluator<int,DataTransferKit::FieldContainer<double> >
44 {
45 public:
46  typedef DataTransferKit::MeshContainer<int> MeshContainerType;
47  typedef DataTransferKit::FieldContainer<Number> FieldContainerType;
48 
49  DTKEvaluator(System & in_sys, std::string var_name);
50 
51  FieldContainerType evaluate( const Teuchos::ArrayRCP<int>& elements,
52  const Teuchos::ArrayRCP<double>& coords );
53 
54 protected:
59  unsigned int dim;
61  unsigned int var_num;
62  const FEType& fe_type;
63 };
64 
65 } // namespace libMesh
66 
67 #endif // #ifdef LIBMESH_HAVE_DTK
68 
69 #endif // #define DTKEVALUATOR_H

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:04 UTC

Hosted By:
SourceForge.net Logo