SheafSystem  0.0.0.0
average_push_action.h
Go to the documentation of this file.
1 
2 //
3 // Copyright (c) 2014 Limit Point Systems, Inc.
4 //
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17 
20 
21 #ifndef AVERAGE_PUSH_ACTION_H
22 #define AVERAGE_PUSH_ACTION_H
23 
24 #ifndef SHEAF_DLL_SPEC_H
25 #include "SheafSystem/sheaf_dll_spec.h"
26 #endif
27 
28 #ifndef SECTION_PUSHER_PUSH_ACTION_H
29 #include "SheafSystem/section_pusher_push_action.h"
30 #endif
31 
32 #ifndef BLOCK_H
33 #include "SheafSystem/block.h"
34 #endif
35 
36 namespace fiber_bundle
37 {
38 class sec_vd;
39 }
40 
41 namespace fields
42 {
43 
48 class SHEAF_DLL_SPEC average_push_action : public section_pusher_push_action
49 {
50 
51  // =============================================================================
53  // =============================================================================
55 
56 public:
57 
61  average_push_action(int xdst_df);
62 
63  // Copy constructor; default memberwise copy constructor will do.
64 
68  virtual ~average_push_action();
69 
70 protected:
71 
76 
81 
86 
90  int _disc_ct;
91 
92 private:
93 
98 
100 
101 
102  // =============================================================================
104  // =============================================================================
106 
107 public:
108 
112  virtual void operator()(pullback_map::iterator& xitr,
113  sec_vd& xdst,
114  block<sec_vd_dof_type>& xdst_dofs);
115 
119  virtual void initialize(sec_vd& xdst);
120 
124  virtual void finalize(sec_vd& xdst);
125 
126 
128 
129 
130  // =============================================================================
132  // =============================================================================
134 
135 public:
136 
140  virtual bool is_ancestor_of(const any* xother) const;
141 
146  virtual average_push_action* clone() const;
147 
151  virtual average_push_action& operator=(const section_pusher_push_action& xother);
152 
156  average_push_action& operator=(const average_push_action& xother);
157 
161  virtual bool invariant() const;
162 
164 
165 };
166 
167 // =============================================================================
168 // NON-MEMBER FUNCTIONS
169 // =============================================================================
170 
171 } // namespace fields
172 
173 #endif // ifndef AVERAGE_PUSH_ACTION_H
Abstract functor to compute the dofs at a destination discretization point.
Namespace for fields component of sheaf system.
block< int > _branch_cts
Number of branches accumulated for each discretization member.
An abstract handle to a space of alternate integer identifiers (aliases) for a subset of a hub set of...
block< sec_vd_dof_type > _dst_dofs
Buffer for destination dofs.
Abstract base class with useful features for all objects.
Definition: any.h:39
A section of a fiber bundle with a d-dimensional vector space fiber.
Definition: sec_vd.h:54
index_space_handle * _disc_seq_id_space
Discretization sequence id space for destination section.
int _disc_ct
Discretization count of destination.
Functor to compute the dofs at a destination discretization point by averaging the source values form...
Namespace for the fiber_bundles component of the sheaf system.