Skip to content

Commit

Permalink
dumps nodes to avm
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 1709836 commit 96155fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ref_gather.c
Original file line number Diff line number Diff line change
Expand Up @@ -2403,6 +2403,14 @@ static REF_STATUS ref_gather_avm(REF_GRID ref_grid, const char *filename) {
REIS(1, fwrite(&n_int, sizeof(n_int), 1, file), "patch ID");
}
}

{
REF_BOOL swap_endian = REF_FALSE;
REF_INT version = 0; /* meshb version, zero is no id */
REF_BOOL twod = ref_grid_twod(ref_grid);
RSS(ref_gather_node(ref_node, swap_endian, version, twod, file), "nodes");
}

if (ref_mpi_once(ref_mpi)) fclose(file);
return REF_SUCCESS;
}
Expand Down

0 comments on commit 96155fb

Please sign in to comment.