Skip to content

Commit efee3ca

Browse files
committed
Merge branch 'develop' of https://github.com/NREL/ssc into itc_basis_updates
2 parents c3e69e6 + ad6f838 commit efee3ca

17 files changed

+59
-112
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
env:
88
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
99
BUILD_TYPE: Release
10-
GTEST_REF: b85864c64758dec007208e56af933fc3f52044ee
1110
ORTOOLS_VER: "9.14"
1211
ORTOOLS_RELEASE: "6206"
1312

@@ -53,7 +52,6 @@ jobs:
5352
with:
5453
repository: google/googletest
5554
path: googletest
56-
ref: ${{env.GTEST_REF}}
5755

5856
- name: build Gtest
5957
if: steps.cachedgtest.outputs.cache-hit != 'true'
@@ -148,7 +146,6 @@ jobs:
148146
with:
149147
repository: google/googletest
150148
path: googletest
151-
ref: ${{env.GTEST_REF}}
152149

153150
- name: build Gtest
154151
if: steps.cachedgtest.outputs.cache-hit != 'true'
@@ -268,7 +265,6 @@ jobs:
268265
with:
269266
repository: google/googletest
270267
path: googletest
271-
ref: ${{env.GTEST_REF}}
272268

273269
- name: build Gtest
274270
if: steps.cachedgtest.outputs.cache-hit != 'true'

