FrontISTR  5.2.0
Large-scale structural analysis program with finit element method
hecmw_result_io.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2019 FrontISTR Commons
3  * This software is released under the MIT License, see LICENSE.txt
4  *****************************************************************************/
5 
6 #ifndef HECMW_RESULT_IO_INCLUDED
7 #define HECMW_RESULT_IO_INCLUDED
8 
9 #include "hecmw_config.h"
10 
11 #define COL_INT 10
12 #define COL_DOUBLE 5
13 #define LINEBUF_SIZE 1023
14 
15 struct result_list {
16  char *label;
17  double *ptr;
18  int n_dof;
19  struct result_list *next;
20 };
21 
22 extern int istep;
23 extern int nnode;
24 extern int nelem;
25 extern int filever_major;
26 extern int filever_minor;
27 extern char head[HECMW_HEADER_LEN + 1];
28 extern char comment_line[HECMW_MSG_LEN + 1];
29 extern char line_buf[LINEBUF_SIZE + 1];
30 
31 extern struct result_list *global_list;
32 extern struct result_list *node_list;
33 extern struct result_list *elem_list;
34 
35 extern int *node_global_ID;
36 extern int *elem_global_ID;
37 
38 
39 extern void HECMW_result_clear();
40 extern int HECMW_result_init_body(int n_node, int n_elem, int *nodeID,
41  int *elemID, int i_step,
42  char *header, char *comment);
43 extern int HECMW_result_add(int dtype, int n_dof, char *label,
44  double *ptr);
45 
46 extern int HECMW_result_count_ng_comp(void);
47 extern int HECMW_result_count_nn_comp(void);
48 extern int HECMW_result_count_ne_comp(void);
49 
50 #endif
#define HECMW_MSG_LEN
Definition: hecmw_config.h:74
#define HECMW_HEADER_LEN
Definition: hecmw_config.h:68
int HECMW_result_init_body(int n_node, int n_elem, int *nodeID, int *elemID, int i_step, char *header, char *comment)
#define LINEBUF_SIZE
struct result_list * node_list
int filever_major
struct result_list * elem_list
char line_buf[LINEBUF_SIZE+1]
int * node_global_ID
int filever_minor
int HECMW_result_count_ne_comp(void)
int HECMW_result_count_ng_comp(void)
struct result_list * global_list
int HECMW_result_add(int dtype, int n_dof, char *label, double *ptr)
int * elem_global_ID
int nelem
int istep
void HECMW_result_clear()
int nnode
char comment_line[HECMW_MSG_LEN+1]
int HECMW_result_count_nn_comp(void)
char head[HECMW_HEADER_LEN+1]
double * ptr
struct result_list * next