Skip to content

Commit

Permalink
Added test for forced ventilation. Fixed bug in glazing system where …
Browse files Browse the repository at this point in the history
…changing from condensed to full (or vice versa) did not correctly reset the glazing system.
  • Loading branch information
StephenCzarnecki committed May 11, 2023
1 parent 0c582c4 commit d49b135
Show file tree
Hide file tree
Showing 281 changed files with 3,891 additions and 26,744 deletions.
10 changes: 7 additions & 3 deletions src/glazing_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,13 @@ namespace wincalc
void Glazing_System::set_spectral_data_wavelength_range(
Spectal_Data_Wavelength_Range_Method const & type, int visible_bands, int solar_bands)
{
this->spectral_data_wavelength_range_method = type;
this->number_visible_bands = visible_bands;
this->number_solar_bands = solar_bands;
if(this->spectral_data_wavelength_range_method != type || this->number_visible_bands != visible_bands || this->number_solar_bands != solar_bands)
{
this->spectral_data_wavelength_range_method = type;
this->number_visible_bands = visible_bands;
this->number_solar_bands = solar_bands;
this->optical_system_for_thermal_calcs = nullptr;
}
}

void Glazing_System::enable_deflection(bool enable)
Expand Down
1 change: 1 addition & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/googletest-src
EXCLUDE_FROM_ALL)

add_executable(${PROJECT_TEST_NAME}
nfrc_102_nfrc_102_forced_ventilation.unit.cpp
deflection_triple_clear.unit.cpp
deflection_youngs_modulus.unit.cpp
deflection.unit.cpp
Expand Down

This file was deleted.

Loading

0 comments on commit d49b135

Please sign in to comment.