Skip to content

Commit 2eed9f7

Browse files
authored
Merge pull request #201 from OpenSEMBA/fix/fhash_buckets
Increases the space allocated for coordinates and elements in fhash maps
2 parents fa19876 + 78e836b commit 2eed9f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src_json_parser/smbjson.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ subroutine addCoordinates(mesh)
203203
call this%core%get(this%root, J_MESH//'.'//J_COORDINATES, jcs, found=found)
204204
if (found) then
205205
numberOfCoordinates = this%core%count(jcs)
206-
call res%allocateCoordinates(10*numberOfCoordinates)
206+
call res%allocateCoordinates(50*numberOfCoordinates)
207207
do i = 1, numberOfCoordinates
208208
call this%core%get_child(jcs, i, jc)
209209
id = this%getIntAt(jc, J_ID)
@@ -227,7 +227,7 @@ subroutine addElements(mesh)
227227

228228
call this%core%get(this%root, J_MESH//'.'//J_ELEMENTS, jes, found=found)
229229
numberOfElements = this%core%count(jes)
230-
call res%allocateElements(10*numberOfElements)
230+
call res%allocateElements(50*numberOfElements)
231231

232232
if (found) then
233233
do i = 1, numberOfElements

0 commit comments

Comments
 (0)