Skip to content
Snippets Groups Projects
Commit b4159cb0 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

slicify: fct comment

parent 44270ea5
No related branches found
No related tags found
1 merge request!1028simplify slicing procedures
......@@ -99,10 +99,15 @@ void checkVolumeFractions(const Admixtures& admixtures)
"total volumetric fraction of particles exceeds 1!");
}
//! Returns a SliceStack that refines the layer structure of sample,
//! taking into account the average SLD of layer material and particle decoration.
//! Returns a vector of slices that represent the layer structure of the sample.
//!
//! For use in ReSample constructor.
//! Each slice is either a layer, or a fraction of a layer.
//! Layers are fractioned into several slices if
//! - option useAvgMaterials is true,
//! - layer->numberOfSlices > 1, and
//! - there are particles in the layer.
//!
//! Used in ReSample constructor.
SliceStack slicify(const MultiLayer& sample, const SimulationOptions& options)
{
......@@ -124,7 +129,7 @@ SliceStack slicify(const MultiLayer& sample, const SimulationOptions& options)
roughness = nullptr;
if (i == nLayers - 1)
tl = 0.0;
ASSERT(tl == 0);
if (i == 0)
result.addTopSlice(tl, *material);
else
......
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