From 79484ab8fa041ce0cce8e3fd2f8c67a9bdea0f1e Mon Sep 17 00:00:00 2001 From: James McClure Date: Wed, 26 Oct 2022 20:24:45 -0400 Subject: [PATCH] update poisson solver --- tests/TestPoissonSolver.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/TestPoissonSolver.cpp b/tests/TestPoissonSolver.cpp index 7d39889a..637755d0 100644 --- a/tests/TestPoissonSolver.cpp +++ b/tests/TestPoissonSolver.cpp @@ -76,11 +76,14 @@ int main(int argc, char **argv) PoissonSolver.getElectricField_debug(timestep); } } + PoissonSolver.WriteVis(timestep); } else { + int timestep = 1; PoissonSolver.Run(PoissonSolver.ChargeDensityDummy,false,1); PoissonSolver.getElectricPotential_debug(1); PoissonSolver.getElectricField_debug(1); + PoissonSolver.WriteVis(timestep); } if (rank==0) printf("Maximum timestep is reached and the simulation is completed\n");