Skip to content

Commit e56d5e5

Browse files
committed
Apply pre-commmit fixes
1 parent ec42ea9 commit e56d5e5

6 files changed

Lines changed: 21 additions & 25 deletions

File tree

src/Model/PhasorDynamics/Branch/Branch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#include <cmath>
1313
#include <iostream>
1414

15-
#include <Model/PhasorDynamics/Bus/Bus.hpp>
1615
#include <Model/PhasorDynamics/Branch/BranchData.hpp>
16+
#include <Model/PhasorDynamics/Bus/Bus.hpp>
1717

1818
namespace GridKit
1919
{

src/Model/PhasorDynamics/Branch/Branch.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace GridKit
2020

2121
template <typename RealT, typename IdxT>
2222
struct BranchData;
23-
}
23+
} // namespace PhasorDynamics
2424
} // namespace GridKit
2525

2626
namespace GridKit

src/Model/PhasorDynamics/Branch/BranchData.hpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,22 @@
22
* @file BranchData.hpp
33
* @author Slaven Peles (peless@ornl.gov)
44
* @brief Modeling data for branches (transmission lines)
5-
*
5+
*
66
*/
77
#pragma once
88

9-
109
namespace GridKit
1110
{
1211
namespace PhasorDynamics
1312
{
1413
/**
1514
* @brief Contains modeling data for a Branch
16-
*
15+
*
1716
* @tparam RealT Real parameter data type
1817
* @tparam IdxT Integer parameter data type
19-
*
18+
*
2019
* Integer parameters are of the same type as matrix and vector indices.
21-
*
20+
*
2221
* @todo Decide on naming scheme for model parameters.
2322
*/
2423
template <typename RealT, typename IdxT>
@@ -27,10 +26,10 @@ namespace GridKit
2726
RealT R{0.0}; ///< line series resistance
2827
RealT X{0.0}; ///< line series reactance
2928
RealT G{0.0}; ///< line shunt conductance
30-
RealT B{0.0}; ///< line shunt charging
29+
RealT B{0.0}; ///< line shunt charging
3130

3231
IdxT bus1_id{0}; ///< Unique ID of bus 1
3332
IdxT bus2_id{0}; ///< Unique ID of bus 2
3433
};
35-
}
36-
}
34+
} // namespace PhasorDynamics
35+
} // namespace GridKit

src/Model/PhasorDynamics/Bus/Bus.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ namespace GridKit
101101
return f_[1];
102102
}
103103

104-
105104
private:
106105
ScalarT Vr0_{0.0};
107106
ScalarT Vi0_{0.0};

src/Model/PhasorDynamics/Bus/BusData.hpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,22 @@
22
* @file BusData.hpp
33
* @author Slaven Peles (peless@ornl.gov)
44
* @brief Modeling data for buses (nodes)
5-
*
5+
*
66
*/
77
#pragma once
88

9-
109
namespace GridKit
1110
{
1211
namespace PhasorDynamics
1312
{
1413
/**
1514
* @brief Contains modeling data for a Bus
16-
*
15+
*
1716
* @tparam RealT Real parameter data type
1817
* @tparam IdxT Integer parameter data type
19-
*
18+
*
2019
* Integer parameters are of the same type as matrix and vector indices.
21-
*
20+
*
2221
* @todo Decide on naming scheme for model parameters.
2322
*/
2423
template <typename RealT, typename IdxT>
@@ -29,5 +28,5 @@ namespace GridKit
2928

3029
IdxT bus_id{0}; ///< Unique ID of bus 1
3130
};
32-
}
33-
}
31+
} // namespace PhasorDynamics
32+
} // namespace GridKit

src/Model/PhasorDynamics/Load/LoadData.hpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,22 @@
22
* @file LoadData.hpp
33
* @author Slaven Peles (peless@ornl.gov)
44
* @brief Modeling data for loads
5-
*
5+
*
66
*/
77
#pragma once
88

9-
109
namespace GridKit
1110
{
1211
namespace PhasorDynamics
1312
{
1413
/**
1514
* @brief Contains modeling data for a Load
16-
*
15+
*
1716
* @tparam RealT Real parameter data type
1817
* @tparam IdxT Integer parameter data type
19-
*
18+
*
2019
* Integer parameters are of the same type as matrix and vector indices.
21-
*
20+
*
2221
* @todo Decide on naming scheme for model parameters.
2322
*/
2423
template <typename RealT, typename IdxT>
@@ -29,5 +28,5 @@ namespace GridKit
2928

3029
IdxT bus_id{0}; ///< Unique ID of bus 1
3130
};
32-
}
33-
}
31+
} // namespace PhasorDynamics
32+
} // namespace GridKit

0 commit comments

Comments
 (0)