85 tReal *mu_tpdt)
const {
98 tReal *mu_tpdt_p,*mu_tpdt_i=mu_tpdt;
101 const tReal *mu_t_i=mu_t;
104 for (p=0;p<nParticles;p++) {
110 for (k=0;k<dim;k++) {
112 (*mu_tpdt_i)+=(*mu_t_i);
114 invNormMu+=(*mu_tpdt_i)*(*mu_tpdt_i);
121 if (invNormMu>EPSILON<tReal>) {
123 invNormMu=1./sqrt(invNormMu);
126 (*mu_tpdt_i)*=invNormMu;
tUCInt tDimension
Definition: CORE_StdPtrField.h:567
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:94
This class is a simulation of one trajectory class for Stoch Microm package based on Ito system.
Definition: SM_ItoSystem.h:12
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_ItoSystem.h:65
tBoolean computeTemplatedMuAtNextTimeStep(const tReal &dt, const tReal &epsilon_t, const tIndex nParticles, const tDimension &dim, const tReal *mu_t, tReal *mu_tpdt) const
compute mu at time step
Definition: SM_ItoSystem.h:82
static CORE_UniquePointer< SM_ItoSystem > New()
build a new instance of a system
Definition: SM_ItoSystem.h:45
virtual ~SM_ItoSystem(void)
destroy the class
Definition: SM_ItoSystem.h:30
SM_ItoSystem(void)
create a class
Definition: SM_ItoSystem.h:23
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SM_System.h:140
Definition: SM_TemplatedSystem.h:19
typename std::unique_ptr< T, CORE_Object::Delete > CORE_UniquePointer
Definition: sp.h:8
#define tIndex
Definition: types.h:157
#define tMemSize
Definition: types.h:166
#define tBoolean
Definition: types.h:151
#define tReal
Definition: types.h:137