/usr/include/eio_api.h is in libelmer-dev 6.1.0.svn.5396.dfsg2-4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 | /*
Elmer, A Finite Element Software for Multiphysical Problems
Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/***********************************************************************
Program: ELMER Data base interface (EIO)
Author(s): Harri Hakula 10.03.98
************************************************************************/
#ifndef EIOAPI_H
#define EIOAPI_H
#include "../config.h"
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
//#if defined(__cplusplus)
//#define EIOFUN extern "C" void
#define IREF int&
#define DREF double&
//#else
//#define EIOFUN void
//#define IREF int*
//#define DREF double*
//#endif
void eio_init (IREF info);
void eio_init_parallel (IREF procs, IREF me, IREF info);
void eio_close (IREF info);
void eio_create_model (const char *directory, IREF info);
void eio_open_model (const char *directory, IREF info);
void eio_close_model (IREF info);
void eio_create_geometry (IREF info);
void eio_open_geometry (IREF info);
void eio_close_geometry (IREF info);
void eio_set_geometry_description (IREF bodyC, IREF boundaryC, IREF outerC,
IREF innerC, IREF vertexC,
IREF loopC, IREF maxLooplen, IREF info);
void eio_get_geometry_description (IREF bodyC, IREF boundaryC, IREF outerC,
IREF innerC, IREF vertexC,
IREF loopC, IREF maxLooplen, IREF info);
void eio_set_geometry_body (IREF tag, IREF meshControl, IREF loopC,
int *loops,
IREF info);
void eio_get_geometry_body (IREF tag, IREF meshControl, IREF loopC,
int *loops,
IREF info);
void eio_set_geometry_body_loop (IREF tag, IREF field, int *nodes, IREF info);
void eio_get_geometry_body_loop (IREF tag, IREF field, int *nodes, IREF info);
// Added nodeC argument: Martti Verho 17.03.99
void eio_set_geometry_element (IREF tag, IREF cTag, IREF meshControl,
IREF type, IREF nodeC, int *nodes, IREF info);
// Added nodeC argument: Martti Verho 17.03.99
void eio_get_geometry_element (IREF tag, IREF cTag, IREF meshControl,
IREF type, IREF nodeC, int *nodes, IREF info);
// Added: Martti Verho 17.03.99
void eio_get_geometry_element_description (IREF tag, IREF cTag, IREF meshControl,
IREF type, IREF nodeC, IREF info);
void eio_set_geometry_node (IREF tag, IREF cTag, double *coord, IREF info);
void eio_get_geometry_node (IREF tag, IREF cTag, double *coord, IREF info);
void eio_set_geometry_boundary (IREF tag, IREF left, IREF right, IREF info);
void eio_get_geometry_boundary (IREF tag, IREF left, IREF right, IREF info);
void eio_create_mesh (const char *directory, IREF info);
void eio_open_mesh (const char *directory, IREF info);
void eio_close_mesh (IREF info);
void eio_set_mesh_description (IREF nodeCount, IREF elementCount,
IREF boundaryElementCount,
IREF usedElementTypes, int* elementTypeTags,
int *elementCountByType,
IREF info);
void eio_set_mesh_node (IREF tag, IREF constraint, double *coord, IREF info);
void eio_set_mesh_element_conns (IREF tag, IREF body,
IREF type, int *nodes,
IREF info);
/*
*
* Obsolete versions of these routines
void eio_set_mesh_bndry_element (IREF tag, IREF constraint,
IREF leftbody, IREF rightbody,
IREF left, IREF right,
double *auxCoord,
IREF type, int *nodes,
IREF info);
void eio_get_mesh_bndry_element (IREF tag, IREF constraint,
IREF leftbody, IREF rightbody,
IREF left, IREF right,
double *auxCoord, IREF type, int *nodes,
double *coord, IREF info);
*/
/*
* Modified routines
*/
void eio_set_mesh_bndry_element (IREF tag, IREF boundary,
IREF leftElement, IREF rightElement,
IREF type, int *nodes,
IREF info);
void eio_get_mesh_bndry_element (IREF tag, IREF boundary,
IREF leftElement, IREF rightElement,
IREF type, int *nodes,
double *coord, IREF info);
void eio_get_mesh_description (IREF nodeCount, IREF elementCount,
IREF boundaryElementCount,
IREF usedElementTypes, int* elementTypeTags,
int *elementCountByType,
IREF info);
void eio_get_mesh_element_conns (IREF tag, IREF body, IREF type,
int *pdofs, int *nodes, IREF info);
void eio_get_mesh_element_coords (IREF tag, IREF body, IREF type,
int *nodes,
double *coord, IREF info);
void eio_get_mesh_nodes (int *tags, double *coord, IREF info);
void eio_create_dual_mesh (const char *dir, IREF info);
void eio_open_dual_mesh (const char *dir, IREF info);
void eio_close_dual_mesh (IREF info);
void eio_set_dual_mesh_element_conns (IREF tag,
IREF type, int *nodes,
IREF info);
void eio_get_dual_mesh_element_conns (IREF tag,
IREF type, int *nodes,
IREF info);
void eio_create_part (const char *dir, IREF parts, IREF info);
void eio_open_part (IREF info);
void eio_close_part (IREF info);
void eio_set_part_description (IREF nodeCount,
IREF sharedNodeCount,
IREF elementCount,
IREF borderElementCount,
IREF boundaryElementCount,
IREF usedElementTypes,
int* elementTypeTags,
int *elementCountByType,
IREF info);
void eio_get_part_description(IREF sharedNodeCount,
IREF info);
void eio_activate_part_part (IREF part, IREF info);
void eio_deactivate_part_part (IREF info);
void eio_set_part_node ( IREF tag,
IREF constraint,
double *coord,
IREF partcount,
int *parts,
IREF info);
void eio_get_part_node ( IREF tag,
IREF constraint,
double *coord,
IREF partcount,
int *parts,
IREF info);
void eio_set_part_element (IREF tag,
IREF body,
IREF type,
int *nodes,
IREF border,
IREF info);
/* MODEL DATA */
void eio_create_modeldata (IREF info);
void eio_open_modeldata (IREF info);
void eio_close_modeldata (IREF info);
void eio_set_modeldata_description (IREF bodies,
IREF body_forces,
IREF body_equations,
IREF materials,
IREF boundary_conditions,
IREF initial_conditions,
IREF mesh_parameters,
IREF info);
void eio_get_modeldata_description (IREF bodies,
IREF body_forces,
IREF body_equations,
IREF materials,
IREF boundary_conditions,
IREF initial_conditions,
IREF mesh_parameters,
IREF info);
void eio_set_body (IREF tag, IREF body_force_id,
IREF equation_id, IREF init_cond_id,
IREF material_id, IREF mesh_param_id, IREF info);
void eio_get_body (IREF tag, IREF body_force_id,
IREF equation_id, IREF init_cond_id,
IREF material_id, IREF mesh_param_id, IREF info);
void eio_set_constants (double* gravity, DREF boltz, IREF info);
void eio_get_constants (double* gravity, DREF boltz, IREF info);
void eio_set_coords (IREF dim, IREF coordsys, int *mapping,
IREF symmetry,
double *start,
double *end1, double* end2, IREF info);
void eio_get_coords (IREF dim, IREF coordsys, int *mapping,
IREF symmetry,
double *start,
double *end1, double* end2, IREF info);
void eio_set_material_head (IREF tag, IREF fields, IREF info);
void eio_set_material_field (IREF name,
IREF type, IREF len,
int *fields,
double *values,
IREF info);
void eio_set_bndry_condition_head (IREF tag,
IREF fields,
IREF info);
void eio_set_bndry_condition_field (IREF name,
IREF type, IREF len,
int *fields,
double *values,
IREF info);
void eio_set_initial_condition_head (IREF tag,
IREF fields,
IREF info);
void eio_set_initial_condition_field (IREF name,
IREF type, IREF len,
int *fields,
double *values,
IREF info);
void eio_set_body_equation_head (IREF tag,
IREF fields,
IREF info);
void eio_set_body_equation_field (IREF name,
IREF type, IREF len,
int *fields,
double *values,
IREF info);
void eio_set_body_force_head (IREF tag,
IREF fields,
IREF info);
void eio_set_body_force_field (IREF name,
IREF type, IREF len,
int *fields,
double *values,
IREF info);
void eio_set_mesh_parameter_head (IREF tag,
IREF fields,
IREF info);
void eio_set_mesh_parameter_field (IREF name,
IREF type, IREF len,
int *fields,
double *values,
IREF info);
void eio_get_material_head (IREF tag, IREF fields, IREF info);
void eio_get_material_field (IREF name,
IREF type, IREF len,
int *fields,
double *values,
IREF info);
void eio_get_bndry_condition_head (IREF tag,
IREF fields,
IREF info);
void eio_get_bndry_condition_field (IREF name,
IREF type, IREF len,
int *fields,
double *values,
IREF info);
void eio_get_initial_condition_head (IREF tag,
IREF fields,
IREF info);
void eio_get_initial_condition_field (IREF name,
IREF type, IREF len,
int *fields,
double *values,
IREF info);
void eio_get_body_equation_head (IREF tag,
IREF fields,
IREF info);
void eio_get_body_equation_field (IREF name,
IREF type, IREF len,
int *fields,
double *values,
IREF info);
void eio_get_body_force_head (IREF tag,
IREF fields,
IREF info);
void eio_get_body_force_field (IREF name,
IREF type, IREF len,
int *fields,
double *values,
IREF info);
void eio_get_mesh_parameter_head (IREF tag,
IREF fields,
IREF info);
void eio_get_mesh_parameter_field (IREF name,
IREF type, IREF len,
int *fields,
double *values,
IREF info);
void eio_create_solver (IREF info);
void eio_open_solver (IREF info);
void eio_close_solver (IREF info);
void eio_set_solver_description (IREF linsys, IREF procs, IREF info);
void eio_get_solver_description (IREF linsys, IREF procs, IREF info);
void eio_set_solver (IREF equation,
IREF main_type,
IREF sub_type,
IREF precond_type,
IREF stabilization,
IREF max_iter,
DREF stop_tol,
DREF steady_stop_tol,
IREF linearization,
IREF lin_max_iter,
DREF lin_stop_tol,
IREF lin_use_picard,
IREF lin_use_newton,
IREF newton_after_iter,
DREF newton_after_tol,
IREF info);
void eio_get_solver (IREF equation,
IREF main_type,
IREF sub_type,
IREF precond_type,
IREF stabilization,
IREF max_iter,
DREF stop_tol,
DREF steady_stop_tol,
IREF linearization,
IREF lin_max_iter,
DREF lin_stop_tol,
IREF lin_use_picard,
IREF lin_use_newton,
IREF newton_after_iter,
DREF newton_after_tol,
IREF info);
void eio_set_timestep_head (IREF dependence, IREF len, IREF info);
void eio_get_timestep_head (IREF dependence, IREF len, IREF info);
void eio_set_timestep_field (IREF type,
int *nof_timesteps,
double *timestep_sizes,
int *output_intervals,
IREF steady_max_iter,
IREF info);
void eio_get_timestep_field (IREF type,
int *nof_timesteps,
double *timestep_sizes,
int *output_intervals,
IREF steady_max_iter,
IREF info);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif
|