Skip to content

Commit

Permalink
Fixed wrong index range
Browse files Browse the repository at this point in the history
  • Loading branch information
Corentin Prigent committed Sep 2, 2024
1 parent fd82799 commit 70c6077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libparmmg.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ int PMMG_preprocessMesh_distributed( PMMG_pParMesh parmesh )
* Check triangles, create xtetras */
PMMG_CALLOC(parmesh,permtria,mesh->nt+1,MMG5_int,"permtria",return 0);
MMG5_int k;
for (k=0;k<=mesh->nt+1;k++) {
for (k=0;k<=mesh->nt;k++) {
permtria[k] = k;
}
if ( parmesh->myrank < parmesh->info.npartin ) {
Expand Down

0 comments on commit 70c6077

Please sign in to comment.