aboutsummaryrefslogtreecommitdiff
path: root/Python/WarpXProb.cpp
blob: c1534af68e1a89d601fe1918a9dbb582993cded6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

//
// Each problem must have its own version of WarpX::InitLevelData(int lev)
// to initialize the field data on this level.
//

#include <WarpX.H>

void
WarpX::InitLevelData (int lev)
{
    for (int i = 0; i < BL_SPACEDIM; ++i) {
	current[lev][i]->setVal(0.0);
	Efield[lev][i]->setVal(0.0);
	Bfield[lev][i]->setVal(0.0);
    }
}