Peano
Loading...
Searching...
No Matches
swift2::dastgenTest Namespace Reference

Functions

template<typename ParticleContainer >
void checkDastgen (ParticleContainer &assignedParticles)
 Main testing function.
 
void checkBooleans (tests::swift2::dastgenTest::globaldata::dummyPart &particle)
 Perform all the checks on a particle's boolean members.
 
void checkDoubles (tests::swift2::dastgenTest::globaldata::dummyPart &particle)
 Perform all the checks on a particle's double members.
 
void checkEnums (tests::swift2::dastgenTest::globaldata::dummyPart &particle)
 Perform all the checks on a particle's enum members.
 
void checkIntegers (tests::swift2::dastgenTest::globaldata::dummyPart &particle)
 Perform all the checks on a particle's integer members.
 
void checkStrings (tests::swift2::dastgenTest::globaldata::dummyPart &particle)
 Perform all the checks on a particle's string members.
 
void checkBooleanArrays (tests::swift2::dastgenTest::globaldata::dummyPart &particle)
 Perform all the checks on a particle's boolean array members.
 
void checkDoubleArrays (tests::swift2::dastgenTest::globaldata::dummyPart &particle)
 Perform all the checks on a particle's double array members.
 
void checkIntegerArrays (tests::swift2::dastgenTest::globaldata::dummyPart &particle)
 Perform all the checks on a particle's integer array members.
 
void checkPeanoDoubleArrays (tests::swift2::dastgenTest::globaldata::dummyPart &particle)
 Perform all the checks on a particle's double array members.
 
void checkPeanoIntegerArrays (tests::swift2::dastgenTest::globaldata::dummyPart &particle)
 Perform all the checks on a particle's integer array members.
 
void checkUserDefinedType (tests::swift2::dastgenTest::globaldata::dummyPart &particle)
 Perform all the checks on a particle's user defined types.
 
void checkConstructors ()
 Check the constructor methods.
 
template<typename Particle >
void dummyMoveForwardInTime ()
 A dummy function to move the simulation forward in time.
 
template<typename Particle >
void reportStep (const std::string &particleName)
 Report time-step size and current time at the end of a step.
 

Function Documentation

◆ checkBooleanArrays()

void swift2::dastgenTest::checkBooleanArrays ( tests::swift2::dastgenTest::globaldata::dummyPart & particle)

Perform all the checks on a particle's boolean array members.

◆ checkBooleans()

void swift2::dastgenTest::checkBooleans ( tests::swift2::dastgenTest::globaldata::dummyPart & particle)

Perform all the checks on a particle's boolean members.

◆ checkConstructors()

void swift2::dastgenTest::checkConstructors ( )

Check the constructor methods.

◆ checkDastgen()

template<typename ParticleContainer >
void swift2::dastgenTest::checkDastgen ( ParticleContainer & assignedParticles)

Main testing function.

Should call getters and setters for all available variables, where applicable. Also try constructor versions of particles.

◆ checkDoubleArrays()

void swift2::dastgenTest::checkDoubleArrays ( tests::swift2::dastgenTest::globaldata::dummyPart & particle)

Perform all the checks on a particle's double array members.

◆ checkDoubles()

void swift2::dastgenTest::checkDoubles ( tests::swift2::dastgenTest::globaldata::dummyPart & particle)

Perform all the checks on a particle's double members.

◆ checkEnums()

void swift2::dastgenTest::checkEnums ( tests::swift2::dastgenTest::globaldata::dummyPart & particle)

Perform all the checks on a particle's enum members.

◆ checkIntegerArrays()

void swift2::dastgenTest::checkIntegerArrays ( tests::swift2::dastgenTest::globaldata::dummyPart & particle)

Perform all the checks on a particle's integer array members.

◆ checkIntegers()

void swift2::dastgenTest::checkIntegers ( tests::swift2::dastgenTest::globaldata::dummyPart & particle)

Perform all the checks on a particle's integer members.

◆ checkPeanoDoubleArrays()

void swift2::dastgenTest::checkPeanoDoubleArrays ( tests::swift2::dastgenTest::globaldata::dummyPart & particle)

Perform all the checks on a particle's double array members.

◆ checkPeanoIntegerArrays()

void swift2::dastgenTest::checkPeanoIntegerArrays ( tests::swift2::dastgenTest::globaldata::dummyPart & particle)

Perform all the checks on a particle's integer array members.

◆ checkStrings()

void swift2::dastgenTest::checkStrings ( tests::swift2::dastgenTest::globaldata::dummyPart & particle)

Perform all the checks on a particle's string members.

◆ checkUserDefinedType()

void swift2::dastgenTest::checkUserDefinedType ( tests::swift2::dastgenTest::globaldata::dummyPart & particle)

Perform all the checks on a particle's user defined types.

◆ dummyMoveForwardInTime()

template<typename Particle >
void swift2::dastgenTest::dummyMoveForwardInTime ( )

A dummy function to move the simulation forward in time.

The time step size is hard-coded such that the sim runs for 2 steps.

◆ reportStep()

template<typename Particle >
void swift2::dastgenTest::reportStep ( const std::string & particleName)

Report time-step size and current time at the end of a step.