Chi-Tech
field_copy.h
Go to the documentation of this file.
1#ifndef CHITECH_FIELD_COPY_H
2#define CHITECH_FIELD_COPY_H
3
4#include "field_operation.h"
6
8{
9
10/**Field operaiton that copies components of one field to the
11* components of another.*/
13{
14private:
15 const size_t to_field_handle_;
16 const size_t from_field_handle_;
17
18 std::vector<size_t> to_components_;
19 std::vector<size_t> from_components_;
20
21 std::shared_ptr<FieldFunctionGridBased> to_ff_;
22 std::shared_ptr<const FieldFunctionGridBased> from_ff_;
23
24public:
26
27 explicit FieldCopyOperation(const chi::InputParameters& params);
28
29 void Execute() override;
30};
31
32}
33
34#endif // CHITECH_FIELD_COPY_H
std::shared_ptr< const FieldFunctionGridBased > from_ff_
Definition: field_copy.h:22
FieldCopyOperation(const chi::InputParameters &params)
Definition: field_copy.cc:53
std::shared_ptr< FieldFunctionGridBased > to_ff_
Definition: field_copy.h:21
static chi::InputParameters GetInputParameters()
Definition: field_copy.cc:14