summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2016-04-06 20:21:39 +0200
committerPaweł Redman <pawel.redman@gmail.com>2016-04-06 20:21:39 +0200
commitd2a866934a9cef292908c0456366cfbc59abea9d (patch)
treed7792139fcba8220360fc878aed5e95b544e1cc7
parentd44eacf9e805904867dd28524ff2b76540cb6ae1 (diff)
Better PML falloff.
-rw-r--r--src/physics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/physics.c b/src/physics.c
index 0946b06..38f9c88 100644
--- a/src/physics.c
+++ b/src/physics.c
@@ -18,7 +18,7 @@ static void phy_calc_fc(float *fc, size_t *x, size_t *widths,
else
continue;
- fc[i] = EPS_ZERO / (2 * dt) * sin(0.5f * M_PI * f);
+ fc[i] = EPS_ZERO / (2 * dt) * pow(f, 3);
}
}