C++ mpi module for stochmagnet_main Package
SMOMPI_ItoSystem.h
1 #ifndef SMOMPI_ItoSystem_H
2 #define SMOMPI_ItoSystem_H
3 
4 //super class header
5 #include "SMOMPI_LandauLifschitzSystem.h"
6 
7 
15 
16  //attributes
17 private :
18 
19 
20 
21 public:
22  // CONSTRUCTORS
26 
27  }
28 
29  // DESTRUCTORS
32  virtual ~SMOMPI_ItoSystem(void) {
33  }
34 
35 
36 public :
37 
38 
39 
40 public:
41 
42 
43 
47  inline static CORE_UniquePointer<SMOMPI_ItoSystem> New() {
48  return CORE_UniquePointer<SMOMPI_ItoSystem>(new SMOMPI_ItoSystem(),SMOMPI_ItoSystem::Delete());
49  }
50 
51 
52  //MEMORY
53 
67  virtual tMemSize getMemorySize() const {
68  return sizeof(*this)+getContentsMemorySize();
69  }
70 
71 
72 public:
73 
87  virtual tBoolean computeMagneticMomentDirectionsAtNextTimeStep(const tReal& dt,const tReal& epsilon_t,
88  const SM_RealField& deltaSt,
89  SM_RealField& St) final;
90 
91 
92 };
93 
94 
95 #endif
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
This class is a simulation of one trajectory class for Stoch Microm package based on Ito system.
Definition: SMOMPI_ItoSystem.h:14
static CORE_UniquePointer< SMOMPI_ItoSystem > New()
build a new instance of a system
Definition: SMOMPI_ItoSystem.h:47
SMOMPI_ItoSystem(void)
create a class
Definition: SMOMPI_ItoSystem.h:25
virtual ~SMOMPI_ItoSystem(void)
destroy the class
Definition: SMOMPI_ItoSystem.h:32
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SMOMPI_ItoSystem.h:67
virtual tBoolean computeMagneticMomentDirectionsAtNextTimeStep(const tReal &dt, const tReal &epsilon_t, const SM_RealField &deltaSt, SM_RealField &St) final
compute direction of magnetic moments at next time step
Definition: SMOMPI_ItoSystem.cpp:7
This class describes an MPI implementation of SM_LandauLifschitzSystem.
Definition: SMOMPI_LandauLifschitzSystem.h:18
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SMOMPI_LandauLifschitzSystem.h:76