19 boost::shared_ptr<VectorDouble>
field)
24 DataForcesAndSourcesCore::EntData &data) {
27 const size_t nb_gauss_pts = getGaussPts().size2();
34 for (
int gg = 0; gg != nb_gauss_pts; gg++) {
35 t_squareField = t_field * t_field;
45 boost::shared_ptr<VectorDouble>
field;
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
implementation of Data Operators for Forces and Sources
static auto getFTensor0FromVec(V &data)
Get tensor rank 0 (scalar) form data vector.
structure to get information from mofem into EntitiesFieldData
[Calculate square of wave function]
OpSquare(boost::shared_ptr< VectorDouble > squareField, boost::shared_ptr< VectorDouble > field)
boost::shared_ptr< VectorDouble > field
boost::shared_ptr< VectorDouble > squareField
MoFEMErrorCode doWork(int side, EntityType type, DataForcesAndSourcesCore::EntData &data)