Select Git revision
BasisHierarchical1Form.h
Forked from
gmsh / gmsh
Source project has a limited visibility.
gmshc.h 164.48 KiB
/*
* Gmsh - Copyright (C) 1997-2021 C. Geuzaine, J.-F. Remacle
*
* See the LICENSE.txt file for license information. Please report all
* issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
*/
#ifndef GMSHC_H
#define GMSHC_H
/*
* This file defines the Gmsh C API (v4.8.0).
*
* Do not edit it directly: it is automatically generated by `api/gen.py'.
*
* By design, the Gmsh C API is purely functional, and only uses elementary
* C types. See `tutorial/c' and `demos/api' for examples.
*/
#include <stddef.h>
#define GMSH_API_VERSION "4.8.0"
#define GMSH_API_VERSION_MAJOR 4
#define GMSH_API_VERSION_MINOR 8
#define GMSH_API_VERSION_PATCH 0
#if defined(GMSH_DLL)
#if defined(GMSH_DLL_EXPORT)
#define GMSH_API __declspec(dllexport)
#else
#define GMSH_API __declspec(dllimport)
#endif
#else
#define GMSH_API
#endif
GMSH_API void gmshFree(void *p);
GMSH_API void *gmshMalloc(size_t n);
/* Initialize Gmsh API. This must be called before any call to the other
* functions in the API. If `argc' and `argv' (or just `argv' in Python or
* Julia) are provided, they will be handled in the same way as the command
* line arguments in the Gmsh app. If `readConfigFiles' is set, read system
* Gmsh configuration files (gmshrc and gmsh-options). Initializing the API
* sets the options "General.Terminal" to 1 and "General.AbortOnError" to 2. */
GMSH_API void gmshInitialize(int argc, char ** argv,
const int readConfigFiles,
int * ierr);
/* Finalize the Gmsh API. This must be called when you are done using the Gmsh
* API. */
GMSH_API void gmshFinalize(int * ierr);
/* Open a file. Equivalent to the `File->Open' menu in the Gmsh app. Handling
* of the file depends on its extension and/or its contents: opening a file
* with model data will create a new model. */
GMSH_API void gmshOpen(const char * fileName,
int * ierr);
/* Merge a file. Equivalent to the `File->Merge' menu in the Gmsh app.
* Handling of the file depends on its extension and/or its contents. Merging
* a file with model data will add the data to the current model. */
GMSH_API void gmshMerge(const char * fileName,
int * ierr);
/* Write a file. The export format is determined by the file extension. */
GMSH_API void gmshWrite(const char * fileName,
int * ierr);
/* Clear all loaded models and post-processing data, and add a new empty