shared/lib_irradproc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void solarpos(int year, int month, int day, int hour, double minute, double lat,
8989
/** @defgroup solarpos_spa Solar Position Algorithm group/
9090
* The functions in this group are used to calculate the sun's position at any given timestep
9191
* based on the Solar Position Algorithm reported by Reda and Andreas in NREL/TP-560-34302, 2008.
92-
* The functions used in this implementation were taken from a C code implementation provided at https://midcdmz.nrel.gov/spa/
92+
* The functions used in this implementation were taken from a C code implementation provided at https://midcdmz.nlr.gov/spa/
9393
* @{
9494
*/
9595
/**

solarpilot/interop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2491,7 +2491,7 @@ void grid_emulator_base::AddRow(int row, std::string label, std::string units, d
24912491
//Row adding method for simple performance runs
24922492

24932493
if ((GetNumberCols() < 6) || (GetNumberRows() < row + 1))
2494-
throw spexception("Sorry! Results table incorrectly formatted. Please contact solarpilot.support@nrel.gov for help.");
2494+
throw spexception("Sorry! Results table incorrectly formatted. Please contact solarpilot.support@nlr.gov for help.");
24952495

24962496
bool is_currency = false;
24972497
if (units.find("$") != std::string::npos) is_currency = true;

ssc/cmod_pvsamv1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3298,7 +3298,7 @@ void cm_pvsamv1::exec()
32983298

32993299
// calculate system performance factor
33003300
// reference: (http://files.sma.de/dl/7680/Perfratio-UEN100810.pdf)
3301-
// additional reference: (http://www.nrel.gov/docs/fy05osti/37358.pdf)
3301+
// additional reference: (http://www.nlr.gov/docs/fy05osti/37358.pdf)
33023302
// PR = net_ac (kWh) / ( total input radiation (kWh) * stc efficiency (%) )
33033303
// bug fix 6/15/15 jmf: total input radiation for PR should NOT including shading or soiling, hence use Nominal value.
33043304
assign("performance_ratio", var_data((ssc_number_t)(ac_net / (nom_rad * mod_eff / 100.0))));

test/input_cases/pvyield_common_data.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ void pvyield_user_support_80603_meteo(ssc_data_t& data)
12551255
ssc_data_set_number(data, "mlm_AM_c_lp3", 0);
12561256
ssc_data_set_number(data, "mlm_AM_c_lp4", 0);
12571257
ssc_data_set_number(data, "mlm_AM_c_lp5", 0);
1258-
// user support issue 80603 https://sam.nrel.gov/node/80603
1258+
// user support issue 80603 https://sam.nlr.gov/node/80603
12591259
ssc_data_set_number(data, "mlm_IAM_mode", 3);
12601260
ssc_data_set_number(data, "mlm_IAM_c_as", 0.04);
12611261
ssc_data_set_number(data, "mlm_IAM_c_sa0", 0);
@@ -1696,7 +1696,7 @@ void pvyield_user_support_80603_AZ(ssc_data_t& data)
16961696
ssc_data_set_number(data, "mlm_AM_c_lp3", 0);
16971697
ssc_data_set_number(data, "mlm_AM_c_lp4", 0);
16981698
ssc_data_set_number(data, "mlm_AM_c_lp5", 0);
1699-
// user support issue 80603 https://sam.nrel.gov/node/80603
1699+
// user support issue 80603 https://sam.nlr.gov/node/80603
17001700
ssc_data_set_number(data, "mlm_IAM_mode", 3);
17011701
ssc_data_set_number(data, "mlm_IAM_c_as", 0.04);
17021702
ssc_data_set_number(data, "mlm_IAM_c_sa0", 0);

test/shared_test/lib_csp_tes_test.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3434
#include <gtest/gtest.h>
3535

3636
#include "lib_csp_tes_test.h"
37-
#include "vs_google_test_explorer_namespace.h"
3837
#include "csp_common_test.h"
3938

4039
using namespace csp_common;
@@ -45,7 +44,7 @@ const double kErrorToHi = 0.01; // 1.0%
4544
//=== Using factory patterns to create the different physical and non-physical components=========
4645

4746
// Test draining storage tank
48-
NAMESPACE_TEST(csp_common, StorageTank, DrainingTank)
47+
TEST(StorageTank, DrainingTank)
4948
{
5049
bool is_hot_tank = false;
5150
double dt = 3600.;
@@ -75,7 +74,7 @@ NAMESPACE_TEST(csp_common, StorageTank, DrainingTank)
7574
}
7675

7776
// Test an initially drained storage tank
78-
NAMESPACE_TEST(csp_common, StorageTank, InitiallyDrainedTank)
77+
TEST(StorageTank, InitiallyDrainedTank)
7978
{
8079
bool is_hot_tank = false;
8180
double dt = 3600.;
@@ -188,7 +187,7 @@ double C_to_K(double T) {
188187
return T + 273.15;
189188
}
190189

191-
NAMESPACE_TEST(csp_common, TesCspSolver, Default)
190+
TEST(TesCspSolver, Default)
192191
{
193192
std::vector<double> tes_lengths{ 0, 90, 100, 120, 0, 0, 0, 0, 80, 120, 80 };
194193

@@ -321,7 +320,7 @@ NAMESPACE_TEST(csp_common, TesCspSolver, Default)
321320
EXPECT_NEAR(tes.get_cold_temp(), 566.1, 0.1);
322321
}
323322

324-
NAMESPACE_TEST(csp_common, TesSubcomponentCmod, Default)
323+
TEST(TesSubcomponentCmod, Default)
325324
{
326325
const size_t n_steps = 24;
327326
ssc_data_t inputs = ssc_data_create();

test/shared_test/lib_csp_trough_test.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3535

3636
#define private public // for setting private data members
3737
#include "lib_csp_trough_test.h"
38-
#include "vs_google_test_explorer_namespace.h"
3938

4039
using namespace csp_trough;
4140

4241
//========Tests===================================================================================
4342
//=== Using factory patterns to create the different physical and non-physical components=========
4443

4544
// Test a standard trough loop at a single point in time
46-
NAMESPACE_TEST(csp_trough, TroughLoop, DefaultTest)
45+
TEST(TroughLoop, DefaultTest)
4746
{
4847
DefaultTroughFactory default_trough_factory = DefaultTroughFactory();
4948
Location location = default_trough_factory.MakeLocation();
@@ -64,7 +63,7 @@ NAMESPACE_TEST(csp_trough, TroughLoop, DefaultTest)
6463
}
6564

6665
// Test a standard trough loop from a homogenous initial condition to steady-state
67-
NAMESPACE_TEST(csp_trough, TroughLoop, SteadyStateTest)
66+
TEST(TroughLoop, SteadyStateTest)
6867
{
6968
DefaultTroughFactory default_trough_factory = DefaultTroughFactory();
7069
Location location = default_trough_factory.MakeLocation();

test/shared_test/lib_solar_thermal_test.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3434
#include <gtest/gtest.h>
3535

3636
#include "lib_solar_thermal_test.h"
37-
#include "vs_google_test_explorer_namespace.h"
3837

3938
using namespace solar_thermal;
4039

4140
//========Tests===================================================================================
4241
//=== Using factory patterns to create the different physical and non-physical components=========
4342

4443
// Basic test of expected power gain and outlet temperature of a single flat plate collector
45-
NAMESPACE_TEST(solar_thermal, FlatPlateCollectorTest, TestFlatPlateCollectorNominalOperation)
44+
TEST(FlatPlateCollectorTest, TestFlatPlateCollectorNominalOperation)
4645
{
4746
DefaultFpcFactory default_fpc_factory = DefaultFpcFactory();
4847
std::unique_ptr<FlatPlateCollector> flat_plate_collector = default_fpc_factory.MakeCollector();
@@ -58,7 +57,7 @@ NAMESPACE_TEST(solar_thermal, FlatPlateCollectorTest, TestFlatPlateCollectorNomi
5857

5958
// Basic test of expected power gain and outlet temperature of a flat plate collector array
6059
// Uses a factory (abstract factory pattern) to create the different physical and non-physical components
61-
NAMESPACE_TEST(solar_thermal, FlatPlateArrayTest, TestFlatPlateArrayOfOneNominalOperation)
60+
TEST(FlatPlateArrayTest, TestFlatPlateArrayOfOneNominalOperation)
6261
{
6362
DefaultFpcFactory default_fpc_factory = DefaultFpcFactory();
6463
std::unique_ptr<FlatPlateArray> flat_plate_array = default_fpc_factory.MakeFpcArray();

test/shared_test/vs_google_test_explorer_namespace.h

Lines changed: 0 additions & 46 deletions
This file was deleted.

test/ssc_test/cmod_etes_etes_test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3434
#include <gtest/gtest.h>
3535
#include "etes_etes_defaults.h"
3636
#include "csp_common_test.h"
37-
#include "vs_google_test_explorer_namespace.h"
3837

3938
namespace etes_etes_test {}
4039
using namespace etes_etes_test;
4140

4241
//========Tests===================================================================================
43-
NAMESPACE_TEST(etes_etes_test, EtesEtesCmod, Default_NoFinancial)
42+
TEST(EtesEtesCmod, Default_NoFinancial)
4443
{
4544
ssc_data_t defaults = etes_etes_defaults();
4645
CmodUnderTest etes_system = CmodUnderTest("etes_electric_resistance", defaults);

0 commit comments

Comments
 (0)