From 1215dd66a85ec843baa2d56ecffee61871924b3f Mon Sep 17 00:00:00 2001 From: Jan Thorbecke <janth@xs4all.nl> Date: Thu, 5 Jul 2018 16:15:43 +0200 Subject: [PATCH] added smoothing on 4x oversampled grid to reduce straircase effect in FD --- utils/makemod.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/makemod.c b/utils/makemod.c index 9e3a93d..bc40a1a 100644 --- a/utils/makemod.c +++ b/utils/makemod.c @@ -87,6 +87,7 @@ char *sdoc[] = { " OUTPUT ", " writeint=0 ............... interfaces as function of x (ext: _int)", " supersmooth=0 ............ samples at dx/4 and apply 5x5 smoothing operator(1)", + " sigma=0.8 ................ smoothing value, higher values gives more smoothing", " reflectivity=0 ........... compute reflectivity (ext: _rfl)", " rayfile=0 ................ interfaces as function of x in ASCII file.mod", " skip=5 ................... number of x position to skip in file_ray", @@ -215,7 +216,7 @@ int main(int argc, char **argv) if(!getparint("writeint", &writeint)) writeint = 0; if(!getparint("reflectivity", &reflectivity)) reflectivity = 0; if(!getparint("supersmooth", &supersmooth)) supersmooth = 0; - if(!getparfloat("sigma", &sigma)) sigma = 0.0; + if(!getparfloat("sigma", &sigma)) sigma = 0.8; if(!getparint("rayfile", &rayfile)) rayfile = 0; if(!getparint("skip", &skip)) skip = 5; if(!getparint("above", &above)) above=0; -- GitLab