Skip to content

Commit 4859431

Browse files
committed
WCE now accepts Tb
1 parent 1fd1df4 commit 4859431

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CMakeLists-Windows-CalcEngine.txt.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include(ExternalProject)
44

55
ExternalProject_Add(Windows-CalcEngine
66
GIT_REPOSITORY https://github.com/LBNL-ETA/Windows-CalcEngine.git
7-
GIT_TAG "Version_1.0.61"
7+
GIT_TAG "TbIntroduction"
88

99
UPDATE_COMMAND ""
1010
PATCH_COMMAND ""

src/create_wce_objects.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ namespace wincalc
4343
}
4444
SpectralAveraging::MeasuredRow converted(data.wavelength,
4545
data.directComponent.value().tf,
46+
data.directComponent.value().tb,
4647
data.directComponent.value().rf,
4748
data.directComponent.value().rb);
4849
return converted;
@@ -510,8 +511,9 @@ namespace wincalc
510511
auto eqef = get_eqef(product_data.wavelength_data);
511512
auto eqeb = get_eqeb(product_data.wavelength_data);
512513

514+
auto sample = SpectralAveraging::CSpectralSampleData::create(measured_wavelength_data);
513515
auto pvSample = std::make_shared<SpectralAveraging::PhotovoltaicSampleData>(
514-
measured_wavelength_data, eqef, eqeb);
516+
*sample, eqef, eqeb);
515517

516518
auto material = SingleLayerOptics::Material::nBandPhotovoltaicMaterial(
517519
pvSample, product_data.thickness_meters, product_data.material_type);

0 commit comments

Comments
 (0)