-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support larger mesh sizes in the NetCDF-C mesh converter
The `nCells`, `nEdges` and `nVertices` dimensions now are of type `size_t` in the c++ code. Products of these dimensions with other dimensions (`maxEdges2`, `two`, `vertexDegree`, etc.) are computed as `size_t` variables and then used to allocate arrays to avoid `int` overflow. These changes are likely not sufficient to allow meshes with more than ~2 billion edges (or vertices or cells) because index arrays are still stored as `int` type.
- Loading branch information
Showing
1 changed file
with
23 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters