66 compressed_matrix<int>& rCoord
70 for (
auto& r_elem: rThisModelPart.
Elements()) {
71 if (r_elem.GetValue(SPLIT_ELEMENT)) {
73 for (
unsigned int i = 0;
i < r_geom.
size();
i++) {
75 bool is_boundary_i = r_geom[
i].Is(BOUNDARY);
76 for (
unsigned int j = 0;
j < r_geom.size();
j++) {
78 bool is_boundary_j = r_geom[
j].Is(BOUNDARY);
79 if (index_j > index_i && (is_boundary_j&&is_boundary_i)) {
80 rCoord(index_i, index_j) = -2;
Geometry base class.
Definition: geometry.h:71
SizeType size() const
Definition: geometry.h:518
IndexType const & Id() const
Id of this Geometry.
Definition: geometry.h:964
std::unordered_map< std::size_t, unsigned int > mMapNodeIdToPos
The current refinement level.
Definition: local_refine_geometry_mesh.hpp:240
Definition: local_refine_tetrahedra_mesh_only_on_boundaries.hpp:45
~LocalRefineTetrahedraMeshOnlyOnBoundaries()=default
Destructor.
LocalRefineTetrahedraMeshOnlyOnBoundaries(ModelPart &rModelPart)
Default constructors.
Definition: local_refine_tetrahedra_mesh_only_on_boundaries.hpp:55
void SearchEdgeToBeRefined(ModelPart &rThisModelPart, compressed_matrix< int > &rCoord) override
Definition: local_refine_tetrahedra_mesh_only_on_boundaries.hpp:64
Definition: local_refine_tetrahedra_mesh_parallel_to_boundaries.hpp:46
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
ElementsContainerType & Elements(IndexType ThisIndex=0)
Definition: model_part.h:1189
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
int j
Definition: quadrature.py:648
integer i
Definition: TensorModule.f:17