OPAL (Object Oriented Parallel Accelerator Library)
2024.1
OPAL
|
#include <exception>
#include <stdexcept>
#include <string>
Go to the source code of this file.
Classes | |
struct | IpplCTAssert< B > |
struct | IpplCTAssert< true > |
class | assertion |
Macros | |
#define | CTAssert(c) IpplCTAssert<(c)>::test() |
#define | PAssert(c) if (!(c)) toss_cookies( #c, __FILE__, __LINE__ ); |
#define | PAssert_CMP(cmp, a, b) if (!(cmp)) toss_cookies(#cmp, #a, #b, a, b, __FILE__, __LINE__); |
#define | PAssert_EQ(a, b) PAssert_CMP(a == b, a, b) |
#define | PAssert_NE(a, b) PAssert_CMP(a != b, a, b) |
#define | PAssert_LT(a, b) PAssert_CMP(a < b, a, b) |
#define | PAssert_LE(a, b) PAssert_CMP(a <= b, a, b) |
#define | PAssert_GT(a, b) PAssert_CMP(a > b, a, b) |
#define | PAssert_GE(a, b) PAssert_CMP(a >= b, a, b) |
#define | PInsist(c, m) if (!(c)) insist( #c, m, __FILE__, __LINE__ ); |
Functions | |
void | toss_cookies (const char *cond, const char *file, int line) |
template<class S , class T > | |
void | toss_cookies (const char *cond, const char *astr, const char *bstr, S a, T b, const char *file, int line) |
void | insist (const char *cond, const char *msg, const char *file, int line) |
#define CTAssert | ( | c | ) | IpplCTAssert<(c)>::test() |
Definition at line 35 of file PAssert.h.
Referenced by SubFieldTraits< T, Dim, NDIndex< Dim >, NDIndex< Dim2 > >::combine(), SubFieldTraits< T, Dim, NDIndex< Dim >, SOffset< Dim2 > >::combine(), SubFieldTraits< T, Dim, SOffset< Dim >, SOffset< Dim2 > >::combine(), SubFieldTraits< T, Dim, SOffset< Dim >, NDIndex< Dim2 > >::combine(), SubFieldTraits< T, Dim, NDIndex< Dim >, NDIndex< Dim2 > >::construct(), SubFieldTraits< T, Dim, NDIndex< Dim >, SOffset< Dim2 > >::construct(), SubFieldTraits< T, Dim, SOffset< Dim >, SOffset< Dim2 > >::construct(), SIndex< Dim >::operator()(), IndexedBareField< T, Dim, Brackets >::operator()(), IndexedField< T, D, B, M, C >::operator=(), IndexedSIndex< Dim, Brackets >::operator=(), IndexedBareField< T, Dim, Brackets >::operator=(), IndexedField< T, D, B, M, C >::operator[](), IndexedSIndex< Dim, Brackets >::operator[](), IndexedBareField< T, Dim, Brackets >::operator[](), SIndex< Dim >::operator[](), SOffset< Dim >::SOffset(), and vec< T, Length >::vec().
#define PAssert | ( | c | ) | if (!(c)) toss_cookies( #c, __FILE__, __LINE__ ); |
Definition at line 102 of file PAssert.h.
Referenced by BareField< T, Dim >::accumGuardCells(), LField< T, Dim >::allocateStorage(), GreenWakeFunction::apply(), ParallelPeriodicFace< T, D, M, C >::apply(), ParallelInterpolationFace< T, D, M, C >::apply(), assign(), LField< T, Dim >::CanCompress(), BareFieldIterator< T, D >::CanCompress(), RegionLayout< T, Dim, MeshType >::changeDomain(), BoxLibLayout< T, Dim >::clearLevelMask(), H5PartWrapper::copyFile(), IpplParticleBase< PLayout >::create(), IpplParticleBase< PLayout >::createWithID(), IpplParticleBase< PLayout >::destroy(), BareFieldIterator< T, D >::done(), AmrBoxLib::doRegrid_m(), BoxLibLayout< T, Dim >::EnforcePeriodicWhere(), FieldLayout< Dim >::FieldLayout(), BareField< T, Dim >::fillGuardCells(), BareFieldIterator< T, D >::finishScalarCode(), BareFieldIterator< T, D >::GetBareField(), IrregularDomain::getBoundaryStencil(), BareField< T1, D >::getLayout(), DiscMeta::getLineNumber(), CompressedBrickIterator< T, Dim >::getMessage(), IpplParticleBase< PLayout >::getMessage(), IpplParticleBase< PLayout >::getMessageAndCreate(), Message::getmsg(), DiscMeta::getNumWords(), BoundaryGeometry::getPoint(), IpplParticleBase< PLayout >::getSingleMessage(), FieldLayout< Dim >::getVnodesPerDirection(), DiscMeta::getWords(), IpplParticleBase< PLayout >::ghostDestroy(), IpplParticleBase< PLayout >::ghostGetMessage(), IpplParticleBase< PLayout >::ghostGetSingleMessage(), IpplParticleBase< PLayout >::ghostPutMessage(), IpplParticleBase< PLayout >::globalCreate(), IndexedReceive(), IndexedSend(), BoxLibLayout< T, Dim >::initBaseBox_m(), BoundaryGeometry::initialize(), IpplParticleBase< PLayout >::initialize(), BoundaryGeometry::intersectTinyLineSegmentBoundary(), MacroCmd::makeTemplate(), DomainMap< Key, T, Touches, Contains, Split >::iterator::op_pp(), DomainMap< Key, T, Touches, Contains, Split >::const_iterator::op_pp(), DomainMap< Key, T, Touches, Contains, Split >::touch_iterator::op_pp(), H5PartWrapper::open(), Vektor< T, D >::operator()(), Tenzor< T, D >::operator()(), AntiSymTenzor< T, D >::operator()(), SymTenzor< T, D >::operator()(), AntiSymTenzor< T, 1 >::operator()(), BareFieldIterator< T, D >::operator*(), DomainMap< Key, T, Touches, Contains, Split >::iterator::operator*(), DomainMap< Key, T, Touches, Contains, Split >::const_iterator::operator*(), DomainMap< Key, T, Touches, Contains, Split >::touch_iterator::operator*(), DomainMap< Key, T, Touches, Contains, Split >::touch_iterator::operator->(), Vektor< T, D >::operator[](), AntiSymTenzor< T, D >::operator[](), AntiSymTenzor< T, 1 >::operator[](), DiscConfig::parse_config(), LineTemplate::parseTemplate(), SequenceTemplate::parseTemplate(), IpplParticleBase< PLayout >::performDestroy(), BoxLibLayout< T, Dim >::PeriodicShift(), BareFieldIterator< T, D >::prepareForScalarCode(), FieldPrint< T, Dim >::print(), FieldDebugPrint< T, Dim >::print(), IpplParticleBase< PLayout >::putMessage(), DiscParticle::read(), FieldLayout< Dim >::read(), DiscField< Dim >::read_data(), DiscParticle::read_meta(), DiscField< Dim >::read_meta(), _Fieldmap::readHeader(), ParticleCashedLayout< T, Dim, Mesh >::rebuild_interaction_data(), ParticleInteractLayout< T, Dim, Mesh >::rebuild_interaction_data(), IpplParticleBase< PLayout >::resetID(), DiscBuffer::resize(), BareFieldIterator< T, D >::SetCurrentLocation(), IndexedBareFieldIterator< T, D >::SetCurrentLocation(), FFT< SineTransform, Dim, T >::setup(), GreenWakeFunction::simpson(), FMGPoissonSolver::solve(), ParticleCashedLayout< T, Dim, Mesh >::swap_ghost_particles(), ParticleInteractLayout< T, Dim, Mesh >::swap_ghost_particles(), LField< T, Dim >::swapData(), AmrParticleBase< PLayout >::update(), IpplParticleBase< PLayout >::update(), BoxLibLayout< T, Dim >::Where(), DiscParticle::write(), _Fieldmap::write3DField(), and BoundaryGeometry::writeGeomToVtk().
#define PAssert_CMP | ( | cmp, | |
a, | |||
b | |||
) | if (!(cmp)) toss_cookies(#cmp, #a, #b, a, b, __FILE__, __LINE__); |
#define PAssert_EQ | ( | a, | |
b | |||
) | PAssert_CMP(a == b, a, b) |
Definition at line 104 of file PAssert.h.
Referenced by FFTPACK< T >::callFFT(), Div(), SubBareField< T, Dim, S >::get(), ParticleAttrib< T >::getMessage(), Grad(), BareFieldIterator< T, D >::IsCompressed(), SubFieldIter< T, Dim, NDIndex< Dim > >::IsCompressed(), AntiSymTenzor< T, 1 >::operator()(), AntiSymTenzor< T, D >::AssignProxy::operator=(), AntiSymTenzor< T, 1 >::AssignProxy::operator=(), DiscConfig::parse_config(), IpplInfo::pop(), DiscField< Dim >::read_data(), FFTBase< Dim, T >::setDirectionName(), FieldLayout< Dim >::setup(), FFT< SineTransform, Dim, T >::setup(), ParticleSpatialLayout< T, Dim, Mesh >::short_swap_particles(), Index::split(), Track::stash(), IpplTimings::stash(), IpplInfo::stash(), ParticleSpatialLayout< T, Dim, Mesh >::swap_particles(), FFT< CCTransform, Dim, T >::transform(), MultiBunchHandler::updatePathLength(), and SubBareField< T, Dim, S >::write().
#define PAssert_GE | ( | a, | |
b | |||
) | PAssert_CMP(a >= b, a, b) |
Definition at line 109 of file PAssert.h.
Referenced by LField< T, Dim >::allocateStorage(), calcEurekaDomain(), LField< T, Dim >::CanCompress(), ScatteringPhysics::copyFromBunch(), Distribution::doRestartOpalCycl(), Distribution::doRestartOpalT(), Index::general_intersect(), MultiBunchHandler::getBunchInfo(), AmrParticleLevelCounter< size_t, size_t >::getLocalNumAtLevel(), AmrParticleLevelCounter< size_t, size_t >::getLocalNumUpToLevel(), DiscBuffer::grow(), SymTenzor< T, D >::HL(), Index::Index(), DiscField< Dim >::read_data(), DiscBuffer::resize(), Multipole::setNormalComponent(), ScatteringPhysics::setTimeStepForLeavingParticles(), and ParticleAttrib< T >::sort().
#define PAssert_GT | ( | a, | |
b | |||
) | PAssert_CMP(a > b, a, b) |
Definition at line 108 of file PAssert.h.
Referenced by LField< T, Dim >::allocateStorage(), BCondBase< T, D, M, C >::BCondBase(), LField< T, Dim >::CanCompress(), lcm(), MultiBunchHandler::MultiBunchHandler(), IpplTimings::pop(), DiscField< Dim >::read_data(), Multipole::setSkewComponent(), FFT< RCTransform, Dim, T >::setup(), and Index::split().
#define PAssert_LE | ( | a, | |
b | |||
) | PAssert_CMP(a <= b, a, b) |
Definition at line 107 of file PAssert.h.
Referenced by calcEurekaDomain(), ScatteringPhysics::copyFromBunch(), IpplParticleBase< PLayout >::putMessage(), and ScatteringPhysics::setTimeStepForLeavingParticles().
#define PAssert_LT | ( | a, | |
b | |||
) | PAssert_CMP(a < b, a, b) |
Definition at line 106 of file PAssert.h.
Referenced by FFTBase< Dim, T >::activeDimension(), CSRIGFWakeFunction::apply(), CSRWakeFunction::apply(), FFTPACK< T >::callFFT(), LField< T, Dim >::CanCompress(), LField< T, Dim >::CanCompressBasedOnPhysicalCells(), PartBunchBase< T, Dim >::countTotalNumPerBunch(), UniformCartesian< D, T >::get_meshSpacing(), Cartesian< Dim, MFLOAT >::get_meshSpacing(), MultiBunchHandler::getBunchInfo(), ParticleSpatialLayout< T, Dim, Mesh >::getEmptyNode(), _FM3DMagnetoStaticExtended::getIndex(), _FM3DMagnetoStatic::getIndex(), DiscMeta::getLineNumber(), PartBunchBase< T, Dim >::getLocalNumPerBunch(), ParticleSpatialLayout< T, Dim, Mesh >::getNodeCount(), DiscMeta::getNumWords(), PartBunchBase< T, Dim >::getTotalNumPerBunch(), SymTenzor< T, D >::HL(), OpalParticle::operator[](), Tenzor< T, D >::operator[](), SymTenzor< T, D >::operator[](), IpplParticleBase< PLayout >::putMessage(), MultiBunchHandler::readBunch(), PartBunchBase< T, Dim >::setLocalNumPerBunch(), PartBunchBase< T, Dim >::setTotalNumPerBunch(), FFT< RCTransform, Dim, T >::setup(), FFT< SineTransform, Dim, T >::setup(), ParticleAttrib< T >::sort(), Index::split(), and FFTBase< Dim, T >::transformDim().
#define PAssert_NE | ( | a, | |
b | |||
) | PAssert_CMP(a != b, a, b) |
Definition at line 105 of file PAssert.h.
Referenced by Index::Index(), LField< T, Dim >::LField(), and LField< T, Dim >::ReallyUncompress().
Definition at line 120 of file PAssert.h.
Referenced by AntiSymTenzor< T, D >::AntiSymTenzor(), assign(), Cartesian< Dim, MFLOAT >::Cartesian(), CenteredFieldLayout< Dim, Mesh, Centering >::CenteredFieldLayout(), Communicate::clear_ok_messages(), cofactors(), SubFieldTraits< T, Dim, S1, S2 >::combine(), SubFieldTraits< T, Dim, S1, S2 >::construct(), det(), IpplInfo::find_smp_nodes(), BrickIterator< T, Dim >::getMessage(), UserList::getUser(), UniformCartesian< D, T >::initialize(), Cartesian< Dim, MFLOAT >::initialize(), FieldLayout< Dim >::initialize(), NDIndex< Dim >::NDIndex(), NDRegion< T, Dim >::NDRegion(), ParticleAttrib< T >::operator()(), AssertEquals::operator()(), AntiSymTenzor< T, 1 >::operator=(), Communicate::perform_resend(), SubFieldIter< T, Dim, NDIndex< Dim > >::plugBase(), Communicate::receive_block(), RegionLayout< T, Dim, MeshType >::RegionLayout(), CommMPI::resend(), FFT< RCTransform, Dim, T >::setup(), FieldLayout< Dim >::setup(), FFT< RCTransform, 1U, T >::setup(), FFT< SineTransform, Dim, T >::setup(), SymTenzor< T, D >::SymTenzor(), Tenzor< T, D >::Tenzor(), UniformCartesian< D, T >::UniformCartesian(), Communicate::unpack_message(), Communicate::unpack_retransmission_request(), Vektor< int, 3 >::Vektor(), SubParticleAttrib< PA, T, Dim >::write(), and IndexedBareField< T, Dim, Brackets >::write().
void insist | ( | const char * | cond, |
const char * | msg, | ||
const char * | file, | ||
int | line | ||
) |
Definition at line 92 of file PAssert.cpp.
void toss_cookies | ( | const char * | cond, |
const char * | file, | ||
int | line | ||
) |
Definition at line 79 of file PAssert.cpp.