Skip to content

Commit

Permalink
Added many keywords to handle colours and groups partitioning
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicMarechal committed Oct 9, 2024
1 parent ad00222 commit d6575d2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
21 changes: 15 additions & 6 deletions sources/libmeshb7.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

/*----------------------------------------------------------------------------*/
/* */
/* LIBMESHB V7.83 */
/* LIBMESHB V7.84 */
/* */
/*----------------------------------------------------------------------------*/
/* */
/* Description: handles .meshb file format I/O */
/* Author: Loic MARECHAL */
/* Creation date: dec 09 1999 */
/* Last modification: jun 18 2024 */
/* Last modification: oct 09 2024 */
/* */
/*----------------------------------------------------------------------------*/

Expand Down Expand Up @@ -39,11 +39,8 @@
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
#include <math.h>
#include <ctype.h>
#include <setjmp.h>
#include <fcntl.h>


/*
Expand Down Expand Up @@ -114,6 +111,7 @@
#ifdef WITH_GMF_AIO

#include <aio.h>
#include <fcntl.h>

int my_aio_error (const struct aiocb *aiocbp){return(aio_error (aiocbp));}
int my_aio_read ( struct aiocb *aiocbp){return(aio_read (aiocbp));}
Expand Down Expand Up @@ -463,7 +461,18 @@ const char *GmfKwdFmt[ GmfMaxKwd + 1 ][3] =
{"QuadrialteralOnGeometryFace", "i", "iiiiiii"},
{"MeshOnGeometry", "i", "iiiiiidrdrii"},
{"VerticesColour", "i", "i"},
{"VerticesGrain", "i", "i"}
{"VerticesGrain", "i", "i"},
{"VertexGrainPartitions", "i", "ii"},
{"EdgeGrainPartitions", "i", "ii"},
{"TriangleGrainPartitions", "i", "ii"},
{"QuadrilateralGrainPartitions", "i", "ii"},
{"TetrahedronGrainPartitions", "i", "ii"},
{"PyramidGrainPartitions", "i", "ii"},
{"PrismGrainPartitions", "i", "ii"},
{"HexahedronGrainPartitions", "i", "ii"},
{"ColorPartitions", "i", "ii"},
{"TetrahedraColour", "i", "i"},
{"TetrahedraGrain", "i", "i"}
};

#ifdef TRANSMESH
Expand Down
15 changes: 13 additions & 2 deletions sources/libmeshb7.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

/*----------------------------------------------------------------------------*/
/* */
/* LIBMESHB V7.82 */
/* LIBMESHB V7.84 */
/* */
/*----------------------------------------------------------------------------*/
/* */
/* Description: handle .meshb file format I/O */
/* Author: Loic MARECHAL */
/* Creation date: dec 09 1999 */
/* Last modification: jun 18 2024 */
/* Last modification: oct 09 2024 */
/* */
/*----------------------------------------------------------------------------*/

Expand Down Expand Up @@ -282,6 +282,17 @@ enum GmfKwdCod
GmfMeshOnGeometry,
GmfVerticesColour,
GmfVerticesGrain,
GmfVertexGrainPartitions,
GmfEdgeGrainPartitions,
GmfTriangleGrainPartitions,
GmfQuadrilateralGrainPartitions,
GmfTetrahedronGrainPartitions,
GmfPyramidGrainPartitions,
GmfPrismGrainPartitions,
GmfHexahedronGrainPartitions,
GmfColorPartitions,
GmfTetrahedraColour,
GmfTetrahedraGrain,
GmfLastKeyword
};

Expand Down

0 comments on commit d6575d2

Please sign in to comment.