WarpX
Loading...
Searching...
No Matches
FieldBoundaries.H File Reference
#include "Utils/WarpXAlgorithmSelection.H"
#include <AMReX_Array.H>
#include <AMReX_Config.H>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  warpx
 
namespace  warpx::boundary_conditions
 

Functions

std::pair< amrex::Array< FieldBoundaryType, 3 >, amrex::Array< FieldBoundaryType, 3 > > warpx::boundary_conditions::parse_field_boundaries ()
 Reads the field boundary conditions from the inputfile. Consistency between lower and upper boundary is checked for each direction: if one is periodic, the other must be periodic as well.
 
amrex::Array< bool, 3 > warpx::boundary_conditions::get_periodicity_array (const amrex::Array< FieldBoundaryType, 3 > &field_boundary_lo, const amrex::Array< FieldBoundaryType, 3 > &field_boundary_hi)
 returns a bool array of size AMREX_SPACEDIM where a given element is true if the corresponding boundary conditions are periodic and false otherwise. Consistency between lower and upper boundary is checked for each direction: if one is periodic, the other must be periodic as well.