18 #include <type_traits>
55 return MPI_UNSIGNED_LONG;
127 return MPI_DOUBLE_INT;
166 if (mData.size() != size) {
180 if (mData.size() != size) {
195 if constexpr(!std::is_same_v<SubDataType, TDataType>) {
217 <<
", buffered data size = " << mData.size() <<
" ].\n";
228 std::conditional_t<HasContiguousPrimitiveData, void *, std::vector<PrimitiveDataType>> mData;
Generic data type traits class for arithmetic types.
Definition: data_type_traits.h:33
static constexpr bool IsDynamic
Definition: data_type_traits.h:46
static std::vector< TIndexType > Shape(const ContainerType &)
Returns a vector with the shape of the value.
Definition: data_type_traits.h:89
static PrimitiveType const * GetContiguousData(const ContainerType &rValue)
Get the contiguous data pointer.
Definition: data_type_traits.h:162
static TIndexType Size(const ContainerType &)
Returns the size of the value.
Definition: data_type_traits.h:76
TDataType ValueType
Definition: data_type_traits.h:40
static void CopyFromContiguousData(ContainerType &rValue, PrimitiveType const *pContiguousDataBegin)
Copies data from contiguous array to rValue.
Definition: data_type_traits.h:208
static void CopyToContiguousData(PrimitiveType *pContiguousDataBegin, const ContainerType &rValue)
Copies the given Value to contiguous array.
Definition: data_type_traits.h:190
static constexpr bool IsContiguous
Definition: data_type_traits.h:44
TDataType PrimitiveType
Definition: data_type_traits.h:42
static bool Reshape(ContainerType &rValue, const std::vector< TIndexType > &rShape)
Reshapes the value.
Definition: data_type_traits.h:126
Definition: mpi_message.h:134
static constexpr bool HasDynamicMemoryAllocation
Definition: mpi_message.h:149
bool Resize(MessageDataType &rValue, const std::vector< unsigned int > &rShape)
Definition: mpi_message.h:207
TDataType MessageDataType
Definition: mpi_message.h:139
const void * Buffer(const MessageDataType &rValue)
Definition: mpi_message.h:174
int Size(const MessageDataType &rValue)
Definition: mpi_message.h:188
void Update(MessageDataType &rValue)
Definition: mpi_message.h:212
typename MPIMessageDataTypeTraits::ValueType SubDataType
Definition: mpi_message.h:143
void * Buffer(MessageDataType &rValue)
Definition: mpi_message.h:160
MPI_Datatype DataType()
Definition: mpi_message.h:155
static constexpr bool HasContiguousPrimitiveData
Definition: mpi_message.h:147
int SubDataTypeSize(const MessageDataType &rValue)
Definition: mpi_message.h:193
std::vector< unsigned int > Shape(const MessageDataType &rValue)
Definition: mpi_message.h:202
typename MPIMessageDataTypeTraits::PrimitiveType PrimitiveDataType
Definition: mpi_message.h:145
#define KRATOS_ERROR_IF_NOT(conditional)
Definition: exception.h:163
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
REACTION_CHECK_STIFFNESS_FACTOR INNER_LOOP_ITERATION DISTANCE_THRESHOLD ACTIVE_CHECK_FACTOR AUXILIAR_COORDINATES NORMAL_GAP WEIGHTED_GAP WEIGHTED_SCALAR_RESIDUAL bool
Definition: contact_structural_mechanics_application_variables.h:93
REACTION_CHECK_STIFFNESS_FACTOR int
Definition: contact_structural_mechanics_application_variables.h:75
TABLE_NUMBER_ANGULAR_VELOCITY TABLE_NUMBER_MOMENT I33 BEAM_INERTIA_ROT_UNIT_LENGHT_Y KRATOS_DEFINE_APPLICATION_VARIABLE(DEM_APPLICATION, double, BEAM_INERTIA_ROT_UNIT_LENGHT_Z) typedef std double
Definition: DEM_application_variables.h:182
namespace
Definition: array_1d.h:793
static MPI_Datatype DataType()
Definition: mpi_message.h:69
static MPI_Datatype DataType()
Definition: mpi_message.h:77
static MPI_Datatype DataType()
Definition: mpi_message.h:61
static MPI_Datatype DataType()
Definition: mpi_message.h:85
static MPI_Datatype DataType()
Definition: mpi_message.h:37
static MPI_Datatype DataType()
Definition: mpi_message.h:53
static MPI_Datatype DataType()
Definition: mpi_message.h:93
static MPI_Datatype DataType()
Definition: mpi_message.h:125
static MPI_Datatype DataType()
Definition: mpi_message.h:101
static MPI_Datatype DataType()
Definition: mpi_message.h:117
static MPI_Datatype DataType()
Definition: mpi_message.h:109
static MPI_Datatype DataType()
Definition: mpi_message.h:45
Definition: mpi_message.h:33