Skip to content

Commit

Permalink
sets twod count for max sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Jul 26, 2021
1 parent b734491 commit 90f74e6
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/ref_gather.c
Original file line number Diff line number Diff line change
Expand Up @@ -2476,12 +2476,21 @@ static REF_STATUS ref_gather_avm(REF_GRID ref_grid, const char *filename) {
n_int = (int)ntet;
}
REIS(1, fwrite(&n_int, sizeof(n_int), 1, file), "ncells");
n_int = 3;
REIS(1, fwrite(&n_int, sizeof(n_int), 1, file), "max nodes per face");
n_int = 4;
REIS(1, fwrite(&n_int, sizeof(n_int), 1, file), "max nodes per cell");
n_int = 4;
REIS(1, fwrite(&n_int, sizeof(n_int), 1, file), "max faces per cell");
if (ref_grid_twod(ref_grid)) {
n_int = 2;
REIS(1, fwrite(&n_int, sizeof(n_int), 1, file), "max nodes per face");
n_int = 3;
REIS(1, fwrite(&n_int, sizeof(n_int), 1, file), "max nodes per cell");
n_int = 3;
REIS(1, fwrite(&n_int, sizeof(n_int), 1, file), "max faces per cell");
}else{
n_int = 3;
REIS(1, fwrite(&n_int, sizeof(n_int), 1, file), "max nodes per face");
n_int = 4;
REIS(1, fwrite(&n_int, sizeof(n_int), 1, file), "max nodes per cell");
n_int = 4;
REIS(1, fwrite(&n_int, sizeof(n_int), 1, file), "max faces per cell");
}
length = (int)strlen(element_scheme);
REIS(length,
fwrite(element_scheme, sizeof(char), (unsigned long)length, file),
Expand Down

0 comments on commit 90f74e6

Please sign in to comment.