aboutsummaryrefslogtreecommitdiff
path: root/Python/WarpXProb.cpp
blob: 722b2931e0cc70af5c42c339e1fd8be2772e661f (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 < 3; ++i) {
	current[lev][i]->setVal(0.0);
	Efield[lev][i]->setVal(0.0);
	Bfield[lev][i]->setVal(0.0);
    }
}