26 "It makes no sense for the generic bc type");
39 "It makes no sense for the generic bc type");
109 if (bc_data.size() !=
sizeof(
data))
110 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
111 memcpy(&
data, &bc_data[0],
sizeof(
data));
117 if (size !=
sizeof(
data)) {
120 memcpy(tag_ptr, &
data, size);
160 if (bc_data.size() !=
sizeof(
data))
161 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
162 memcpy(&
data, &bc_data[0],
sizeof(
data));
168 if (size !=
sizeof(
data)) {
171 memcpy(tag_ptr, &
data, size);
217 if (bc_data.size() !=
sizeof(
data))
218 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
219 memcpy(&
data, &bc_data[0],
sizeof(
data));
225 if (size !=
sizeof(
data)) {
228 memcpy(tag_ptr, &
data, size);
276 if (bc_data.size() !=
sizeof(
data))
277 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
278 memcpy(&
data, &bc_data[0],
sizeof(
data));
284 if (size !=
sizeof(
data)) {
287 memcpy(tag_ptr, &
data, size);
334 if (bc_data.size() >
sizeof(
data))
336 "Wrong number of parameters in Cubit %d != %d", bc_data.size(),
340 if (bc_data.size() == 58) {
341 std::vector<char> new_bc_data(66, 0);
343 for (; ii != 16; ++ii)
344 new_bc_data[ii] = bc_data[ii];
345 for (; ii != bc_data.size(); ++ii)
346 new_bc_data[ii + 1] = bc_data[ii];
347 memcpy(&
data, &new_bc_data[0], new_bc_data.size());
349 memcpy(&
data, &bc_data[0], bc_data.size());
357 if (size !=
sizeof(
data)) {
360 memcpy(tag_ptr, &
data, size);
396 if (bc_data.size() !=
sizeof(
data)) {
399 memcpy(&
data, &bc_data[0],
sizeof(
data));
405 if (size !=
sizeof(
data)) {
408 memcpy(tag_ptr, &
data, size);
450 if (bc_data.size() !=
sizeof(
data))
451 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
452 memcpy(&
data, &bc_data[0],
sizeof(
data));
458 if (size !=
sizeof(
data)) {
461 memcpy(tag_ptr, &
data, size);
494 if (bc_data.size() !=
sizeof(
data))
495 SETERRQ(PETSC_COMM_SELF, 1,
"data inconsistency");
496 memcpy(&
data, &bc_data[0],
sizeof(
data));
502 if (size !=
sizeof(
data)) {
505 memcpy(tag_ptr, &
data, size);
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
@ MOFEM_ATOM_TEST_INVALID
@ MOFEM_DATA_INCONSISTENCY
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
std::bitset< 32 > CubitBCType
implementation of Data Operators for Forces and Sources
Definition of the acceleration bc data structure.
friend std::ostream & operator<<(std::ostream &os, const AccelerationCubitBcData &e)
Print acceleration bc data.
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
AccelerationCubitBcData()
struct __attribute__((packed)) _data_
const void * getDataPtr() const
get pointer to data structure
std::size_t getSizeOfData() const
get data structure size
Definition of the cfd_bc data structure.
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
friend std::ostream & operator<<(std::ostream &os, const CfgCubitBcData &e)
Print cfd_bc data.
const void * getDataPtr() const
get pointer to data structure
std::size_t getSizeOfData() const
get data structure size
struct __attribute__((packed)) _data_
Definition of the displacement bc data structure.
friend std::ostream & operator<<(std::ostream &os, const DisplacementCubitBcData &e)
Print displacement bc data.
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
const void * getDataPtr() const
get pointer to data structure
struct __attribute__((packed)) _data_
attributes of DisplacementCubitBcData
DisplacementCubitBcData()
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
std::size_t getSizeOfData() const
get data structure size
Definition of the force bc data structure.
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
std::size_t getSizeOfData() const
get data structure size
struct __attribute__((packed)) _data_
friend std::ostream & operator<<(std::ostream &os, const ForceCubitBcData &e)
Print force bc data.
const void * getDataPtr() const
get pointer to data structure
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
Generic bc data structure.
virtual const void * getDataPtr() const =0
get pointer to data structure
const CubitBCType tYpe
Type of boundary condition.
virtual ~GenericCubitBcData()
virtual MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
virtual const CubitBCType & getType() const
get data type
virtual std::size_t getSizeOfData() const =0
get data structure size
virtual MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
GenericCubitBcData(const CubitBCType type)
Definition of the heat flux bc data structure.
friend std::ostream & operator<<(std::ostream &os, const HeatFluxCubitBcData &e)
Print heat flux bc data.
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
const void * getDataPtr() const
get pointer to data structure
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
struct __attribute__((packed)) _data_
std::size_t getSizeOfData() const
get data structure size
Definition of the pressure bc data structure.
friend std::ostream & operator<<(std::ostream &os, const PressureCubitBcData &e)
Print pressure bc data.
const void * getDataPtr() const
get pointer to data structure
struct __attribute__((packed)) _data_
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
std::size_t getSizeOfData() const
get data structure size
Definition of the temperature bc data structure.
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
std::size_t getSizeOfData() const
get data structure size
const void * getDataPtr() const
get pointer to data structure
struct __attribute__((packed)) _data_
friend std::ostream & operator<<(std::ostream &os, const TemperatureCubitBcData &e)
Print temperature bc data.
Definition of the velocity bc data structure.
MoFEMErrorCode set_data(void *tag_ptr, unsigned int size) const
set data on structure
std::size_t getSizeOfData() const
get data structure size
MoFEMErrorCode fill_data(const std::vector< char > &bc_data)
get data from structure
const void * getDataPtr() const
get pointer to data structure
struct __attribute__((packed)) _data_
friend std::ostream & operator<<(std::ostream &os, const VelocityCubitBcData &e)
Print velocity bc data.