1 #ifndef SMOMPI_AllMasterMacroCellsMagnetizationField_H
2 #define SMOMPI_AllMasterMacroCellsMagnetizationField_H
5 #include "SM_MacroCellsMagnetizationField.h"
8 #include "SMOMPI_AllMasterMacroCellsNetwork.h"
54 inline static CORE_UniquePointer<SelfClass>
New() {
55 return CORE_UniquePointer<SelfClass>(
new SelfClass(),
62 virtual CORE_UniquePointer<SM_MacroCellsMagnetizationField>
newInstance()
const override {
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
This class is a Environment class to define MPI world.
Definition: MPI_Environment.h:36
static MPI_Environment & GetEnvironment()
get the environment
Definition: MPI_Run.h:114
static tBoolean AllReduce(const MPI_Environment &env, T &data, const tMPIOperation &op)
compute a data from data of others cores and to data of core 0 and copy the values to all cores
Definition: MPI_WorldToWorldMessage.h:703
This class describes an OpenMP/MPI implementation of the magnetization field for all core considered ...
Definition: SMOMPI_AllMasterMacroCellsMagnetizationField.h:21
static CORE_UniquePointer< SelfClass > New()
build a new instance of the operator
Definition: SMOMPI_AllMasterMacroCellsMagnetizationField.h:54
SMOMPI_AllMasterMacroCellsMagnetizationField(void)
create a network class
Definition: SMOMPI_AllMasterMacroCellsMagnetizationField.h:34
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SMOMPI_AllMasterMacroCellsMagnetizationField.h:79
virtual CORE_UniquePointer< SM_MacroCellsMagnetizationField > newInstance() const override
create a New instance of this
Definition: SMOMPI_AllMasterMacroCellsMagnetizationField.h:62
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SMOMPI_AllMasterMacroCellsMagnetizationField.h:91
virtual void computeField(const SM_Material &material, const SM_MacroCellsNetwork &network, const SM_RealField &S, SM_RealField &M) final
compute the magnetization field from S
Definition: SMOMPI_AllMasterMacroCellsMagnetizationField.h:109
virtual ~SMOMPI_AllMasterMacroCellsMagnetizationField(void)
destroy
Definition: SMOMPI_AllMasterMacroCellsMagnetizationField.h:41
This class is describes a Magnetization field.
Definition: SM_MacroCellsMagnetizationField.h:23
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SM_MacroCellsMagnetizationField.h:101
void computeField(const tIndex &stepIndex, const SM_Material &material, const SM_MacroCellsNetwork &network, const SM_RealField &S)
compute the magnetization field from S
Definition: SM_MacroCellsMagnetizationField.h:173
This class is describes a macro cell network.
Definition: SM_MacroCellsNetwork.h:25
This class describes a materials defined by state attributes:
Definition: SM_Material.h:61