Skip to content

Commit

Permalink
Modified byte swapping for 64-bit integers; properly initialized some…
Browse files Browse the repository at this point in the history
… variables
  • Loading branch information
coprigent committed Feb 29, 2024
1 parent d3bc262 commit 1957d11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/mmg2d/inout_2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ int MMG2D_loadMesh(MMG5_pMesh mesh,const char *filename) {
ncor = nreq = nreqed = ntreq = nqreq = 0;
bin = 0;
iswp = 0;
bpos = 0;
mesh->np = mesh->nt = mesh->na = mesh->xp = 0;
nref = 0;

Expand Down
1 change: 1 addition & 0 deletions src/mmg3d/inout_3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ int MMG3D_loadMesh_opened(MMG5_pMesh mesh,FILE *inm,int bin) {
ncor = ned = npreq = ntreq = nqreq = nereq = nedreq = nr = ng = 0;
nppar = nedpar = ntpar = nqpar = nepar = 0;
iswp = 0;
bpos = ia = idn = ip = 0;
mesh->np = mesh->nt = mesh->ne = 0;
nref = 0;

Expand Down
2 changes: 1 addition & 1 deletion src/mmgs/inout_s.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ int MMGS_loadMesh(MMG5_pMesh mesh, const char *filename) {
ncor = nri = ng = nedreq = nq = ntreq = 0;
bin = 0;
iswp = 0;
bpos = ia = 0;
bpos = ia = idn = ip = 0;
mesh->np = mesh->nt = mesh->nti = mesh->npi = 0;

nref = 0;
Expand Down

0 comments on commit 1957d11

Please sign in to comment.