WarpX
Loading...
Searching...
No Matches
FieldBoundaries.cpp File Reference
#include "FieldBoundaries.H"
#include "Utils/TextMsg.H"
#include <AMReX_ParmParse.H>
#include <AMReX_SPACE.H>
#include <algorithm>

Namespaces

namespace  warpx
 
namespace  warpx::boundary_conditions
 
namespace  warpx::boundary_conditions::detail
 

Functions

void warpx::boundary_conditions::detail::check_periodicity_consistency (const amrex::Array< FieldBoundaryType, 3 > &field_boundary_lo, const amrex::Array< FieldBoundaryType, 3 > &field_boundary_hi)
 
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.