escript  Revision_Unversioneddirectory
Classes | Namespaces | Macros | Functions
finley/src/Mesh_readGmsh.cpp File Reference
#include "esysUtils/first.h"
#include "Mesh.h"
#include <cstdio>
#include "CPPAdapter/FinleyAdapterException.h"

Classes

struct  ElementInfo
 

Namespaces

 finley
 

Macros

#define ESNEEDPYTHON
 
#define SSCANF_CHECK(scan_ret)   { if (scan_ret == EOF) { errorFlag = 1;} }
 
#define MAX_numNodes_gmsh   20
 
#define EARLY_EOF   1
 
#define MISSING_NODES   2
 
#define MISSING_ELEMENTS   3
 
#define THROW_ERROR   4
 
#define SUCCESS   5
 
#define ERROR   6
 

Functions

bool is_node_string (char *line)
 
bool is_endnode_string (char *line)
 
bool get_line (std::vector< char > &line, FILE *file)
 
char * finley::next_space (char **position, int count)
 
int finley::getSingleElement (FILE *f, int dim, double version, struct ElementInfo &e, char *error_msg, const char *fname, bool useMacroElements)
 
int finley::getElementsMaster (esysUtils::JMPI &mpi_info, Mesh *mesh_p, FILE *fileHandle_p, char *error_msg, bool useMacroElements, const std::string fname, int numDim, double version, int order, int reduced_order)
 
int finley::getElementsSlave (esysUtils::JMPI &mpi_info, Mesh *mesh_p, FILE *fileHandle_p, char *error_msg, bool useMacroElements, const std::string fname, int numDim, double version, int order, int reduced_order)
 
int finley::getElements (esysUtils::JMPI &mpi_info, Mesh *mesh_p, FILE *fileHandle_p, char *error_msg, bool useMacroElements, const std::string fname, int numDim, double version, int order, int reduced_order)
 
int finley::gather_nodes (FILE *f, std::map< int, int > &tags, char *error_msg, int dim, double version, const char *fname)
 
int finley::getNodesMaster (esysUtils::JMPI &mpi_info, Mesh *mesh_p, FILE *fileHandle_p, int numDim, char *error_msg, std::map< int, int > &tags, int errorFlag)
 
int finley::getNodesSlave (esysUtils::JMPI &mpi_info, Mesh *mesh_p, FILE *fileHandle_p, int numDim, char *error_msg, std::map< int, int > &tags, int errorFlag)
 
int finley::getNodes (esysUtils::JMPI &mpi_info, Mesh *mesh_p, FILE *fileHandle_p, int numDim, char *error_msg, std::map< int, int > &tags, int errorFlag)
 
int finley::get_next_state (FILE *f, bool nodesRead, bool elementsRead, int *logicFlag)
 
void finley::recv_state (esysUtils::JMPI &mpi_info, int *error, int *logic)
 
void finley::send_state (esysUtils::JMPI &mpi_info, int error, int logic)
 
int finley::check_error (int error, FILE *f, char *error_msg)
 

Macro Definition Documentation

#define EARLY_EOF   1
#define ERROR   6
#define ESNEEDPYTHON
#define MAX_numNodes_gmsh   20
#define MISSING_ELEMENTS   3
#define MISSING_NODES   2
#define SSCANF_CHECK (   scan_ret)    { if (scan_ret == EOF) { errorFlag = 1;} }
#define SUCCESS   5
#define THROW_ERROR   4

Function Documentation

bool get_line ( std::vector< char > &  line,
FILE *  file 
)
bool is_endnode_string ( char *  line)
bool is_node_string ( char *  line)

Referenced by finley::get_next_state().