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

Fixed bugs in: Refactor: pulled dwba decoration of form factors out of...

Fixed bugs in: Refactor: pulled dwba decoration of form factors out of LayerStrategyBuilder and into global function
parent 5dde68c7
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include "DiffuseDWBASimulation.h" #include "DiffuseDWBASimulation.h"
#include "FormFactorDWBAConstZ.h" #include "FormFactorDWBAConstZ.h"
#include "MessageService.h" #include "MessageService.h"
#include "FormFactorTools.h"
//! Carry out one simulation thread. //! Carry out one simulation thread.
......
...@@ -25,12 +25,12 @@ namespace FormFactorTools { ...@@ -25,12 +25,12 @@ namespace FormFactorTools {
//! Decorates the given formfactor with a scalar dwba formfactor and returns //! Decorates the given formfactor with a scalar dwba formfactor and returns
//! this form factor //! this form factor
IFormFactor* createDWBAScalarFormFactor(IFormFactor* p_form_factor, IFormFactor* createDWBAScalarFormFactor(IFormFactor* p_form_factor,
const LayerSpecularInfo &specular_info, double depth) const const LayerSpecularInfo &specular_info, double depth=0.0);
//! Decorates the given formfactor with a matrix dwba formfactor and returns //! Decorates the given formfactor with a matrix dwba formfactor and returns
//! this form factor //! this form factor
IFormFactor* createDWBAMatrixFormFactor(IFormFactor* p_form_factor, IFormFactor* createDWBAMatrixFormFactor(IFormFactor* p_form_factor,
const LayerSpecularInfo &specular_info, double depth) const const LayerSpecularInfo &specular_info, double depth=0.0);
} }
......
...@@ -14,10 +14,12 @@ ...@@ -14,10 +14,12 @@
// ************************************************************************** // // ************************************************************************** //
#include "FormFactorTools.h" #include "FormFactorTools.h"
#include "FormFactorDWBAConstZ.h"
#include "FormFactorDWBAPolConstZ.h"
IFormFactor* FormFactorTools::createDWBAScalarFormFactor( IFormFactor* FormFactorTools::createDWBAScalarFormFactor(
IFormFactor* p_form_factor, const LayerSpecularInfo& specular_info, IFormFactor* p_form_factor, const LayerSpecularInfo& specular_info,
double depth) const double depth)
{ {
FormFactorDWBAConstZ *p_result = FormFactorDWBAConstZ *p_result =
new FormFactorDWBAConstZ(p_form_factor, depth); new FormFactorDWBAConstZ(p_form_factor, depth);
...@@ -27,7 +29,7 @@ IFormFactor* FormFactorTools::createDWBAScalarFormFactor( ...@@ -27,7 +29,7 @@ IFormFactor* FormFactorTools::createDWBAScalarFormFactor(
IFormFactor* FormFactorTools::createDWBAMatrixFormFactor( IFormFactor* FormFactorTools::createDWBAMatrixFormFactor(
IFormFactor* p_form_factor, const LayerSpecularInfo& specular_info, IFormFactor* p_form_factor, const LayerSpecularInfo& specular_info,
double depth) const double depth)
{ {
FormFactorDWBAPol *p_result(0); FormFactorDWBAPol *p_result(0);
if (depth) { if (depth) {
......
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