WarpX
FieldIO.H
Go to the documentation of this file.
1 /* Copyright 2019 Axel Huebl, David Grote, Igor Andriyash
2  * Remi Lehe
3  *
4  * This file is part of WarpX.
5  *
6  * License: BSD-3-Clause-LBNL
7  */
8 #ifndef WARPX_FielIO_H_
9 #define WARPX_FielIO_H_
10 
11 #include <AMReX_REAL.H>
12 
13 #include <AMReX_BaseFwd.H>
14 
15 #include <array>
16 #include <cstdint>
17 #include <memory>
18 #include <vector>
19 
20 void
21 AverageAndPackVectorField( amrex::MultiFab& mf_avg,
22  const std::array< std::unique_ptr<amrex::MultiFab>, 3 >& vector_field,
23  const amrex::DistributionMapping& dm,
24  const int dcomp, const amrex::IntVect ngrow );
25 
26 void
27 AverageAndPackScalarField( amrex::MultiFab& mf_avg,
28  const amrex::MultiFab & scalar_field,
29  const amrex::DistributionMapping& dm,
30  const int dcomp, const amrex::IntVect ngrow );
31 
32 std::vector<std::uint64_t>
33 getReversedVec( const amrex::IntVect& v );
34 
35 std::vector<double>
36 getReversedVec( const amrex::Real* v );
37 
38 #endif // WARPX_FielIO_H_
void AverageAndPackScalarField(amrex::MultiFab &mf_avg, const amrex::MultiFab &scalar_field, const amrex::DistributionMapping &dm, const int dcomp, const amrex::IntVect ngrow)
std::vector< std::uint64_t > getReversedVec(const amrex::IntVect &v)
void AverageAndPackVectorField(amrex::MultiFab &mf_avg, const std::array< std::unique_ptr< amrex::MultiFab >, 3 > &vector_field, const amrex::DistributionMapping &dm, const int dcomp, const amrex::IntVect ngrow)