Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vacuum custom coeff #177

Merged
merged 12 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,12 @@ endif ()
# endforeach()

if( NOT ${SINGLE_PROJECT} )
if( ${BUILD_WCE_TESTING})
include_directories( src/helper )
endif()
add_subdirectory( src )
else()
if( ${BUILD_WCE_COMMON} )
if( ${BUILD_WCE_COMMON} )
file( GLOB SOURCES_CPP "src/Common/src/*.cpp" )
file( GLOB SOURCES_HPP "src/Common/src/*.hpp" )
LIST(APPEND SOURCES ${SOURCES_HPP} ${SOURCES_CPP})
Expand Down Expand Up @@ -159,9 +162,9 @@ else()
target_include_directories(${target_name} PUBLIC "src/SingleLayerOptics/include")
target_include_directories(${target_name} PUBLIC "src/MultiLayerOptics/include")
endif()

if( BUILD_WCE_TESTING )

include_directories( src/helper )
if( ${BUILD_WCE_COMMON} )
include_directories( src/Common/include )
file( GLOB all_test_src RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "src/Common/tst/units/*.cpp" )
Expand Down Expand Up @@ -191,18 +194,18 @@ else()

if( ${BUILD_WCE_OPTICAL} )
include_directories( src/SpectralAveraging/include )
file( GLOB all_test_src RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "src/SpectralAveraging/tst/*.cpp" )
LIST( REMOVE_ITEM all_test_src "src/SpectralAveraging/tst/main.cpp")
file( GLOB all_test_src RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "src/SpectralAveraging/tst/units/*.cpp" )
LIST( REMOVE_ITEM all_test_src "src/SpectralAveraging/tst/units/main.cpp")
LIST( APPEND test_src ${all_test_src} )

include_directories( src/SingleLayerOptics/include )
file( GLOB all_test_src RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "src/SingleLayerOptics/tst/*.cpp" )
LIST( REMOVE_ITEM all_test_src "src/SingleLayerOptics/tst/main.cpp")
file( GLOB all_test_src RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "src/SingleLayerOptics/tst/units/*.cpp" )
LIST( REMOVE_ITEM all_test_src "src/SingleLayerOptics/tst/units/main.cpp")
LIST( APPEND test_src ${all_test_src} )

include_directories( src/MultiLayerOptics/include )
file( GLOB all_test_src RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "src/MultiLayerOptics/tst/*.cpp" )
LIST( REMOVE_ITEM all_test_src "src/MultiLayerOptics/tst/main.cpp")
file( GLOB all_test_src RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "src/MultiLayerOptics/tst/units/*.cpp" )
LIST( REMOVE_ITEM all_test_src "src/MultiLayerOptics/tst/units/main.cpp")
LIST( APPEND test_src ${all_test_src} )
endif()

Expand Down
2 changes: 2 additions & 0 deletions src/Common/src/Constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ namespace ConstantsData
static const double wavelengthErrorTolerance = 1e-6;
static const double ELECTRON_CHARGE = 1.502e-19;
static const double EOGHeight = 0.0635; // meters
static const double DEFAULT_SURFACE_ACCOMMODATION_COEFFICIENT = 0.89;
static const double DEFAULT_GAP_PRESSURE = 101325;

//! Default ratio used in scaling of the materials that are defined only with solar and visible
//! range.
Expand Down
Loading
Loading