Commit cbdd6b9e authored by Markus Mirz's avatar Markus Mirz
Browse files

fix powerflow examples

parent 71f68af7
......@@ -82,7 +82,7 @@ int main(int argc, char** argv){
intf.addExport(v0->phase(), (i*2)+1); o++;
}
sim.addInterface(&intf, false, false);
sim.addInterface(&intf, false);
sim.run(std::chrono::seconds(5));
......
......@@ -74,7 +74,7 @@ int main(int argc, char** argv){
ofstream villas_conf;
villas_conf.open ("villas_sent_data.conf");
// Register exportable node voltages
string list_varnames[sys.mNodes.size()*2];
UInt o = 0;
......@@ -99,12 +99,12 @@ int main(int argc, char** argv){
list_varnames[(i*2)+1] = n->name() + ".V.phase";
}
for (auto varname : list_varnames) {
for (auto varname : list_varnames) {
villas_conf << varname << std::endl;
}
villas_conf.close();
sim.addInterface(&intf, false, false);
sim.addInterface(&intf, false);
sim.run(std::chrono::seconds(5));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment