Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 30ff92d1 authored by frey_m's avatar frey_m
Browse files

file header for AMR Ippl classes

parent 60d0264f
No related branches found
No related tags found
1 merge request!314File header to AMR Ippl classes
//
// Class AmrParticleBase
// Ippl interface for AMR particles.
// The derived classes need to extend the base class by subsequent methods.
//
// template <class FT, unsigned Dim, class PT>
// void scatter(const ParticleAttrib<FT>& attrib, AmrField_t& f,
// const ParticleAttrib<Vektor<PT, Dim> >& pp,
// int lbase = 0, int lfine = -1) const;
//
//
// gather the data from the given Field into the given attribute, using
// the given Position attribute
//
// template <class FT, unsigned Dim, class PT>
// void gather(ParticleAttrib<FT>& attrib, const AmrField_t& f,
// const ParticleAttrib<Vektor<PT, Dim> >& pp,
// int lbase = 0, int lfine = -1) const;
//
// Copyright (c) 2016 - 2020, Matthias Frey, Uldis Locans, Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// Implemented as part of the PhD thesis
// "Precise Simulations of Multibunches in High Intensity Cyclotrons"
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#ifndef AMR_PARTICLE_BASE_H
#define AMR_PARTICLE_BASE_H
......@@ -7,27 +42,6 @@
#include "AmrParticleLevelCounter.h"
/* The derived classes need to extend the base class by subsequent methods.
*
* scatter the data from the given attribute onto the given Field, using
* the given Position attribute
*
* template <class FT, unsigned Dim, class PT>
* void scatter(const ParticleAttrib<FT>& attrib, AmrField_t& f,
* const ParticleAttrib<Vektor<PT, Dim> >& pp,
* int lbase = 0, int lfine = -1) const;
*
*
* gather the data from the given Field into the given attribute, using
* the given Position attribute
*
* template <class FT, unsigned Dim, class PT>
* void gather(ParticleAttrib<FT>& attrib, const AmrField_t& f,
* const ParticleAttrib<Vektor<PT, Dim> >& pp,
* int lbase = 0, int lfine = -1) const;
*/
template<class PLayout>
class AmrParticleBase : public IpplParticleBase<PLayout> {
......
// Implementation file of the AmrParticleBase class,
// interface for AMR particles.
//
// Copyright (c) 2016 - 2020, Matthias Frey, Uldis Locans, Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// OPAL is licensed under GNU GPL version 3.
#ifndef AMR_PARTICLE_BASE_HPP
#define AMR_PARTICLE_BASE_HPP
......
//
// Class AmrParticleLevelCounter
// Helper class in order to keep track of particles
// per level. It allows to iterate faster through
// particles at a certain level.
// The class is built on the STL map container where
// the key represents the level and the value is the
// the number of particles at that level.
//
// Copyright (c) 2016 - 2020, Matthias Frey Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// Implemented as part of the PhD thesis
// "Precise Simulations of Multibunches in High Intensity Cyclotrons"
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#ifndef AMR_PARTICLE_LEVEL_COUNTER_H
#define AMR_PARTICLE_LEVEL_COUNTER_H
......@@ -6,14 +31,6 @@
#include <functional>
#include <iterator>
/*!
* Helper class in order to keep track of particles
* per level. It allows to iterate faster through
* particles at a certain level.
* The class is built on the STL map container where
* the key represents the level and the value is the
* the number of particles at that level.
*/
template <
class Key,
class T,
......
//
// Class ParticleAmrLayout
// Particle layout for AMR particles.
//
// Copyright (c) 2016 - 2020, Matthias Frey, Uldis Locans, Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// Implemented as part of the PhD thesis
// "Precise Simulations of Multibunches in High Intensity Cyclotrons"
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#ifndef PARTICLE_AMR_LAYOUT_H
#define PARTICLE_AMR_LAYOUT_H
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment