C++ main module for stochmagnet Package
1.0
|
#include <SM_Test.h>
Public Member Functions | |
SM_Test (void) | |
create the class More... | |
virtual | ~SM_Test (void) |
destroy the class More... | |
virtual tMemSize | getMemorySize () const override |
return the memory size of the class More... | |
virtual tBoolean | execute (const CORE_Run &runner, const std::map< tString, tString > &options) const |
execute the tests More... | |
void | setName (const tString &name) |
set the test name More... | |
const tString & | getName () const |
get the test name More... | |
template<typename T , class I > | |
requires core_functions::isArithmeticType< T > tBoolean | testArray (CORE_Array< T, I > &A) const |
template<typename T , typename K , K D, class S , class I > | |
tBoolean | testField (CORE_Field< T, K, D, S, I > &A) const |
template<class T > | |
std::shared_ptr< T > | getSharedPointer () |
return the shared pointer for this More... | |
template<class T > | |
std::shared_ptr< const T > | getConstSharedPointer () const |
return a const shared pointer for this More... | |
virtual tMemSize | getContentsMemorySize () const |
return nthe memory size of the included associations More... | |
template<class T > | |
tBoolean | isInstanceOf () const |
test if the clas T is an instance of this class More... | |
tString | getClassName () const |
return the name of the class More... | |
tString | getPointerString () const |
retrun the pointer of the class as a string More... | |
tString | getIdentityString () const |
retrun the string identification of the class More... | |
virtual tString | toString () const |
return the string representation of the object node More... | |
Static Public Member Functions | |
static CORE_UniquePointer< CORE_Test > | New () |
create a test class @retrun a new instance of the class More... | |
static tBoolean | EnableMemoryStack (const tBoolean &isMemoryChecked) |
enable the memory stack More... | |
static void | EnableMemoryStack () |
enable the memory stack More... | |
static void | DisableMemoryStack () |
disable the memory stack More... | |
static tBoolean | IsMemoryStackEnabled () |
return trur if the memory stack is enabled More... | |
static tString | MemoryStackToString () |
get the memory stack in string More... | |
static tIndex | GetRegisteredClassesNumber () |
get the memory stack in string More... | |
Protected Member Functions | |
virtual void | getSearchingPaths (std::vector< tString > &vpaths) const override |
get the test path locations More... | |
virtual tBoolean | primaryTests (const CORE_Run &runner, const std::map< tString, tString > &options) const override |
execute the primary tests More... | |
virtual tBoolean | elementaryTests (const CORE_Run &runner, const std::map< tString, tString > &options) const override |
execute the elementary tests More... | |
virtual tBoolean | caseTests (const CORE_Run &runner, const std::map< tString, tString > &options) const override |
execute the case tests More... | |
void | getSearchingPaths (const tString &packageName, const tUSInt &nLevels, const std::vector< tString > &localPaths, std::vector< tString > &vpaths) const |
get the test path locations More... | |
tString | getSearchingPathsToString () const |
get the test path locations into string More... | |
tString | searchPath (const tString &f) const |
retun the path where the file f is withing the searching paths list More... | |
tBoolean | testCase (const CORE_Run &runner, const tString &name) const |
execute the test case More... | |
virtual tBoolean | compareResults (const std::map< tString, tString > &options, const tString &resultFile, const tString &referenceFile, const tReal &eps) const |
make the difference between the two files More... | |
tBoolean | testArray (const CORE_Run &runner, const std::map< tString, tString > &options) const |
test the numeric array More... | |
template<typename Q , class I > | |
requires core_functions::isArithmeticType< Q > tBoolean | testArray (CORE_Array< Q, I > &A) const |
template<typename T , class I > | |
tBoolean | uniformRandomTest (CORE_Array< T, I > &A, CORE_Array< T, I > &B) const |
randomizer test More... | |
template<typename Q , typename K , K D, class S , class I > | |
tBoolean | testField (CORE_Field< Q, K, D, S, I > &A) const |
Static Protected Member Functions | |
template<typename T , typename Q > | |
requires core_functions::isRealType< T > static core_functions::isRealType< Q > tBoolean | Equals (const T &a, const Q &b) |
retrun true if the two values are equals More... | |
template<typename T , typename Q > | |
requires core_functions::isIntegerType< T > &&static core_functions::isIntegerType< Q > tBoolean | Equals (const T &a, const Q &b) |
Private Member Functions | |
tBoolean | testNormalLaw (const CORE_Run &runner, const std::map< tString, tString > &options) const |
test the normal law More... | |
tBoolean | testField (const CORE_Run &runner, const std::map< tString, tString > &options) const |
test the field More... | |
tBoolean | testVirtualMethods (const CORE_Run &runner, const std::map< tString, tString > &options) const |
test the efficiency of the templated method vs virtual method More... | |
tBoolean | testOperators (const CORE_Run &runner, const std::map< tString, tString > &options) const |
test the oparator by appling the formule dE/dM=-H More... | |
tBoolean | testEnergyOperatorsDerivatives (SM_Beam &beam, const tIndex &Nx, const tIndex &Ny, const tIndex &Nz) const |
test the Energy & H relations with the formulat dE/dmu=_H on a grid of size Nx x Ny x Nz More... | |
tBoolean | linedParticlesTestCase (const CORE_Run &runner, const std::array< tReal, 3 > &Mu0, const tBoolean &hasZeeman, const tReal &J, const tBoolean &hasSelfInteraction, const tIndex &n, const tReal &h, const tString &system, const tString &noise, const tReal &T, const tReal &dt) const |
test n particles on a 3D- line with system & noise function More... | |
tBoolean | grid3DParticlesTestCase (const CORE_Run &runner, const tIndex &Nx, const tIndex &Ny, const tIndex &Nz, const tReal &J, const tBoolean &hasSelfInteraction, const tString &systemName, const tString &noiseName) const |
test Nx x Ny x Nz particles on a 3D-grid with system & noise function More... | |
tBoolean | validate (const CORE_Run &runner, const tString &path, const tString &prefix, const SM_Beam &beam, const tIndex &s) const |
validate the s-trajectory of the beam simulations More... | |
tBoolean | testDerivative (const tIndex &i, const tDimension &d, const SM_Network &network, SM_RealField &Mu, const SM_Operator &op, SM_RealField &H) const |
test derivative of the operator at particle i in the direction d on the network at Mu More... | |
tBoolean | testTypes (const CORE_Run &runner, const std::map< tString, tString > &options) const |
test type More... | |
tBoolean | testIO (const CORE_Run &runner, const std::map< tString, tString > &options) const |
test IO class More... | |
tBoolean | testChrono (const CORE_Run &runner, const std::map< tString, tString > &options) const |
test Chrono class More... | |
tBoolean | testMemorySize (const CORE_Run &runner, const std::map< tString, tString > &options) |
test memory size More... | |
tBoolean | testStringsList (const CORE_Run &runner, const std::map< tString, tString > &options) const |
test the string array More... | |
tBoolean | testLoops (const CORE_Run &runner, const std::map< tString, tString > &options) const |
test the string array More... | |
template<class T > | |
std::shared_ptr< T > | setThis (std::unique_ptr< T, CORE_Object::Delete > &up) |
set the shared pointer from an unique pointer More... | |
Private Attributes | |
tString | mName |
std::weak_ptr< CORE_Object > | mThis |
Static Private Attributes | |
static const tFlag | ALL_TESTS =0 |
static const tFlag | PRIMARY_TESTS =1 |
static const tFlag | ELEMENTARY_TESTS =2 |
static const tFlag | CASE_TESTS =3 |
SM_Test::SM_Test | ( | void | ) |
create the class
|
virtual |
destroy the class
|
protectedvirtualinherited |
make the difference between the two files
[in] | options | optons of the program |
[in] | resultFile | result file generated by the program |
[in] | referenceFile | reference file |
[in] | eps | tolerated error |
Referenced by CORE_Test::testCase().
|
inlinestaticinherited |
disable the memory stack
Referenced by CORE_Object::EnableMemoryStack().
|
overrideprotectedvirtual |
execute the elementary tests
[in] | runner | runner of the program |
[in] | options | options of the program |
Reimplemented from CORE_Test.
References grid3DParticlesTestCase(), linedParticlesTestCase(), CORE_Run::Out(), CORE_Out::printError(), tBoolean, testVirtualMethods(), tIndex, and tString.
|
inlinestaticinherited |
enable the memory stack
Referenced by CORE_Object::EnableMemoryStack(), and CORE_Run::SetDebugOptions().
|
inlinestaticinherited |
enable the memory stack
[in] | isMemoryChecked | : true to verify memory allocation of CORE_Object classes |
References CORE_Object::DisableMemoryStack(), CORE_Object::EnableMemoryStack(), and CORE_Object::IsMemoryStackEnabled().
|
inlinestaticprotectedinherited |
retrun true if the two values are equals
[in] | a | : argument to compare |
[in] | b | : argument to compare |
Referenced by CORE_Test::testArray(), and CORE_Test::testField().
|
inlinestaticprotectedinherited |
|
virtualinherited |
execute the tests
[in] | runner | the runner of the tests |
[in] | options | the options of the program |
References CORE_Test::ALL_TESTS, CORE_Test::CASE_TESTS, CORE_Test::caseTests(), CORE_Test::ELEMENTARY_TESTS, CORE_Test::elementaryTests(), CORE_Run::Out(), CORE_Test::PRIMARY_TESTS, CORE_Test::primaryTests(), tBoolean, CORE_Test::testCase(), tFlag, and tString.
Referenced by CORE_Run::makeTests(), and SM_Run::makeTests().
|
inlineinherited |
return the name of the class
Referenced by CORE_Object::getIdentityString(), and CORE_Test::testTypes().
|
inlineinherited |
return a const shared pointer for this
References CORE_Object::mThis.
|
inlinevirtualinherited |
return nthe memory size of the included associations
Reimplemented in CORE_VectorList< T, I >, CORE_VectorList< tString, CORE_StringsList >, CORE_ValArray< T, I >, CORE_ValArray< T, CORE_StdValArray< T > >, CORE_Run, CORE_PtrArray< T, I >, CORE_PtrArray< T, CORE_StdPtrArray< T > >, CORE_Field< T, K, D, S, I >, CORE_Field< T, K, D, CORE_StdPtrArray< T >, CORE_StdPtrField< T, K, D > >, CORE_Field< T, K, D, CORE_StdValArray< T >, CORE_StdValField< T, K, D > >, CORE_ClassFactory, SMS_STDUniformFunction, SMS_STDNormalFunction, SMS_BoostUniformFunction, SMS_BoostNormalFunction, SM_ZeemanOperator, SM_XDMF, SM_VTK, SM_System, SM_Output, SM_Operator, SM_Network, SM_DemagnetizedOperator, SM_Beam, CORE_StringsList, and CORE_Out.
Referenced by CORE_Out::getContentsMemorySize(), SM_Beam::getContentsMemorySize(), SM_Network::getContentsMemorySize(), SM_Operator::getContentsMemorySize(), SM_Output::getContentsMemorySize(), SM_System::getContentsMemorySize(), SM_VTK::getContentsMemorySize(), SMS_BoostNormalFunction::getContentsMemorySize(), SMS_BoostUniformFunction::getContentsMemorySize(), SMS_STDNormalFunction::getContentsMemorySize(), SMS_STDUniformFunction::getContentsMemorySize(), CORE_ClassFactory::getContentsMemorySize(), CORE_PtrArray< T, I >::getContentsMemorySize(), CORE_ValArray< T, I >::getContentsMemorySize(), CORE_VectorList< T, I >::getContentsMemorySize(), CORE_Object::getMemorySize(), SM_ConstantNoiseRateFunction::getMemorySize(), SM_InverseNoiseRateFunction::getMemorySize(), SM_LandauLifschitzFunction::getMemorySize(), SM_NoiseRateFunction::getMemorySize(), SM_Object::getMemorySize(), SM_StochasticFunction::getMemorySize(), SM_TemplatedNoiseRateFunction< DerivedClass >::getMemorySize(), SM_TimeStepper::getMemorySize(), SMS_BoostRandomFunction::getMemorySize(), CORE_Array< T, I >::getMemorySize(), CORE_Chrono::getMemorySize(), CORE_Collection< T, I >::getMemorySize(), CORE_IO::getMemorySize(), CORE_List< T, K, I >::getMemorySize(), CORE_OptionsReader::getMemorySize(), CORE_OutputFile::getMemorySize(), and CORE_Test::getMemorySize().
|
inlineinherited |
retrun the string identification of the class
References CORE_Object::getClassName(), and core_functions::pointerToString().
Referenced by CORE_Test::testArray(), CORE_Test::testField(), CORE_Test::testTypes(), CORE_Object::toString(), CORE_ClassFactory::toString(), and CORE_Field< T, K, D, S, I >::toString().
|
inlineoverridevirtualinherited |
return the memory size of the class
Reimplemented from CORE_Object.
References CORE_Object::getContentsMemorySize().
|
inlineinherited |
|
inlineinherited |
retrun the pointer of the class as a string
References core_functions::pointerToString().
|
inlinestaticinherited |
get the memory stack in string
|
inlineoverrideprotectedvirtual |
get the test path locations
[out] | vpaths | : the return path location s |
Reimplemented from CORE_Test.
References CORE_Test::getSearchingPaths().
Referenced by grid3DParticlesTestCase(), and linedParticlesTestCase().
|
protectedinherited |
get the test path locations into string
References CORE_Test::getSearchingPaths().
Referenced by CORE_Test::testCase(), and CORE_Test::testIO().
|
inlineinherited |
return the shared pointer for this
References CORE_Object::mThis.
|
private |
test Nx x Ny x Nz particles on a 3D-grid with system & noise function
[in] | runner | runner of the program |
[in] | Nx | : number of particles in the x-direction |
[in] | Ny | : number of particles in the y-direction |
[in] | Nz | : number of particles in the z-direction |
[in] | J | : constant heissengerg coefficient |
[in] | hasSelfInteraction | : true to interact a particle with itself |
[in] | systemName | : name of the system |
[in] | noiseName | : name of the noise |
References SM_System::addOperator(), CORE_Chrono::ConvertDuration(), SM_Network::create3DGrid(), SM_Beam::discretize(), SM_Output::generateOutput(), CORE_Run::GetClassFactory(), SM_Network::getDimension(), SM_System::getLandauLifschitzFunction(), SM_System::getNetwork(), SM_Network::getParticlesNumber(), getSearchingPaths(), SM_Beam::getSystem(), SM_System::getTimeStepper(), CORE_ClassFactory::NewUniqueInstance(), CORE_Run::Out(), SM_Beam::runSimulations(), CORE_Test::searchPath(), SM_LandauLifschitzFunction::setAlpha(), SM_Beam::setBeamSize(), SM_LandauLifschitzFunction::setBeta(), SM_System::setInitialMagneticMoment(), SM_Beam::setIsTemplatedSimulateVersion(), SM_System::setNoiseRateFunction(), SM_Output::setOutputPath(), SM_Output::setPrefix(), SM_Output::setSimulations(), SM_Beam::setStochasticFunction(), SM_Beam::setSystem(), SM_TimeStepper::setTargetTime(), SM_TimeStepper::setTimeStep(), CORE_Chrono::start(), CORE_Chrono::stop(), tBoolean, tIndex, tReal, tString, tUInt, and validate().
Referenced by elementaryTests().
|
inlineinherited |
test if the clas T is an instance of this class
Referenced by SM_Beam::templatedSimulate().
|
inlinestaticinherited |
return trur if the memory stack is enabled
Referenced by CORE_Object::EnableMemoryStack(), and main().
|
private |
test n particles on a 3D- line with system & noise function
[in] | runner | runner of the program |
[in] | Mu0 | : initial magnetic moment |
[in] | hasZeeman | : true if there is an external magnetic field |
[in] | J | : exchange factor |
[in] | hasSelfInteraction | : true to interact a particle with itself |
[in] | n | : number of particles |
[in] | h | : distance between 2 particles |
[in] | system | : name of the system |
[in] | noise | : name of the noise |
[in] | T | : target time |
[in] | dt | : time step |
References SM_System::addOperator(), CORE_Chrono::ConvertDuration(), SM_Network::create3DGrid(), SM_Beam::discretize(), SM_Output::generateOutput(), CORE_Run::GetClassFactory(), SM_System::getLandauLifschitzFunction(), SM_System::getNetwork(), getSearchingPaths(), SM_Beam::getSystem(), SM_System::getTimeStepper(), SMS_BoostUniformFunction::initializeSeed(), CORE_ClassFactory::NewUniqueInstance(), CORE_Run::Out(), SM_Beam::runSimulations(), CORE_Test::searchPath(), SM_LandauLifschitzFunction::setAlpha(), SM_Beam::setBeamSize(), SM_LandauLifschitzFunction::setBeta(), SM_ConstantZeemanOperator::setBext(), SM_System::setInitialMagneticMoment(), SM_Beam::setIsTemplatedSimulateVersion(), SM_System::setNoiseRateFunction(), SM_Output::setOutputPath(), SM_Output::setPrefix(), SM_Output::setSimulations(), SM_Beam::setStochasticFunction(), SMS_BoostUniformFunction::setSupport(), SM_Beam::setSystem(), SM_TimeStepper::setTargetTime(), SM_TimeStepper::setTimeStep(), CORE_Chrono::start(), CORE_Chrono::stop(), tBoolean, SMS_BoostUniformFunction::templatedRandom(), tIndex, tReal, tString, tUInt, and validate().
Referenced by elementaryTests().
|
inlinestaticinherited |
get the memory stack in string
Referenced by main().
|
inlinestaticinherited |
create a test class @retrun a new instance of the class
References CORE_Test::CORE_Test().
|
overrideprotectedvirtual |
execute the primary tests
[in] | runner | runner of the program |
[in] | options | options of the program |
Reimplemented from CORE_Test.
References CORE_Run::Out(), CORE_Out::printError(), tBoolean, testField(), testNormalLaw(), testOperators(), and tString.
retun the path where the file f is withing the searching paths list
[in] | f | : file to search |
References CORE_Test::getSearchingPaths().
Referenced by grid3DParticlesTestCase(), linedParticlesTestCase(), CORE_Test::testCase(), and CORE_Test::testIO().
|
inlineinherited |
|
inlineprivateinherited |
set the shared pointer from an unique pointer
[in,out] | up | unique pointer of the class at input, points to null pointer at output |
Method only calledby the friend class CORE_ClassFactory::NewSharedInstance()
References CORE_Object::mThis.
|
protectedinherited |
test the numeric array
[in] | runner | the runner of the tests |
[in] | options | the options of the program |
References tBoolean.
Referenced by CORE_Test::primaryTests().
|
protectedinherited |
|
inherited |
References CORE_Array< T, I >::axpy(), CORE_Collection< T, I >::cbegin(), CORE_Collection< T, I >::cend(), CORE_Chrono::ConvertDuration(), CORE_Array< T, I >::copy(), CORE_Object::CORE_Object(), CORE_Test::Equals(), CORE_Array< T, I >::get(), CORE_ValArray< T, I >::getArray(), CORE_Object::getIdentityString(), CORE_Array< T, I >::getMemorySize(), CORE_Collection< T, I >::getSize(), CORE_ValArray< T, I >::getSize(), CORE_Array< T, I >::l2Distance(), CORE_Array< T, I >::linfDistance(), CORE_Array< T, I >::prod(), CORE_Collection< T, I >::setSize(), CORE_Chrono::start(), CORE_Chrono::stop(), CORE_Array< T, I >::sum(), CORE_Array< T, I >::swap(), tBoolean, tIndex, tInteger, tMemSize, CORE_StdValArray< T >::transform(), tReal, tULLInt, and CORE_Array< T, I >::uniformRandomize().
|
protectedinherited |
execute the test case
[in] | runner | : runner of the test |
[in] | name | name of the case which must correspond the same local path |
References CORE_Test::compareResults(), CORE_Test::getSearchingPathsToString(), CORE_Run::makeRun(), CORE_Run::Out(), CORE_OptionsReader::ReadOptions(), CORE_OptionsReader::ReadPath(), CORE_Test::searchPath(), CORE_Run::SetDebugOptions(), CORE_Run::SetOutputOptions(), tBoolean, tReal, and tString.
Referenced by CORE_Test::execute().
|
privateinherited |
test Chrono class
[in] | runner | the runner of the tests |
[in] | options | the options of the program |
References CORE_Chrono::ConvertDuration(), CORE_Chrono::start(), CORE_Chrono::stop(), tIndex, tReal, tUInt, tUSInt, and CORE_StdValArray< T >::UniformRandomize().
Referenced by CORE_Test::primaryTests().
|
private |
test derivative of the operator at particle i in the direction d on the network at Mu
[in] | i | : index of the point |
[in] | d | : direction of derivation |
[in] | network | : network of particles |
[in,out] | Mu | : magnetic moment |
[in] | op | : operator to test |
[out] | H | : magnetic field |
References SM_Operator::computeEnergy(), SM_Operator::computeMagneticFieldAndEnergy(), core_functions::isNAN(), CORE_Run::Out(), tBoolean, and tReal.
Referenced by testEnergyOperatorsDerivatives().
|
private |
test the Energy & H relations with the formulat dE/dmu=_H on a grid of size Nx x Ny x Nz
[in,out] | beam | : the beam to test |
[in] | Nx | : the number of particle along x |
[in] | Ny | : the number of particle along y |
[in] | Nz | : the number of particle along z |
References SM_Network::create3DGrid(), SM_Beam::discretize(), SM_Network::getDimension(), SM_System::getNetwork(), SM_System::getOperator(), SM_Network::getParticlesNumber(), SM_Beam::getSystem(), CORE_Run::Out(), CORE_Field< T, K, D, S, I >::setElementsNumber(), SM_System::setInitialMagneticMoment(), tBoolean, testDerivative(), tIndex, and tReal.
Referenced by testOperators().
|
private |
test the field
[in] | runner | runner of the program |
[in] | options | options of the program |
References CORE_Field< T, K, D, S, I >::setElementsNumber(), tBoolean, tIndex, and tUSInt.
Referenced by primaryTests().
|
protectedinherited |
|
inherited |
References CORE_Field< T, K, D, S, I >::axpy(), CORE_Chrono::ConvertDuration(), CORE_Field< T, K, D, S, I >::copy(), CORE_Field< T, K, D, S, I >::elementsTransform(), CORE_Test::Equals(), CORE_Field< T, K, D, S, I >::getElementsNumber(), CORE_Object::getIdentityString(), CORE_Field< T, K, D, S, I >::getSize(), CORE_ValArray< T, I >::getSize(), CORE_Field< T, K, D, S, I >::initialize(), CORE_Field< T, K, D, S, I >::isNANContained(), CORE_Field< T, K, D, S, I >::mod2(), CORE_Field< T, K, D, S, I >::normalize(), CORE_StdPtrArray< T >::Normalize(), CORE_Field< T, K, D, S, I >::scalarProduct(), CORE_Field< T, K, D, S, I >::setElementsNumber(), CORE_Field< T, K, D, S, I >::setSize(), CORE_Chrono::start(), CORE_Chrono::stop(), CORE_StdValArray< T >::sum(), tBoolean, tIndex, tInteger, CORE_StdValArray< T >::transform(), tReal, tULLInt, and CORE_Field< T, K, D, S, I >::uniformRandomize().
|
privateinherited |
test IO class
[in] | runner | the runner of the tests |
[in] | options | the options of the program |
References CORE_IO::CreatePath(), CORE_IO::GetBaseName(), CORE_IO::GetExtension(), CORE_IO::GetFiles(), CORE_IO::GetPath(), CORE_IO::GetPaths(), CORE_Test::getSearchingPathsToString(), CORE_Run::Out(), CORE_IO::RemovePath(), CORE_Test::searchPath(), tBoolean, and tString.
Referenced by CORE_Test::primaryTests().
|
privateinherited |
test the string array
[in] | runner | the runner of the tests |
[in] | options | the options of the program |
References CORE_Chrono::ConvertDuration(), CORE_Chrono::start(), CORE_Chrono::stop(), tIndex, tReal, tULLInt, and CORE_StdValArray< T >::UniformRandomize().
Referenced by CORE_Test::primaryTests().
|
privateinherited |
test memory size
[in] | runner | the runner of the tests |
[in] | options | the options of the program |
References CORE_Object::CORE_Object(), CORE_Run::Out(), tFlag, tString, and tUCInt.
|
private |
test the normal law
[in] | runner | runner of the program |
[in] | options | options of the program |
References CORE_Chrono::ConvertDuration(), SMS_STDNormalFunction::initializeSeed(), CORE_Run::Out(), SMS_STDNormalFunction::random(), CORE_Chrono::start(), CORE_Chrono::stop(), tBoolean, SMS_STDNormalFunction::templatedRandom(), tIndex, tReal, and tUInt.
Referenced by primaryTests().
|
private |
test the oparator by appling the formule dE/dM=-H
[in] | runner | runner of the program |
[in] | options | options of the program |
References SM_System::addOperator(), CORE_Run::GetClassFactory(), SM_System::getLandauLifschitzFunction(), SM_Beam::getSystem(), SM_System::getTimeStepper(), CORE_ClassFactory::NewUniqueInstance(), SM_LandauLifschitzFunction::setAlpha(), SM_Beam::setBeamSize(), SM_LandauLifschitzFunction::setBeta(), SM_ConstantZeemanOperator::setBext(), SM_System::setNoiseRateFunction(), SM_Beam::setStochasticFunction(), SM_Beam::setSystem(), SM_TimeStepper::setTargetTime(), SM_TimeStepper::setTimeStep(), tBoolean, testEnergyOperatorsDerivatives(), tIndex, and tUInt.
Referenced by primaryTests().
|
privateinherited |
test the string array
[in] | runner | the runner of the tests |
[in] | options | the options of the program |
References CORE_VectorList< T, I >::getSize(), CORE_List< T, K, I >::sort(), tBoolean, and tIndex.
Referenced by CORE_Test::primaryTests().
|
privateinherited |
test type
[in] | runner | the runner of the tests |
[in] | options | the options of the program |
References CORE_Object::getClassName(), CORE_Object::getIdentityString(), CORE_Run::Is32Architecture(), CORE_Run::Is64Architecture(), core_functions::max(), core_functions::min(), CORE_Run::Out(), tBoolean, tChar, tComplex, tDouble, tFlag, tFloat, tIndex, tInt, tInteger, tLDouble, tLInt, tLLInt, tMemSize, tReal, tRelativeIndex, tRelativeInteger, tSInt, tString, tUChar, tUInt, tULInt, tULLInt, and tUSInt.
Referenced by CORE_Test::primaryTests().
|
private |
test the efficiency of the templated method vs virtual method
[in] | runner | : the main caller of the program |
[in] | options | options of the program |
References SM_InverseNoiseRateFunction::computeFunction(), SM_InverseNoiseRateFunction::computeTemplatedFunction(), CORE_Chrono::ConvertDuration(), SM_Network::create3DGrid(), CORE_Run::Out(), CORE_Field< T, K, D, S, I >::setElementsNumber(), CORE_Chrono::start(), CORE_Chrono::stop(), tBoolean, tIndex, tReal, and tUInt.
Referenced by elementaryTests().
|
inlinevirtualinherited |
return the string representation of the object node
Reimplemented in SM_TimeStepper, SM_System, SM_StochasticFunction, SM_Network, SM_LandauLifschitzFunction, SM_Beam, CORE_Field< T, K, D, S, I >, CORE_Field< T, K, D, CORE_StdPtrArray< T >, CORE_StdPtrField< T, K, D > >, CORE_Field< T, K, D, CORE_StdValArray< T >, CORE_StdValField< T, K, D > >, CORE_Collection< T, I >, CORE_ClassFactory, and SM_NoiseRateFunction.
References CORE_Object::getIdentityString().
Referenced by SM_Run::run(), CORE_Collection< T, I >::toString(), SM_Beam::toString(), SM_Network::toString(), SM_StochasticFunction::toString(), SM_System::toString(), and SM_TimeStepper::toString().
|
protectedinherited |
randomizer test
[out] | A | : first array for testing |
[out] | B | : second array for testing |
References CORE_Chrono::ConvertDuration(), CORE_Collection< T, I >::setSize(), CORE_Chrono::start(), CORE_Chrono::stop(), CORE_Array< T, I >::sum(), tBoolean, tIndex, CORE_Array< T, I >::transform(), tReal, tULLInt, and CORE_Array< T, I >::uniformRandomize().
|
private |
validate the s-trajectory of the beam simulations
[in] | runner | runner of the program |
[in] | path | path of the generated files |
[in] | prefix | prefix of the generated files |
[in] | beam | : data of the simulations |
[in] | s | : simulation index to validate |
References core_functions::booleanToString(), SM_Network::getDimension(), CORE_Field< T, K, D, S, I >::getElementsNumber(), SM_Beam::getMagneticMoment(), SM_TimeStepper::getMaximumTimeStepsNumber(), SM_System::getNetwork(), SM_Network::getParticlesNumber(), SM_Beam::getSystem(), SM_TimeStepper::getTimeStep(), SM_System::getTimeStepper(), core_functions::isNAN(), SM_Output::LoadMagneticMomentField(), CORE_Run::Out(), SM_Output::SaveMagneticMomentField(), tBoolean, tIndex, tInteger, tReal, and tString.
Referenced by grid3DParticlesTestCase(), and linedParticlesTestCase().
|
staticprivateinherited |
Referenced by CORE_Test::execute().
|
staticprivateinherited |
Referenced by CORE_Test::execute().
|
staticprivateinherited |
Referenced by CORE_Test::execute().
|
privateinherited |
Referenced by CORE_Test::CORE_Test(), CORE_Test::getName(), and CORE_Test::setName().
|
privateinherited |
Referenced by CORE_Object::getConstSharedPointer(), CORE_Object::getSharedPointer(), and CORE_Object::setThis().
|
staticprivateinherited |
Referenced by CORE_Test::execute().