Skip to content

Commit

Permalink
added cast to MMG5_int for max number of entities in MMG2D and MMGS
Browse files Browse the repository at this point in the history
  • Loading branch information
coprigent committed Mar 5, 2024
1 parent 7177336 commit 64c2869
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/mmg2d/zaldy_2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ int MMG2D_memOption(MMG5_pMesh mesh) {

mesh->memMax = MMG5_memSize();

mesh->npmax = MG_MAX(1.5*mesh->np,MMG2D_NPMAX);
mesh->ntmax = MG_MAX(1.5*mesh->nt,MMG2D_NEMAX);
mesh->npmax = MG_MAX((MMG5_int)(1.5*mesh->np),MMG2D_NPMAX);
mesh->ntmax = MG_MAX((MMG5_int)(1.5*mesh->nt),MMG2D_NEMAX);
mesh->namax = mesh->na;

return MMG2D_memOption_memSet(mesh);
Expand Down
4 changes: 2 additions & 2 deletions src/mmgs/zaldy_s.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ int MMGS_memOption(MMG5_pMesh mesh) {

mesh->memMax = MMG5_memSize();

mesh->npmax = MG_MAX(1.5*mesh->np,MMGS_NPMAX);
mesh->ntmax = MG_MAX(1.5*mesh->nt,MMGS_NTMAX);
mesh->npmax = MG_MAX((MMG5_int)(1.5*mesh->np),MMGS_NPMAX);
mesh->ntmax = MG_MAX((MMG5_int)(1.5*mesh->nt),MMGS_NTMAX);

return MMGS_memOption_memSet(mesh);
}
Expand Down

0 comments on commit 64c2869

Please sign in to comment.