star-mesh

Define and load a binary data format for meshes
git clone git://git.meso-star.fr/star-mesh.git
Log | Files | Refs | README | LICENSE

smsh_c.h (1212B)


      1 /* Copyright (C) 2020-2023, 2025 |Méso|Star> (contact@meso-star.com)
      2  *
      3  * This program is free software: you can redistribute it and/or modify
      4  * it under the terms of the GNU General Public License as published by
      5  * the Free Software Foundation, either version 3 of the License, or
      6  * (at your option) any later version.
      7  *
      8  * This program is distributed in the hope that it will be useful,
      9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     11  * GNU General Public License for more details.
     12  *
     13  * You should have received a copy of the GNU General Public License
     14  * along with this program. If not, see <http://www.gnu.org/licenses/>. */
     15 
     16 #ifndef SMSH_C_H
     17 #define SMSH_C_H
     18 
     19 #include <rsys/logger.h>
     20 #include <rsys/ref_count.h>
     21 
     22 struct mem_allocator;
     23 
     24 struct smsh {
     25   uint64_t pagesize;
     26   uint64_t nnodes;
     27   uint64_t ncells;
     28   unsigned dnode;
     29   unsigned dcell;
     30 
     31   double* nodes;
     32   uint64_t* cells;
     33   size_t map_len_nodes;
     34   size_t map_len_cells;
     35 
     36   size_t pagesize_os;
     37 
     38   struct mem_allocator* allocator;
     39   struct logger* logger;
     40   struct logger logger__; /* Default logger */
     41   int verbose;
     42   ref_T ref;
     43 };
     44 
     45 #endif /* SMSH_C_H */