Skip to content

Commit

Permalink
Fix for ubuntu comilations and test.
Browse files Browse the repository at this point in the history
  • Loading branch information
vidanovic committed Jun 8, 2024
1 parent 59872f6 commit bb96913
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SingleLayerOptics/src/VenetianCellDescription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ namespace SingleLayerOptics
const auto scaled_vf{scaledBeamViewFactors(t_Side, t_Direction)};

auto diffuseVF{m_Geometry.viewFactors()};
for(int i = 0; i < scaled_vf.size(); ++i)
for(size_t i = 0u; i < scaled_vf.size(); ++i)
{
diffuseVF(0, i) = scaled_vf[i];
}
Expand Down
2 changes: 1 addition & 1 deletion src/SingleLayerOptics/src/VenetianSegments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ namespace SingleLayerOptics
const auto & segment = slats[i];

aResult += visibleFraction[i] * slatRadiances[i] * segment.length()
* abs(segment.surfaceUnitNormal().dotProduct(outgoingUnitVector.endPoint()));
* std::abs(segment.surfaceUnitNormal().dotProduct(outgoingUnitVector.endPoint()));
}

return aResult
Expand Down

0 comments on commit bb96913

Please sign in to comment.