Mimetic Operators Library Enhanced 4.0
Loading...
Searching...
No Matches
divergence.h
Go to the documentation of this file.
1#ifndef DIVERGENCE_H
2#define DIVERGENCE_H
3
4#include <cassert>
5#include "utils.h"
6
7class Divergence : public sp_mat
8{
9
10public:
11 using sp_mat::operator=;
12
13 // 1-D Constructor
14 Divergence(u16 k, u32 m, Real dx);
15 // 2-D Constructor
16 Divergence(u16 k, u32 m, u32 n, Real dx, Real dy);
17 // 3-D Constructor
18 Divergence(u16 k, u32 m, u32 n, u32 o, Real dx, Real dy, Real dz);
19 // Returns weights
20 vec getQ();
21
22private:
23 vec Q;
24};
25
26#endif // DIVERGENCE_H
Divergence(u16 k, u32 m, Real dx)
Definition divergence.cpp:4
double Real
Definition utils.h:8