Skip to content
Snippets Groups Projects
Commit 1215dd66 authored by Jan Thorbecke's avatar Jan Thorbecke
Browse files

added smoothing on 4x oversampled grid to reduce straircase effect in FD

parent c85c18fd
No related branches found
No related tags found
No related merge requests found
...@@ -87,6 +87,7 @@ char *sdoc[] = { ...@@ -87,6 +87,7 @@ char *sdoc[] = {
" OUTPUT ", " OUTPUT ",
" writeint=0 ............... interfaces as function of x (ext: _int)", " writeint=0 ............... interfaces as function of x (ext: _int)",
" supersmooth=0 ............ samples at dx/4 and apply 5x5 smoothing operator(1)", " 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)", " reflectivity=0 ........... compute reflectivity (ext: _rfl)",
" rayfile=0 ................ interfaces as function of x in ASCII file.mod", " rayfile=0 ................ interfaces as function of x in ASCII file.mod",
" skip=5 ................... number of x position to skip in file_ray", " skip=5 ................... number of x position to skip in file_ray",
...@@ -215,7 +216,7 @@ int main(int argc, char **argv) ...@@ -215,7 +216,7 @@ int main(int argc, char **argv)
if(!getparint("writeint", &writeint)) writeint = 0; if(!getparint("writeint", &writeint)) writeint = 0;
if(!getparint("reflectivity", &reflectivity)) reflectivity = 0; if(!getparint("reflectivity", &reflectivity)) reflectivity = 0;
if(!getparint("supersmooth", &supersmooth)) supersmooth = 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("rayfile", &rayfile)) rayfile = 0;
if(!getparint("skip", &skip)) skip = 5; if(!getparint("skip", &skip)) skip = 5;
if(!getparint("above", &above)) above=0; if(!getparint("above", &above)) above=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment