Skip to content

Commit

Permalink
prevents truncation of nnode to int
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Apr 29, 2021
1 parent e0b86c2 commit 8fde884
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/ref_gather.c
Expand Up @@ -2476,7 +2476,7 @@ static REF_STATUS ref_gather_bin_ugrid(REF_GRID ref_grid, const char *filename,
REF_BOOL sixty_four_bit) {
FILE *file;
REF_NODE ref_node = ref_grid_node(ref_grid);
REF_INT nnode;
REF_GLOB nnode;
REF_LONG ntri, nqua, ntet, npyr, npri, nhex;
REF_LONG size_long;
REF_INT size_int;
Expand All @@ -2488,7 +2488,7 @@ static REF_STATUS ref_gather_bin_ugrid(REF_GRID ref_grid, const char *filename,

RSS(ref_node_synchronize_globals(ref_node), "sync");

nnode = (REF_INT)ref_node_n_global(ref_node);
nnode = ref_node_n_global(ref_node);

RSS(ref_cell_ncell(ref_grid_tri(ref_grid), ref_node, &ntri), "ntri");
RSS(ref_cell_ncell(ref_grid_qua(ref_grid), ref_node, &nqua), "nqua");
Expand Down
8 changes: 3 additions & 5 deletions src/todo
@@ -1,14 +1,12 @@

ref_gather_bin_ugrid REF_GLOB nnode
introduce a code enum in ref_subcommand loop

optimize t to reduce eval t and eval uv in edgeUV

use cached e2f
assign e2f and pcurves position based on sense
recall e2f and pcurves position based on sense

introduce a code enum in ref_subcommand loop

optimize t to reduce eval t and eval uv in edgeUV

sync twod oriention with and without EGADS
flip boundary orientation convention
use CGNS winding
Expand Down

0 comments on commit 8fde884

Please sign in to comment.