Commit 476b69b7 authored by frey_m's avatar frey_m
Browse files

AMR test case

modified:   ippl/test/AMR/AmrPartBunch.cpp
modified:   ippl/test/AMR/AmrPartBunch.h
parent 8ded7449
......@@ -191,22 +191,24 @@ Vector_t AmrPartBunch::getP(int i) {
}
// Vector_t AmrPartBunch::getE(int i) {
Vector_t AmrPartBunch::getE(int i) {
// int l, g, dq;
// std::tie(l,g,dq) = idxMap_m[i];
// return Vector_t(m_particles[l][g][dq].m_data[4],
// m_particles[l][g][dq].m_data[5],
// m_particles[l][g][dq].m_data[6]);
// }
return Vector_t(0.0, 0.0, 0.0);
}
//
//
// Vector_t AmrPartBunch::getB(int i) {
Vector_t AmrPartBunch::getB(int i) {
// int l, g, dq;
// std::tie(l,g,dq) = idxMap_m[i];
// return Vector_t(m_particles[l][g][dq].m_data[7],
// m_particles[l][g][dq].m_data[8],
// m_particles[l][g][dq].m_data[9]);
// }
return Vector_t(0.0, 0.0, 0.0);
}
void AmrPartBunch::setR(Vector_t pos, int i) {
......@@ -235,19 +237,19 @@ void AmrPartBunch::setP(Vector_t v, int i) {
}
// void AmrPartBunch::setE(Vector_t Ef, int i) {
void AmrPartBunch::setE(Vector_t Ef, int i) {
// int l, g, dq;
// std::tie(l,g,dq) = idxMap_m[i];
//
// for (int d = 0; d < 3; ++d)
// m_particles[l][g][dq].m_data[d + 4] = Ef(d);
// }
}
//
//
// void AmrPartBunch::setB(Vector_t Bf, int i) {
void AmrPartBunch::setB(Vector_t Bf, int i) {
// int l, g, dq;
// std::tie(l,g,dq) = idxMap_m[i];
//
// for (int d = 0; d < 3; ++d)
// m_particles[l][g][dq].m_data[d + 7] = Bf(d);
// }
}
......@@ -89,9 +89,9 @@ public:
inline Vector_t getP(int i);
// inline Vector_t getE(int i);
inline Vector_t getE(int i);
// inline Vector_t getB(int i);
inline Vector_t getB(int i);
inline void setR(Vector_t pos, int i);
......@@ -99,9 +99,9 @@ public:
inline void setP(Vector_t v, int i);
// inline void setE(Vector_t Ef, int i);
inline void setE(Vector_t Ef, int i);
// inline void setB(Vector_t Bf, int i);
inline void setB(Vector_t Bf, int i);
void destroyAll() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment