Skip to content

Commit

Permalink
complete mesh header
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Apr 27, 2021
1 parent 890bbce commit b24ef37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ref_part.c
Expand Up @@ -1423,6 +1423,7 @@ REF_STATUS ref_part_avm(REF_GRID *ref_grid_ptr, REF_MPI ref_mpi,
int boundary_patches;
int nhex, npri, npyr;
int ntri2, nqua, nqua2;
int zeros[5];
file = fopen(filename, "r");
if (NULL == (void *)file) printf("unable to open %s\n", filename);
RNS(file, "unable to open file");
Expand Down Expand Up @@ -1581,6 +1582,10 @@ REF_STATUS ref_part_avm(REF_GRID *ref_grid_ptr, REF_MPI ref_mpi,
REIS(ntri, ntri2, "ntri mismatch");
REIS(0, nqua, "cant do quad");
REIS(nqua, nqua2, "nquad mismatch");
REIS(5, fread(zeros, sizeof(int), 5, file), "zeros");
for (i = 0; i < 5; i++) {
REIS(0, zeros[i], "zeros not zero");
}
}
if (ref_grid_once(ref_grid)) REIS(0, fclose(file), "close file");
return REF_SUCCESS;
Expand Down

0 comments on commit b24ef37

Please sign in to comment.