20 #ifndef __BCSRVEVOLUME_HPP
21 #define __BCSRVEVOLUME_HPP
26 struct MyVolumeFE:
public VolumeElementForcesAndSourcesCore {
51 int row_side,
int col_side,
52 EntityType row_type,EntityType col_type,
56 if(
dAta.
tEts.find(getNumeredEntFiniteElementPtr()->getEnt()) ==
dAta.
tEts.end()) {
57 PetscFunctionReturn(0);
61 if(row_type == MBVERTEX && col_type==MBVERTEX) {
64 int Indices[1]; Indices[0]=pcomm->rank();
65 double Vol_elm[1]; Vol_elm[0]=0;
66 for(
unsigned int gg = 0;gg<row_data.getN().size1();gg++) {
67 if(getHoGaussPtsDetJac().size()>0) {
70 Vol_elm[0]+=getVolume()*getGaussPts()(3,gg)*getHoGaussPtsDetJac()[gg];
73 Vol_elm[0]+=getVolume()*getGaussPts()(3,gg);
81 PetscFunctionReturn(0);
90 map<int,NonlinearElasticElement::BlockData>::iterator sit = setOfBlocks.begin();
91 for(;sit!=setOfBlocks.end();sit++) {
101 #endif //__RVEVolume_HPP__