Peano
Loading...
Searching...
No Matches
CreateGrid.cpp
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#include "CreateGrid.h"
4
5#include "Constants.h"
6
8 const tarch::la::Vector<DIMENSIONS, double>& x,
9 const tarch::la::Vector<DIMENSIONS, double>& h
10) {}
11
13 const tarch::la::Vector<DIMENSIONS, double>& x,
14 const tarch::la::Vector<DIMENSIONS, double>& h
15) {}
16
17void tests::peano4::grid::CreateGrid::loadCell(const ::peano4::grid::GridTraversalEvent& event) {}
18
19void tests::peano4::grid::CreateGrid::storeCell(const ::peano4::grid::GridTraversalEvent& event) {}
20
21void tests::peano4::grid::CreateGrid::enterCell(const ::peano4::grid::GridTraversalEvent& event) {}
22
23void tests::peano4::grid::CreateGrid::leaveCell(const ::peano4::grid::GridTraversalEvent& event) {}
24
25::peano4::grid::TraversalObserver* tests::peano4::grid::CreateGrid::clone(int spacetreeId) { return new CreateGrid(); }
26
27std::vector<::peano4::grid::GridControlEvent> tests::peano4::grid::CreateGrid::getGridControlEvents() const {
28 std::vector<::peano4::grid::GridControlEvent> controlEvents;
29 ::peano4::grid::GridControlEvent newEvent;
30 newEvent.setRefinementControl(::peano4::grid::GridControlEvent::RefinementControl::Refine);
31#if DIMENSIONS == 2
32 newEvent.setOffset({0.0, 0.0});
33 newEvent.setWidth({1.0, 1.0});
34 newEvent.setH({MinH, MinH});
35#else
36 newEvent.setOffset({0.0, 0.0, 0.0});
37 newEvent.setWidth({1.0, 1.0, 1.0});
38 newEvent.setH({MinH, MinH, MinH});
39#endif
40 controlEvents.push_back(newEvent);
41 return controlEvents;
42}
void loadCell(const ::peano4::grid::GridTraversalEvent &event) override
void storeCell(const ::peano4::grid::GridTraversalEvent &event) override
void enterCell(const ::peano4::grid::GridTraversalEvent &event) override
void beginTraversal(const tarch::la::Vector< DIMENSIONS, double > &x, const tarch::la::Vector< DIMENSIONS, double > &h) override
Definition CreateGrid.cpp:7
TraversalObserver * clone(int spacetreeId) override
void endTraversal(const tarch::la::Vector< DIMENSIONS, double > &x, const tarch::la::Vector< DIMENSIONS, double > &h) override
std::vector<::peano4::grid::GridControlEvent > getGridControlEvents() const override
void leaveCell(const ::peano4::grid::GridTraversalEvent &event) override