ImpactX
Functions
impactx::detail Namespace Reference

Functions

template<typename T >
int queryAddResize (amrex::ParmParse &pp, const char *name, std::vector< T > &ref)
 
std::pair< amrex::ParticleReal, intquery_ds (amrex::ParmParse &pp_element, int nslice_default)
 
std::map< std::string, amrex::ParticleReal > query_alignment (amrex::ParmParse &pp_element)
 
amrex::Vector< amrex::Real > read_mr_prob_relative ()
 

Function Documentation

◆ query_alignment()

std::map<std::string, amrex::ParticleReal> impactx::detail::query_alignment ( amrex::ParmParse pp_element)

Read the Alignment parameters dx, dy and rotation from inputs

Parameters
pp_elementthe element being read
Returns
key-value pairs for dx, dy and rotation_degree

◆ query_ds()

std::pair<amrex::ParticleReal, int> impactx::detail::query_ds ( amrex::ParmParse pp_element,
int  nslice_default 
)

Read the Thick element parameters ds and nslice

Parameters
pp_elementthe element being read
nslice_defaultthe default number of slices to use if not specified
Returns
total element length (ds) and number of slices through it (nslice)

◆ queryAddResize()

template<typename T >
int impactx::detail::queryAddResize ( amrex::ParmParse pp,
const char *  name,
std::vector< T > &  ref 
)

Resizing version of amrex::ParmParse::queryAdd

Work-around for https://github.com/AMReX-Codes/amrex/pull/3220

Template Parameters
Tvector type
Parameters
[in,out]ppthe parameter parser on the element to query
[in]namekey name
[in,out]refvector with default values
Returns
indicates if key existed previously

◆ read_mr_prob_relative()

amrex::Vector<amrex::Real> impactx::detail::read_mr_prob_relative ( )