Loading...
Searching...
No Matches
Go to the documentation of this file.
14#ifndef PLASK__MESH_HYMAN_H
15#define PLASK__MESH_HYMAN_H
26template <
typename T>
struct Hyman {
27 static void filter(T& data,
const T&
a,
const T&
b) {
29 if (data >
lim) data =
lim;
30 else if (data < -
lim) data = -
lim;
34template <>
struct Hyman<dcomplex> {
35 static void filter(dcomplex& data,
const dcomplex&
a,
const dcomplex&
b) {
36 double re = data.real(),
im = data.imag();
39 data = dcomplex(re,
im);