Skip to content

Commit

Permalink
patch headers
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 b24ef37 commit 65b73e7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/ref_part.c
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,10 @@ REF_STATUS ref_part_avm(REF_GRID *ref_grid_ptr, REF_MPI ref_mpi,
int nhex, npri, npyr;
int ntri2, nqua, nqua2;
int zeros[5];
char patch_label[33];
char patch_type[17];
int patch_id;

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 @@ -1586,6 +1590,14 @@ REF_STATUS ref_part_avm(REF_GRID *ref_grid_ptr, REF_MPI ref_mpi,
for (i = 0; i < 5; i++) {
REIS(0, zeros[i], "zeros not zero");
}
for (i = 0; i < boundary_patches; i++) {
REIS(32, fread(patch_label, sizeof(char), 32, file), "patch_label");
patch_label[32] = '\0';
REIS(16, fread(patch_type, sizeof(char), 16, file), "patch_type");
patch_type[16] = '\0';
REIS(1, fread(&patch_id, sizeof(patch_id), 1, file), "patch_id");
if (verbose) printf("%s %s %d\n", patch_label, patch_type, patch_id);
}
}
if (ref_grid_once(ref_grid)) REIS(0, fclose(file), "close file");
return REF_SUCCESS;
Expand Down

0 comments on commit 65b73e7

Please sign in to comment.