Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_FieldPattern.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Panzer: A partial differential equation assembly
4 // engine for strongly coupled complex multiphysics systems
5 //
6 // Copyright 2011 NTESS and the Panzer contributors.
7 // SPDX-License-Identifier: BSD-3-Clause
8 // *****************************************************************************
9 // @HEADER
10 
11 #ifndef __Panzer_FieldPattern_hpp__
12 #define __Panzer_FieldPattern_hpp__
13 
14 #include <ostream>
15 #include <vector>
16 
17 #include "Shards_CellTopology.hpp"
18 
19 namespace panzer {
20 
21 class FieldPattern {
22 public:
24  virtual ~FieldPattern() = 0;
25 
35  virtual int getSubcellCount(int dim) const = 0;
36 
48  virtual const std::vector<int> & getSubcellIndices(int dim,int cellIndex) const = 0;
49 
60  virtual void getSubcellClosureIndices(int dim,int cellIndex,std::vector<int> & indices) const = 0;
61 
66  virtual int getDimension() const = 0;
67 
70  virtual shards::CellTopology getCellTopology() const = 0;
71 
80  virtual int numberIds() const;
81 
88  virtual bool sameGeometry(const FieldPattern & fp) const;
89 
98  virtual bool consistentSubcells() const;
99 
104  virtual void print(std::ostream & os) const;
105 
106  /* Compare two field patterns, a call to <code>sameGeometry()</code>
107  * must return true and calls to <code>getSubcellIndices()</code> must
108  * return the equivalent vectors
109  */
110  virtual bool equals(const FieldPattern & fp) const;
111 };
112 
114 std::ostream & operator<<(std::ostream & os,const FieldPattern & fp);
115 
116 }
117 
118 #endif
virtual int getDimension() const =0
virtual bool sameGeometry(const FieldPattern &fp) const
virtual void getSubcellClosureIndices(int dim, int cellIndex, std::vector< int > &indices) const =0
virtual bool consistentSubcells() const
virtual int numberIds() const
virtual ~FieldPattern()=0
Do nothing destructor.
virtual void print(std::ostream &os) const
virtual bool equals(const FieldPattern &fp) const
virtual shards::CellTopology getCellTopology() const =0
std::ostream & operator<<(std::ostream &os, const AssemblyEngineInArgs &in)
virtual const std::vector< int > & getSubcellIndices(int dim, int cellIndex) const =0
virtual int getSubcellCount(int dim) const =0