OPAL (Object Oriented Parallel Accelerator Library)  2024.1
OPAL
Classes | Functions
ReductionLoc.h File Reference
#include "PETE/IpplExpressions.h"
#include "Field/ReductionLoc.hpp"
Include dependency graph for ReductionLoc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  NDIndex< Dim >
 
class  BareFieldIterator< T, D >
 
class  IndexedBareFieldIterator< T, D >
 
struct  FindLocation< D >
 

Functions

template<class T , class CompOp , class AccOp , unsigned D>
T::PETE_Return_t Reduction (const PETE_Expr< T > &const_expr, CompOp comp_op, AccOp acc_op, NDIndex< D > &loc)
 
template<class T , class C , unsigned int D>
int for_each (const IndexedBareFieldIterator< T, D > &expr, FindLocation< D > &find_loc, C)
 
template<class T , class C , unsigned int D>
int for_each (const BareFieldIterator< T, D > &expr, FindLocation< D > &find_loc, C)
 
template<class T , unsigned D>
T::PETE_Expr_t::PETE_Return_t min (const PETE_Expr< T > &expr, NDIndex< D > &loc)
 
template<class T , unsigned D>
T::PETE_Expr_t::PETE_Return_t max (const PETE_Expr< T > &expr, NDIndex< D > &loc)
 

Function Documentation

template<class T , class C , unsigned int D>
int for_each ( const IndexedBareFieldIterator< T, D > &  expr,
FindLocation< D > &  find_loc,
 
)
inline

Definition at line 47 of file ReductionLoc.h.

References BareFieldIterator< T, D >::GetCurrentLocation(), and FindLocation< D >::Loc.

Here is the call graph for this function:

template<class T , class C , unsigned int D>
int for_each ( const BareFieldIterator< T, D > &  expr,
FindLocation< D > &  find_loc,
 
)
inline

Definition at line 58 of file ReductionLoc.h.

References BareFieldIterator< T, D >::GetCurrentLocation(), and FindLocation< D >::Loc.

Here is the call graph for this function:

template<class T , unsigned D>
T::PETE_Expr_t::PETE_Return_t max ( const PETE_Expr< T > &  expr,
NDIndex< D > &  loc 
)
inline

Definition at line 84 of file ReductionLoc.h.

References PETE_Expr< WrappedExpr >::PETE_unwrap(), and Reduction().

