2424#define ONEPARTICLESIMULATION_HPP
2525
2626#include " simulation_defines.hpp"
27+ #include " Environment.hpp"
2728
2829#include " simulationControl/MySimulation.hpp"
2930
@@ -75,7 +76,7 @@ class OneParticleSimulation : public MySimulation
7576
7677 MySimulation::init ();
7778
78- if (GridController<DIM3 >::getInstance ().getGlobalRank () == 0 )
79+ if (Environment<simDim >::getInstance (). getGridController ().getGlobalRank () == 0 )
7980 {
8081 std::cout << " max weighting " << NUM_EL_PER_PARTICLE << std::endl;
8182 std::cout << " courant=min(deltaCellSize)/dt/c > 1.77 ? " << std::min (CELL_WIDTH, std::min (CELL_DEPTH, CELL_HEIGHT)) / SPEED_OF_LIGHT / DELTA_T << std::endl;
@@ -91,7 +92,7 @@ class OneParticleSimulation : public MySimulation
9192 // diabled because we have a transaction bug
9293 // StreamController::getInstance().addStreams(6);
9394
94- PMACC_AUTO (simBox, SubGrid <simDim>::getInstance ().getSimulationBox ());
95+ PMACC_AUTO (simBox, Environment <simDim>::getInstance (). getSubGrid ().getSimulationBox ());
9596
9697 const DataSpace<simDim> halfSimSize (simBox.getGlobalSize () / 2 );
9798
@@ -141,7 +142,7 @@ class OneParticleSimulation : public MySimulation
141142
142143 virtual void movingWindowCheck (uint32_t currentStep)
143144 {
144- PMACC_AUTO (simBox, SubGrid <simDim>::getInstance ().getSimulationBox ());
145+ PMACC_AUTO (simBox, Environment <simDim>::getInstance (). getSubGrid ().getSimulationBox ());
145146 GridLayout<DIM3> gridLayout (simBox.getLocalSize (), MappingDesc::SuperCellSize::getDataSpace ());
146147 if (MovingWindow::getInstance ().getVirtualWindow (currentStep).doSlide )
147148 {
0 commit comments