AcouSTO  version 2.0
config.h File Reference
#include <ctype.h>
#include <stdio.h>
#include <time.h>
#include <errno.h>
#include <sys/stat.h>
#include "../acousto.h"
#include <libconfig.h>
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CONFIG_GET_FLOAT(config, name, var)   dtmp = 0.0; if(NULL!= config_lookup(&config,name)){ config_lookup_float(&config,name,&dtmp); } var = dtmp; logger(LOG_DEBUG,"%s=%f\n",#var,var)
 
#define CONFIG_GET_INT(config, name, var)   ltmp=0; if(NULL!=config_lookup(&config,name)){ config_lookup_int(&config,name,&ltmp);} var = (int)ltmp; logger(LOG_DEBUG,"%s=%d\n",#var,var);
 
#define CONFIG_GET_STRING(config, name, var)   if(NULL != config_lookup(&config, name)){ config_lookup_string(&config,name,&var); logger(LOG_DEBUG,"%s=%s\n",#var,var); }
 
#define CONFIG_LOOKUP(config, name)   config_lookup(&config,name)
 
#define SPHERE   1
 
#define CYLINDER   2
 
#define NODES   3
 
#define PLATE   4
 
#define GMSH   5
 

Functions

int read_runinfo (int check_dir)
 
int read_mics ()
 
int read_sphere (int igeom, const char *geoname, struct sphere_geom *sphere)
 
int read_cylinder (int igeom, const char *geoname, struct cylinder_geom *cylinder)
 
int read_nodes (int igeom, const char *geoname, struct nodes_geom *nodesgeom)
 
int read_gmsh (int igeom, const char *geoname, struct gmsh_geom *gmshgeom)
 
int read_plate (int igeom, const char *geoname, struct plate_geom *plategeom)
 
int read_gmshbc (int iphys, const char *phystagname, struct gmsh_bc *gmshgeom)
 
int read_modgeom ()
 
int read_modsol ()
 
int read_mysql ()
 
int readconfig (char *datfile, int check_dir)
 
void acousto_config_destroy ()
 

Variables

struct config_t config