30 config_setting_t* geomcont;
66 geomcont = config_lookup(&
config,
"modgeom.geoms");
73 for (i = 0; i < config_setting_length(geomcont); i++) {
74 sprintf(varname,
"modgeom.%s", config_setting_get_string_elem(geomcont, i));
75 geoname = config_setting_get_string_elem(geomcont, i);
77 sprintf(varname,
"%s.type", geoname);
85 if (0 == strcmp(geotype,
"sphere")) {
88 }
else if (0 == strcmp(geotype,
"cylinder")) {
91 }
else if (0 == strcmp(geotype,
"nodes")) {
94 if(-1 ==
read_nodes(i,geoname,nodesgeom))
return -1;
95 }
else if (0 == strcmp(geotype,
"gmsh")) {
98 if(-1 ==
read_gmsh(i,geoname,gmshgeom))
return -1;
99 }
else if (0 == strcmp(geotype,
"plate")) {
102 if(-1 ==
read_plate(i,geoname,plategeom))
return -1;
127 for (i = 0; i < config_setting_length(geomcont); i++) {
#define CONFIG_GET_INT(config, name, var)
Definition: config.h:47
Sphere.
Definition: structs.h:198
int ngeometries
Definition: globals.h:64
struct geometry * geometries
Definition: globals.h:66
int read_gmsh(int igeom, const char *geoname, struct gmsh_geom *gmshgeom)
Definition: gmsh.c:40
struct run_info * runinfo
Definition: globals.h:34
#define GMSH
Definition: config.h:58
struct vector translation
Definition: structs.h:307
#define CYLINDER
Definition: config.h:55
int ncntr
Definition: structs.h:175
#define CONFIG_GET_STRING(config, name, var)
Definition: config.h:48
int ncntr
Definition: structs.h:299
#define CONFIG_LOOKUP(config, name)
Definition: config.h:49
int cylinder(struct geometry *geom)
Definition: geom_cylinder.c:31
#define NODES
Definition: config.h:56
struct vector scale
Definition: structs.h:309
BOOL active
Definition: structs.h:282
int nchief
Definition: structs.h:301
int mics_block_size
Definition: structs.h:124
int size
Definition: globals.h:81
#define LOG_INFO
Definition: logger.h:26
struct vector translation
Definition: structs.h:181
int nelmb
Definition: structs.h:295
int nnodb
Definition: structs.h:293
int read_mics()
Definition: mics.c:22
struct file_info * fileinfo
Definition: globals.h:32
int read_sphere(int igeom, const char *geoname, struct sphere_geom *sphere)
Definition: sphere.c:22
struct vector scale
Definition: structs.h:185
#define LOG_ERROR
Definition: logger.h:24
int nelmb
Definition: structs.h:179
const char * chief_file
Definition: structs.h:405
Plate.
Definition: structs.h:226
struct config_t config
Definition: config.h:61
const char * nodes_file
Definition: structs.h:403
int nmics
Definition: structs.h:304
DOUBLE z
Definition: structs.h:35
struct vector rotation
Definition: structs.h:183
#define LOG_DEBUG
Definition: logger.h:27
#define LOG_WARN
Definition: logger.h:25
#define malloc(size)
Definition: allocation.h:38
int read_plate(int igeom, const char *geoname, struct plate_geom *plategeom)
Definition: plate.c:22
External geometry stored in .msh file using GMSH v2.0 format.
Definition: structs.h:250
#define PLATE
Definition: config.h:57
#define SPHERE
Definition: config.h:54
DOUBLE x
Definition: structs.h:31
int col_block_size
Definition: structs.h:121
int nnodb
Definition: structs.h:177
int sphere(struct geometry *geom)
Definition: geom_sphere.c:30
const char * mics_file
Definition: structs.h:407
int read_cylinder(int igeom, const char *geoname, struct cylinder_geom *cylinder)
Definition: cylinder.c:22
Cylinder.
Definition: structs.h:210
Geometry info structure.
Definition: structs.h:161
#define MAX_PATH
Definition: constants.h:29
int read_nodes(int igeom, const char *geoname, struct nodes_geom *nodesgeom)
Definition: nodes.c:22
#define CONFIG_GET_FLOAT(config, name, var)
Definition: config.h:44
int row_block_size
Definition: structs.h:119
void logger(int level, char *msg,...)
Definition: logger.c:56
struct modgeom_info * modgeominfo
Definition: globals.h:38
External geometry stored in file using acousto native format.
Definition: structs.h:241
DOUBLE y
Definition: structs.h:33
struct vector rotation
Definition: structs.h:308