Skip to content

Commit

Permalink
set moments flag to false by default. updated notebook with visualiza…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
Adrian Maldonado committed Apr 19, 2018
1 parent c2430d2 commit a251db4
Show file tree
Hide file tree
Showing 2 changed files with 131 additions and 36 deletions.
6 changes: 3 additions & 3 deletions examples/psys/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ int main(int argc, char* argv[]) {
cxxopts::Options options("UQ Power", "Perform UQ on power system with AD");

bool external_init = false;
bool propagate_moments = true;
bool propagate_moments = false;

bool TWO_BUS = false;

Expand Down Expand Up @@ -229,10 +229,10 @@ int main(int argc, char* argv[]) {
pTensor4<double> T(dim, dim, dim, dim);
pTensor3<double> H(dim, dim, dim);
pMatrix<double> J(dim, dim);

for (size_t i = 0; i < sys.dimension; ++i)
cv0[i][i] = 0.0000001;

cv0[4][4] = 0.000001;

for (size_t i = 0; i < tsteps; ++i) {
Expand Down
161 changes: 128 additions & 33 deletions examples/psys/visual.ipynb

Large diffs are not rendered by default.

0 comments on commit a251db4

Please sign in to comment.