Skip to content

Commit

Permalink
Merge pull request #201 from bigladder/update-btwxt
Browse files Browse the repository at this point in the history
Update Btwxt version with new version of Courier
  • Loading branch information
spahrenk authored Feb 20, 2024
2 parents 4d4977d + 16fe0cf commit 4609465
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
continue-on-error: ${{ matrix.experimental }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set Project Name
Expand Down
1 change: 0 additions & 1 deletion Testing/Temporary/CTestCostData.txt

This file was deleted.

3 changes: 0 additions & 3 deletions Testing/Temporary/LastTest.log

This file was deleted.

2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ else ()
add_library(libHPWHsim SHARED ${library_sources})
endif ()

target_include_directories(libHPWHsim PUBLIC ${PROJECT_BINARY_DIR}/src ${PROJECT_SOURCE_DIR}/src)
target_include_directories(libHPWHsim PUBLIC ${PROJECT_SOURCE_DIR}/src ${PROJECT_BINARY_DIR}/src)

target_link_libraries(libHPWHsim PRIVATE ${PROJECT_NAME}_common_interface PUBLIC btwxt)
target_compile_features(libHPWHsim PRIVATE cxx_std_17)
Expand Down
15 changes: 9 additions & 6 deletions src/HPWHpresets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2200,17 +2200,20 @@ int HPWH::HPWHinit_presets(MODELS presetNum)

// Set up regular grid interpolator.
Btwxt::GridAxis g0(compressor.perfGrid[0],
"TAir",
Btwxt::InterpolationMethod::linear,
Btwxt::ExtrapolationMethod::constant);
Btwxt::ExtrapolationMethod::constant,
{-DBL_MAX, DBL_MAX},
"TAir");
Btwxt::GridAxis g1(compressor.perfGrid[1],
"TOut",
Btwxt::InterpolationMethod::linear,
Btwxt::ExtrapolationMethod::constant);
Btwxt::ExtrapolationMethod::constant,
{-DBL_MAX, DBL_MAX},
"TOut");
Btwxt::GridAxis g2(compressor.perfGrid[2],
"TIn",
Btwxt::InterpolationMethod::linear,
Btwxt::ExtrapolationMethod::linear);
Btwxt::ExtrapolationMethod::linear,
{-DBL_MAX, DBL_MAX},
"Tin");

std::vector<Btwxt::GridAxis> gx {g0, g1, g2};

Expand Down

0 comments on commit 4609465

Please sign in to comment.