Skip to content

Commit

Permalink
added time step command option and results for a two-step simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Maldonado committed Sep 17, 2018
1 parent bd32730 commit 5481b17
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/psys/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ int main(int argc, char* argv[]) {
bool propagate_moments = false;

bool TWO_BUS = false;
int tsteps = 200;

options.add_options()
("x0", "Read initial conditions from x0.hdf5", cxxopts::value<bool>(external_init))
("m,moments", "Propagate moments with AD", cxxopts::value<bool>(propagate_moments))
("o,output", "Output trajectory (integration)", cxxopts::value<std::string>());
("o,output", "Output trajectory (integration)", cxxopts::value<std::string>())
("t,timesteps", "Number of time steps", cxxopts::value<int>(tsteps));

auto result = options.parse(argc, argv);

Expand All @@ -38,7 +40,7 @@ int main(int argc, char* argv[]) {

// Variable declaration
int nbuses, nbranches, ngen, nload;
int tsteps = 200;
//int tsteps = 200;
size_t dim;
pVector<double> xold, x, F;
pVector<double> x0;
Expand Down
Binary file added examples/psys/test/covSTEP0.hdf5
Binary file not shown.
Binary file added examples/psys/test/covSTEP1.hdf5
Binary file not shown.
Binary file added examples/psys/test/solution.hdf5
Binary file not shown.

0 comments on commit 5481b17

Please sign in to comment.