C++ mpi module for stochmagnet_main Package
SMOMPI_LandauLifschitzFunction.h
1 #ifndef SMOMPI_LandauLifschitzFunction_H
2 #define SMOMPI_LandauLifschitzFunction_H
3 
4 //inherit class header
5 #include "SM_LandauLifschitzFunction.h"
6 
15 
16  // ATTRIBUTES
17 
18 public:
19 
20 
21 
22 private:
23 
24 
25 protected:
26  // METHODS
27 
28  // CONSTRUCTORS
29 
33 
34  }
35 
36 
37  // DESTRUCTORS
38 
39 
43  }
44 
45 
46 public:
47 
48 
49  //MEMORY
50 
64  virtual tMemSize getMemorySize() const {
65  return sizeof(*this)+getContentsMemorySize();
66  }
67 
68 
69  //NEW
70 public:
74  inline static CORE_UniquePointer<SMOMPI_LandauLifschitzFunction> New() {
75  CORE_UniquePointer<SMOMPI_LandauLifschitzFunction> p=CORE_UniquePointer<SMOMPI_LandauLifschitzFunction>(new SMOMPI_LandauLifschitzFunction(),
77  return p;
78  }
79 
80 
81 protected:
82 
93  virtual void computeLLFunction(const tIndex& nSParticles,const tReal *S,
94  const tIndex& nBParticles,const tReal *B,tReal *F) const final;
95 
105  virtual void computeNLLFunction(const tIndex& nSParticles,const tReal *S,
106  const tIndex& nBParticles,const tReal *B,tReal *F) const final;
107 
108 
109 
110 };
111 
112 #endif
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
virtual tMemSize getContentsMemorySize() const
return nthe memory size of the included associations
Definition: CORE_Object.h:278
This class describes an OMP implementation of the LL function The main method to compute the function...
Definition: SMOMPI_LandauLifschitzFunction.h:14
static CORE_UniquePointer< SMOMPI_LandauLifschitzFunction > New()
build a new instance of the class this
Definition: SMOMPI_LandauLifschitzFunction.h:74
virtual void computeNLLFunction(const tIndex &nSParticles, const tReal *S, const tIndex &nBParticles, const tReal *B, tReal *F) const final
compute the normalized magnetic function
Definition: SMOMPI_LandauLifschitzFunction.cpp:18
SMOMPI_LandauLifschitzFunction(void)
create
Definition: SMOMPI_LandauLifschitzFunction.h:32
virtual void computeLLFunction(const tIndex &nSParticles, const tReal *S, const tIndex &nBParticles, const tReal *B, tReal *F) const final
compute the magnetic function
Definition: SMOMPI_LandauLifschitzFunction.cpp:7
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SMOMPI_LandauLifschitzFunction.h:64
virtual ~SMOMPI_LandauLifschitzFunction(void)
destroy
Definition: SMOMPI_LandauLifschitzFunction.h:42
This class describes a landau lifschitz function of the form :
Definition: SM_LandauLifschitzFunction.h:30