TimeSmoothedFields.h
Go to the documentation of this file.
1 // This file is part of the MercuryDPM project (https://www.mercurydpm.org).
2 // Copyright (c), The MercuryDPM Developers Team. All rights reserved.
3 // License: BSD 3-Clause License; see the LICENSE file in the root directory.
4 
5 #ifndef TimeSmoothedFields_H
6 #define TimeSmoothedFields_H
7 
8 #include <GeneralDefine.h>
9 #include <vector>
11 
30 template<class Fields>
32 {
33 public:
34 
38  TimeSmoothedFields(std::size_t n, Mdouble time) : time_(time), sumWeights_(0), fields_(n)
39  {}
40 
45 
49  ~TimeSmoothedFields() = default;
50 
55  std::vector<Fields> fields_;
56 
61 
66 };
67 
68 #endif
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
A helper class for TimeSmoothedCG containing the time-smoothed variables.
Definition: TimeSmoothedFields.h:32
TimeSmoothedFields(std::size_t n, Mdouble time)
Constructor; sets the size of the fields_ vector and time_; sets sumWeights_ to zero.
Definition: TimeSmoothedFields.h:38
~TimeSmoothedFields()=default
Default destructor; does nothing.
Mdouble time_
Definition: TimeSmoothedFields.h:60
Mdouble sumWeights_
Definition: TimeSmoothedFields.h:65
std::vector< Fields > fields_
Definition: TimeSmoothedFields.h:55
TimeSmoothedFields(const TimeSmoothedFields &a)=default
Default copy Constructor; copies all member variables.
const Scalar * a
Definition: level2_cplx_impl.h:32