Commit 05ec58ef authored by frey_m's avatar frey_m
Browse files

AMR test case: Forgot IpplTimings::stopTimer at one place.

modified:   ippl/test/AMR/Solver.cpp
modified:   ippl/test/AMR/testGaussian.cpp
parent 48fc1cb6
......@@ -11,7 +11,7 @@ Solver::solve_for_accel(container_t& rhs,
int finest_level,
Real offset)
{
static IpplTimings::TimerRef edge2centerTimer = IpplTimings::getTimer("gradient-edge2center");
static IpplTimings::TimerRef edge2centerTimer = IpplTimings::getTimer("grad-edge2center");
Real tol = 1.e-10;
Real abs_tol = 1.e-14;
......
......@@ -53,7 +53,7 @@ void doSolve(AmrOpal& myAmrOpal, PartBunchBase* bunch,
int nLevels,
Inform& msg)
{
static IpplTimings::TimerRef allocTimer = IpplTimings::getTimer("allocate-memory-grid");
static IpplTimings::TimerRef allocTimer = IpplTimings::getTimer("alloc-memory-grid");
static IpplTimings::TimerRef assignTimer = IpplTimings::getTimer("assign-charge");
......@@ -129,6 +129,7 @@ void doBoxLib(const Vektor<size_t, 3>& nr, size_t nParticles,
{
static IpplTimings::TimerRef distTimer = IpplTimings::getTimer("init-distribution");
static IpplTimings::TimerRef regridTimer = IpplTimings::getTimer("regrid");
static IpplTimings::TimerRef redistTimer = IpplTimings::getTimer("particle-redistr");
// ========================================================================
// 1. initialize physical domain (just single-level)
// ========================================================================
......@@ -161,7 +162,7 @@ void doBoxLib(const Vektor<size_t, 3>& nr, size_t nParticles,
// copy particles to the PartBunchBase object.
dist.injectBeam(*bunch);
IpplTimings::stopTimer(distTimer);
......@@ -169,7 +170,9 @@ void doBoxLib(const Vektor<size_t, 3>& nr, size_t nParticles,
bunch->setQM(Physics::q_e, i); // in [C]
// redistribute on single-level
IpplTimings::startTimer(redistTimer);
bunch->myUpdate();
IpplTimings::stopTimer(redistTimer);
bunch->gatherStatistics();
......
Markdown is supported
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