Peano
Loading...
Searching...
No Matches
TestParticle.h
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#pragma once
4
5#include "tarch/la/Vector.h"
6
7namespace toolbox {
8 namespace particles {
9 namespace assignmentchecks {
10 namespace tests {
11 class TestParticle;
12 } // namespace tests
13 } // namespace assignmentchecks
14 } // namespace particles
15} // namespace toolbox
16
18private:
22
23 // helper variables of vertex particle is associated with
25 int _depth;
26
27public:
28 // Mimic proper particle behaviour
29 enum class ParallelState : int { Local = 0, Virtual = 1 };
30
31public:
34 int particleID,
35 bool local = false
36 );
37
38 int getDepth() const;
39 int getPartid() const;
42 bool isLocal() const;
44
45 void setDepth(const int depth);
46 void setPartid(const int partid);
47 void setIsLocal(const bool isLocal);
51};
void setVertexH(const tarch::la::Vector< Dimensions, double > &x)
TestParticle::ParallelState getParallelState() const
tarch::la::Vector< Dimensions, double > _vertexH
tarch::la::Vector< Dimensions, double > getVertexH() const
void setParallelState(const TestParticle::ParallelState parallelState)
void setX(const tarch::la::Vector< Dimensions, double > &x)
tarch::la::Vector< Dimensions, double > getX() const
TestParticle(const tarch::la::Vector< Dimensions, double > &x, int particleID, bool local=false)
tarch::la::Vector< Dimensions, double > _x
Simple vector class.
Definition Vector.h:159