Skip to content

Commit 0e07a26

Browse files
Simplify documentation for example
1 parent 51251d0 commit 0e07a26

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/PhasorDynamics/Example1/example1.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ int main()
104104
};
105105

106106
// The above lambda is equivalent to writing
107-
// struct
107+
// struct OutputCallback
108108
// {
109109
// SystemModel<double, size_t>& sys;
110+
// std::vector<OutputData>& output;
110111
//
111112
// void operator()(double t)
112113
// {
@@ -117,7 +118,9 @@ int main()
117118
// .Vi = yval[1],
118119
// .dw = yval[3]});
119120
// }
120-
// } output_cb = {output, bus1, gen};
121+
// };
122+
//
123+
// OutputCallback output_cb = {.sys = sys, .output = output};
121124

122125
/* Set up simulation */
123126
Ida<double, size_t> ida(&sys);

0 commit comments

Comments
 (0)