diff options
author | Gard Spreemann <gard.spreemann@epfl.ch> | 2017-11-06 17:17:22 +0100 |
---|---|---|
committer | Gard Spreemann <gard.spreemann@epfl.ch> | 2017-11-06 17:17:22 +0100 |
commit | fa76da9691d7a06702f70a8d4eebc7e0a8312eca (patch) | |
tree | 9326ac0c7d796dca0b8de8c89731ffba44709dd6 | |
parent | 523afa5a86657bb3a2a44415191bc0ce49e07568 (diff) |
Output dimension parameter when starting computation.
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index d5a731f..682cbb5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -42,6 +42,15 @@ int main(int argc, char ** argv) err = EPSSetWhichEigenpairs(eps, EPS_SMALLEST_MAGNITUDE); CHKERRQ(err); err = EPSSetFromOptions(eps); CHKERRQ(err); + PetscInt nev; + PetscInt ncv; + PetscInt mpd; + err = EPSGetDimensions(eps, &nev, &ncv, &mpd); CHKERRQ(err); + + PetscPrintf(PETSC_COMM_WORLD, "nev=%d\n", nev); + PetscPrintf(PETSC_COMM_WORLD, "ncv=%d\n", ncv); + PetscPrintf(PETSC_COMM_WORLD, "mpd=%d\n", mpd); + PetscPrintf(PETSC_COMM_WORLD, "Solving...\n"); err = EPSSolve(eps); CHKERRQ(err); |