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

clang-format

parent 52dd85e6
No related branches found
No related tags found
1 merge request!2001Before starting scattering simulation check that refractive index has reasonable magnitude (#715)
......@@ -81,10 +81,10 @@ void Material::checkRefractiveIndex(double wavelength) const
{
const complex_t n = refractiveIndex(wavelength);
if (n.real() < 0.9 || n.real() > 1.1) {
std::stringstream msg;
msg << "Refractive index " << n << " at wavelength " << wavelength
<< " is too far from 1. Invalid material data?";
throw std::runtime_error(msg.str());
std::stringstream msg;
msg << "Refractive index " << n << " at wavelength " << wavelength
<< " is too far from 1. Invalid material data?";
throw std::runtime_error(msg.str());
}
}
......
......@@ -49,7 +49,7 @@ MultiLayer* MultiLayer::clone() const
void MultiLayer::checkMaterials(double wavelength) const
{
for (size_t i = 0; i < numberOfLayers(); ++i)
m_layers[i]->material()->checkRefractiveIndex(wavelength);
m_layers[i]->material()->checkRefractiveIndex(wavelength);
}
//! Adds layer with default (zero) roughness
......
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