Skip to content

Commit

Permalink
Upped mesh overallocation. (GEOS-DEV#1143)
Browse files Browse the repository at this point in the history
  • Loading branch information
corbett5 authored Sep 2, 2020
1 parent 7f7faa2 commit 187d570
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/coreComponents/LvArray
2 changes: 1 addition & 1 deletion src/coreComponents/mesh/EdgeManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class EdgeManager : public ObjectManagerBase
* @brief Return the maximum number of edges per node.
* @return Maximum allowable number of edges connected to one node (hardcoded for now)
*/
constexpr int maxEdgesPerNode() const { return 100; }
constexpr int maxEdgesPerNode() const { return 200; }

/**
* @name Getters for stored value.
Expand Down
8 changes: 4 additions & 4 deletions src/coreComponents/mesh/FaceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ void findSmallestThreeValues( arrayView1d< localIndex const > const & values, lo
* @brief Populate the facesByLowestNode map.
* @param [in] elementManager the ElementRegionManager associated with this mesh level.
* @param [inout] facesByLowestNode of size numNodes, where each sub array has been preallocated to hold
* *enough* space.
* For each face of each element, this function gets the three lowest nodes in the face {n0, n1, n2}, creates
* an EdgeBuilder associated with the face from n1 and n2 and then appends the EdgeBuilder to facesByLowestNode[ n0 ].
* Finally it sorts the contents of each sub-array of facesByLowestNode from least to greatest.
* *enough* space.
* @details For each face of each element, this function gets the three lowest nodes in the face {n0, n1, n2},
* appends a FaceBuilder to @c facesByLowestNode[ n0 ]. Finally it sorts the contents of each sub-array of
* facesByLowestNode from least to greatest.
*/
void createFacesByLowestNode( ElementRegionManager const & elementManager,
ArrayOfArraysView< FaceBuilder > const & facesByLowestNode )
Expand Down
2 changes: 1 addition & 1 deletion src/coreComponents/mesh/FaceManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class FaceManager : public ObjectManagerBase
* @brief Get the constant upper limit for number of faces per Node.
* @return constant expression of the max number of faces per node
*/
constexpr int maxFacesPerNode() const { return 100; }
constexpr int maxFacesPerNode() const { return 200; }

/**
* @brief Get a mutable accessor to a table containing all the face area.
Expand Down

0 comments on commit 187d570

Please sign in to comment.