Skip to content

Commit 3dc67a5

Browse files
Fix DGTest
1 parent 6888da9 commit 3dc67a5

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

  • examples/PowerElectronics/DistributedGeneratorTest

examples/PowerElectronics/DistributedGeneratorTest/DGTest.cpp

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,24 @@ int main(int /* argc */, char const** /* argv */)
4949
GridKit::DistributedGenerator<double, size_t> dg(0, parms, true, &dg_signal, &bus);
5050

5151
std::vector<double> t1(16, 0.0);
52-
std::vector<double> t2{0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5};
52+
std::vector<double> t2{
53+
0.0,
54+
0.1,
55+
0.2,
56+
0.4,
57+
0.5,
58+
0.6,
59+
0.7,
60+
0.8,
61+
0.9,
62+
1.0,
63+
1.1,
64+
1.2,
65+
1.3,
66+
1.4,
67+
1.5,
68+
0.3,
69+
};
5370

5471
dg_signal.allocate();
5572
bus.allocate();
@@ -64,7 +81,6 @@ int main(int /* argc */, char const** /* argv */)
6481
std::vector<double> true_vec{3.141592277589793e+02,
6582
8.941907747838389e-01,
6683
1.846733023014284e+00,
67-
3.141592277589793e+02,
6884
1.014543000000000e+02,
6985
-1.507680000000000e+01,
7086
3.787993500000000e+02,

0 commit comments

Comments
 (0)