Skip to content
Snippets Groups Projects
Commit dab661f9 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Merge branch 'mlemptybug' into develop

parents 722451de e09863f4
No related branches found
No related tags found
No related merge requests found
...@@ -235,16 +235,7 @@ void MultiLayer::setLayerThickness(size_t i_layer, double thickness) ...@@ -235,16 +235,7 @@ void MultiLayer::setLayerThickness(size_t i_layer, double thickness)
MultiLayerDWBASimulation* MultiLayer::createDWBASimulation() const MultiLayerDWBASimulation* MultiLayer::createDWBASimulation() const
{ {
for (size_t i=0; i<getNumberOfLayers(); ++i) { return new MultiLayerDWBASimulation(this);
if( getLayer(i)->hasDWBASimulation() )
return new MultiLayerDWBASimulation(this);
}
for(size_t i=0; i<getNumberOfInterfaces(); ++i) {
if( getLayerInterface(i)->getRoughness() )
return new MultiLayerDWBASimulation(this);
}
return 0;
} }
int MultiLayer::getIndexOfLayer(const Layer *layer) const int MultiLayer::getIndexOfLayer(const Layer *layer) const
......
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