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 <WarpX.H>
12 
13 void
14 AverageAndPackVectorField( amrex::MultiFab& mf_avg,
15  const std::array< std::unique_ptr<amrex::MultiFab>, 3 >& vector_field,
16  const amrex::DistributionMapping& dm,
17  const int dcomp, const int ngrow );
18 
19 void
20 AverageAndPackScalarField( amrex::MultiFab& mf_avg,
21  const amrex::MultiFab & scalar_field,
22  const amrex::DistributionMapping& dm,
23  const int dcomp, const int ngrow );
24 
25 std::vector<std::uint64_t>
26 getReversedVec( const amrex::IntVect& v );
27 
28 std::vector<double>
29 getReversedVec( const amrex::Real* v );
30 
31 #endif // WARPX_FielIO_H_
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 int ngrow)
void AverageAndPackScalarField(amrex::MultiFab &mf_avg, const amrex::MultiFab &scalar_field, const amrex::DistributionMapping &dm, const int dcomp, const int ngrow)