ImpactX
Loading...
Searching...
No Matches
SplitEqually.H
Go to the documentation of this file.
1/* Copyright 2022-2023 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
15namespace impactx
16{
19 {
20 amrex::Long offset = 0;
21 amrex::Long size = 0;
22 };
23
38 split_equally (amrex::Long npart, amrex::Long index, amrex::Long size);
39
40} // namespace impactx
41
42#endif // IMPACTX_SPLIT_EQUALLY_H
Definition CovarianceMatrixMath.H:25
ParticleChunk split_equally(amrex::Long npart, amrex::Long index, amrex::Long size)
Definition SplitEqually.cpp:15
Definition SplitEqually.H:19
amrex::Long offset
Definition SplitEqually.H:20
amrex::Long size
where to start in the array, in elements
Definition SplitEqually.H:21