-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMesher.hpp
28 lines (22 loc) · 884 Bytes
/
Mesher.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**********************************************************************************************************************
* A simple mesher on start 1D domain.
*
* Created by Michael Lewis on 8/5/20.
*********************************************************************************************************************/
#ifndef MESHER_HPP
#define MESHER_HPP
#include <vector>
class Mesher {
private:
double start, stop, step; // Interval and step size
public:
Mesher();
Mesher(double start_, double stop_, double step_); // Domain of integration
Mesher(const Mesher& mesher);
virtual ~Mesher();
Mesher& operator=(const Mesher& mesher);
// Vectors of mesh points
std::vector<double> xarr();
std::vector<double> xarr(double start_, double stop_, double step_) const;
};
#endif // MESHER_HPP