Skip to content

Commit

Permalink
writes out nedge for ntri for twod avm
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Jul 21, 2021
1 parent 2c6ad38 commit a80f396
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ref_gather.c
Original file line number Diff line number Diff line change
Expand Up @@ -2508,7 +2508,11 @@ static REF_STATUS ref_gather_avm(REF_GRID ref_grid, const char *filename) {
REIS(1, fwrite(&n_int, sizeof(n_int), 1, file), "npri");
n_int = 0;
REIS(1, fwrite(&n_int, sizeof(n_int), 1, file), "npyr");
n_int = (int)ntri;
if (ref_grid_twod(ref_grid)) {
n_int = (int)nedg;
} else {
n_int = (int)ntri;
}
REIS(1, fwrite(&n_int, sizeof(n_int), 1, file), "# boundary tri faces");
REIS(1, fwrite(&n_int, sizeof(n_int), 1, file), "# tri faces");
n_int = 0;
Expand Down

0 comments on commit a80f396

Please sign in to comment.