Skip to content

Commit

Permalink
Edit in few comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vidanovic committed Sep 22, 2022
1 parent 98c5ef4 commit ceadd29
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/MultiLayerOptics/src/EquivalentBSDFLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <cmath>

#include <thread>
#include <mutex>

#include "EquivalentBSDFLayer.hpp"
#include "EquivalentBSDFLayerSingleBand.hpp"
Expand Down Expand Up @@ -125,10 +124,6 @@ namespace MultiLayerOptics

void CEquivalentBSDFLayer::calculateWavelengthByWavelengthProperties()
{
std::mutex absorptanceMutex;
std::mutex jscMutex;
std::mutex totMutex;

auto numberOfThreads{1u};
#if MULTITHREADING
numberOfThreads = std::thread::hardware_concurrency();
Expand All @@ -152,20 +147,17 @@ namespace MultiLayerOptics
{
auto totA{layer.getLayerAbsorptances(layerNumber + 1, aSide)};

std::lock_guard<std::mutex> lock_abs(absorptanceMutex);
m_TotA.at(aSide).setPropertiesAtIndex(
index, layerNumber, m_CombinedLayerWavelengths[index], totA);

auto totJSC{layer.getLayerJSC(layerNumber + 1, aSide)};
std::lock_guard<std::mutex> lock_jsc(jscMutex);
m_TotJSC.at(aSide).setPropertiesAtIndex(
index, layerNumber, m_CombinedLayerWavelengths[index], totJSC);
}
for(auto aProperty : FenestrationCommon::EnumPropertySimple())
{
auto tot{layer.getProperty(aSide, aProperty)};

std::lock_guard<std::mutex> lock_tot(totMutex);
m_Tot.at({aSide, aProperty})
.setPropertiesAtIndex(index, m_CombinedLayerWavelengths[index], tot);
}
Expand Down
1 change: 0 additions & 1 deletion src/MultiLayerOptics/src/MultiPaneBSDF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "EquivalentBSDFLayerSingleBand.hpp"
#include "WCESingleLayerOptics.hpp"
#include "WCECommon.hpp"
#include "../../SingleLayerOptics/src/CalculationProperties.hpp"

using FenestrationCommon::IntegrationType;
using FenestrationCommon::Side;
Expand Down

0 comments on commit ceadd29

Please sign in to comment.