ImpactX
Toggle main menu visibility
Loading...
Searching...
No Matches
src
particles
SplitEqually.H
Go to the documentation of this file.
1
/* Copyright 2022-2026 The Regents of the University of California, through Lawrence
2
* Berkeley National Laboratory (subject to receipt of any required
3
* approvals from the U.S. Dept. of Energy). All rights reserved.
4
*
5
* This file is part of ImpactX.
6
*
7
* Authors: Axel Huebl, Chad Mitchell
8
* License: BSD-3-Clause-LBNL
9
*/
10
#ifndef IMPACTX_SPLIT_EQUALLY_H
11
#define IMPACTX_SPLIT_EQUALLY_H
12
13
#include <
AMReX_INT.H
>
14
15
namespace
impactx
16
{
18
struct
ParticleChunk
19
{
20
amrex::Long
offset
= 0;
21
amrex::Long
size
= 0;
22
};
23
37
ParticleChunk
38
split_equally
(
amrex::Long
npart,
amrex::Long
index,
amrex::Long
size);
39
40
}
// namespace impactx
41
42
#endif
// IMPACTX_SPLIT_EQUALLY_H
AMReX_INT.H
amrex::Long
amrex_long Long
impactx
Definition
CovarianceMatrixMath.H:25
impactx::split_equally
ParticleChunk split_equally(amrex::Long npart, amrex::Long index, amrex::Long size)
Definition
SplitEqually.cpp:15
impactx::ParticleChunk
Definition
SplitEqually.H:19
impactx::ParticleChunk::offset
amrex::Long offset
Definition
SplitEqually.H:20
impactx::ParticleChunk::size
amrex::Long size
where to start in the array, in elements
Definition
SplitEqually.H:21
Generated by
1.17.0