Referenced by _FM3DMagnetoStaticExtended::_FM3DMagnetoStaticExtended(), Expressions::AbsMax(), ParticleBConds< T, Dim >::apply(), PatchBC< T, D, M, C >::apply(), Tracker::applyDrift(), Tracker::applyThinMultipole(), PartBunchBase< T, Dim >::boundp(), ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), MultiBunchHandler::calcBunchBeamParameters(), calcEurekaDomain(), CalcParallelInterpolationDomain(), CalcParallelPeriodicDomain(), centeredInitialize(), Individual::checkBounds(), ComponentFunctionFaceBCApply(), ComponentLinearExtrapolateFaceBCApply(), BoxCornerDomain::compute(), OrbitThreader::computeDriftLengthToBoundingBox(), DistributionMoments::computeMeans(), BoundaryGeometry::computeMeshVoxelization(), DistributionMoments::computeNormalizedEmittance(), ParallelTTracker::computeParticleMatterInteraction(), DistributionMoments::computePercentiles(), AmrBoxLib::computeSelfFields_cycl(), LossDataSink::computeSetStatistics(), Distribution::createDistributionFromFile(), SimulatedBinaryCrossover< T >::crossover(), BlendCrossover< T >::crossover(), FTps< T, N >::divide(), ParallelTTracker::doBinaryRepartition(), AmrParticleBase< PLayout >::domainMapping(), Septum::doPreCheck(), Probe::doPreCheck(), Stripper::doPreCheck(), CCollimator::doPreCheck(), CCollimator::doSetGeom(), EllipticDomain::EllipticDomain(), Distribution::emitParticles(), ValueRange< double >::enlargeIfOutside(), BoundingBox::enlargeToContainBoundingBox(), BoundingBox::enlargeToContainPosition(), TrackCmd::execute(), Option::execute(), SampleCmd::execute(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateFaceBCApply(), DistributionMoments::fillMembers(), FTps< T, N >::filter(), ClosedOrbitFinder< Value_type, Size_type, Stepper >::findOrbit(), FixedPisaNsga2< CrossoverOperator, MutationOperator >::FixedPisaNsga2(), HashPairBuilder< PBase >::for_each(), HashPairBuilderPeriodic< PBase >::for_each(), HashPairBuilderPeriodicParallel< PBase >::for_each(), HashPairBuilderParallel< PBase >::forEach(), FunctionFaceBCApply(), ffa_field_mapper.FFAFieldMapper::gen_cmap(), Distribution::generateBinomial(), Rotation3D::getAxis(), Cyclotron::getdiffs(), PartBunch::getEExtrema(), AmrBoxLib::getEExtrema(), BoundingBox::getIntersectionPoint(), Util::getLengthString(), AmrParticleBase< PLayout >::getLocalBounds_m(), OrbitThreader::getMaxDesignEnergy(), FVps< T, N >::getMaxOrder(), DistributionMoments::getMaxR(), Distribution::getMinTOrZ(), Bend2D::getOutline(), TrueCondition< T, Dim >::getRange(), IndexMap::getRange(), FVps< T, N >::getTopOrder(), Vps< T >::getTopOrder(), TBeamline< T >::getTransform(), FDoubleEigen< N >::hqr2(), BoundaryGeometry::initialize(), InterpolationFaceBCApply(), BoundaryGeometry::intersectLineSegmentBoundary(), BoundaryGeometry::intersectTinyLineSegmentBoundary(), LinearExtrapolateFaceBCApply(), Expressions::Max(), Expressions::Maxa(), PartBunchBase< T, Dim >::maximumAmplitudes(), BoxLibLayout< T, Dim >::MaxRefRatio(), ParallelCyclotronTracker::MtsTracker(), Individual::new_gene(), LaserProfile::normalizeProfileData(), MaxNormRadialPeak::operator()(), operator+(), Tps< T >::operator+=(), operator-(), Tps< T >::operator-=(), FTps< T, N >::operator==(), OrbitThreader::OrbitThreader(), PartBins::PartBins(), PeriodicFaceBCApply(), PoissonBracket(), IndexMap::print(), Object::printHelp(), MGPoissonSolver::printLoadBalanceStats(), Quaternion::Quaternion(), _FM1DProfile2::readMap(), SampleCmd::SampleCmd(), OpalBeamline::save3DLattice(), FTps< T, N >::scaleMonomials(), FlexibleCollimator::setDescription(), PluginElement::setDimensions(), Distribution::setDistParametersGauss(), StraightGeometry::setElementLength(), VarRadiusGeometry::setElementLength(), OutputPlane::setMaxIterations(), ParallelTTracker::setOptionalVariables(), IrregularDomain::setRangeMax(), FieldLayout< Dim >::setup(), MGPoissonSolver::setupMueLuList(), AmrBoxLib::solvePoisson_m(), LossDataSink::splitSets(), UniformCartesian< D, T >::storeSpacingFields(), Cartesian< Dim, MFLOAT >::storeSpacingFields(), FVps< T, N >::substitute(), FTps< T, N >::substitute(), Util::toStringWithThousandSep(), OpalMonitor::update(), Voxel::Voxel(), AmrYtWriter::writeBunch(), H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().

Here is the call graph for this function:

template<class T , unsigned D>
T::PETE_Expr_t::PETE_Return_t min ( const PETE_Expr< T > &  expr,
NDIndex< D > &  loc 
)
inline

Definition at line 76 of file ReductionLoc.h.

References PETE_Expr< WrappedExpr >::PETE_unwrap(), and Reduction().

Referenced by AddGuardCells(), IndexMap::almostEqual(), Undulator::apply(), ParticleBConds< T, Dim >::apply(), PatchBC< T, D, M, C >::apply(), FTpsData< N >::build(), FixedPisaNsga2< CrossoverOperator, MutationOperator >::calcDistances(), calcEurekaDomain(), CalcParallelInterpolationDomain(), CalcParallelPeriodicDomain(), Individual::checkBounds(), ComponentFunctionFaceBCApply(), ComponentLinearExtrapolateFaceBCApply(), BoundaryGeometry::computeMeshVoxelization(), Mesher::computeMinimumAngle(), ParallelTTracker::computeParticleMatterInteraction(), cos(), cosh(), SimulatedBinaryCrossover< T >::crossover(), BlendCrossover< T >::crossover(), FTps< T, N >::divide(), Probe::doPreCheck(), CCollimator::doPreCheck(), EllipticDomain::EllipticDomain(), ValueRange< double >::enlargeIfOutside(), BoundingBox::enlargeToContainBoundingBox(), BoundingBox::enlargeToContainPosition(), FixedPisaNsga2< CrossoverOperator, MutationOperator >::environmentalSelection(), erf(), ParallelTTracker::evenlyDistributeParticles(), SampleCmd::execute(), exp(), ExpMap(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateFaceBCApply(), BoundaryGeometry::fastIsInside(), Tps< T >::filter(), FTps< T, N >::filter(), FunctionFaceBCApply(), ffa_field_mapper.FFAFieldMapper::gen_cmap(), PartBunchBase< T, Dim >::get_bounds(), Cyclotron::getdiffs(), PartBunch::getEExtrema(), AmrBoxLib::getEExtrema(), AmrParticleBase< PLayout >::getGlobalBounds_m(), _FM3DH5BlockBase::getIndex(), Distribution::getMaxTOrZ(), FVps< T, N >::getMinOrder(), IndexMap::getRange(), FTps< T, N >::getSubstOrders(), TBeamline< T >::getTransform(), FVps< T, N >::getTruncOrder(), Vps< T >::getTruncOrder(), Tps< T >::getTruncOrder(), FTps< T, N >::grow(), Tps< T >::integral(), FTps< T, N >::integral(), FFTBoxPoissonSolver::integratedGreensFunction(), InterpolationFaceBCApply(), BoundaryGeometry::intersectLineSegmentBoundary(), BoundaryGeometry::intersectTinyLineSegmentBoundary(), FVps< T, N >::inverse(), Tps< T >::inverse(), FTps< T, N >::inverse(), LinearExtrapolateFaceBCApply(), log(), Matrix< T >::Matrix(), Expressions::Min(), Tps< T >::multiply(), FTps< T, N >::multiply(), Tps< T >::multiplyVariable(), FTps< T, N >::multiplyVariable(), FVps< T, N >::myInverse(), Individual::new_gene(), FVps< T, N >::operator*(), operator+(), Matrix< T >::operator+=(), Tps< T >::operator+=(), operator-(), Matrix< T >::operator-=(), Tps< T >::operator-=(), Tps< T >::operator==(), FTps< T, N >::operator==(), OptimizeCmd::OptimizeCmd(), OrbitThreader::OrbitThreader(), PeriodicFaceBCApply(), PoissonBracket(), Timing::print(), MGPoissonSolver::printLoadBalanceStats(), IndexMap::query(), AmrBoxLib::regrid(), OpalSimulation::run(), run_opal(), SampleCmd::SampleCmd(), Tps< T >::scaleMonomials(), FTps< T, N >::scaleMonomials(), FlexibleCollimator::setDescription(), PluginElement::setDimensions(), IrregularDomain::setRangeMin(), Bend2D::setupFringeWidths(), FFTBoxPoissonSolver::shiftedIntGreensFunction(), sin(), sinh(), sqrt(), UniformCartesian< D, T >::storeSpacingFields(), Cartesian< Dim, MFLOAT >::storeSpacingFields(), VpsMap< T >::substitute(), FVps< T, N >::substitute(), FTps< T, N >::substitute(), OpalBeamline::switchElements(), OrbitThreader::trackBack(), TransportMap< T, N >::TransportMap(), ParallelTTracker::updateReferenceParticle(), Voxel::Voxel(), AmrYtWriter::writeBunch(), H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPC::writeStepData().

Here is the call graph for this function:

template<class T , class CompOp , class AccOp , unsigned D>
T::PETE_Return_t Reduction ( const PETE_Expr< T > &  const_expr,
CompOp  comp_op,
AccOp  acc_op,
NDIndex< D > &  loc 
)