FrontISTR  5.7.1
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 
17 };
18 
19 #ifdef OLD_RES_FORMAT
20 # define HECMW_RESULT_FILEVER_MAJOR 1
21 # define HECMW_RESULT_FILEVER_MINOR 0
22 #else
23 # define HECMW_RESULT_FILEVER_MAJOR 2
24 # define HECMW_RESULT_FILEVER_MINOR 0
25 #endif // OLD_RES_FORMAT
26 
27 struct result_list {
28  char *label;
29  double *ptr;
30  int n_dof;
31  struct result_list *next;
32 };
33 
35  int istep;
36  int nnode;
37  int nelem;
40 
44 
47 
48  int MPC_exist;
49  int *eid_wo_MPC;
50 };
51 
52 extern struct hecmwST_result_io_data ResIO;
53 
54 extern void HECMW_result_io_finalize();
55 extern int HECMW_result_io_init(int n_node, int n_elem, int *nodeID, int *elemID,
56  int n_elem_type, int *elem_type_index, int *elem_type_item,
57  int i_step, char *header, char *comment);
58 extern int HECMW_result_io_add(int dtype, int n_dof, char *label,
59  double *ptr);
60 
61 extern int HECMW_result_io_count_ng_comp(void);
62 extern int HECMW_result_io_count_nn_comp(void);
63 extern int HECMW_result_io_count_ne_comp(void);
64 
65 #endif
#define HECMW_MSG_LEN
Definition: hecmw_config.h:74
#define HECMW_HEADER_LEN
Definition: hecmw_config.h:68
void HECMW_result_io_finalize()
int HECMW_result_io_count_ng_comp(void)
int HECMW_result_io_count_ne_comp(void)
int HECMW_result_io_init(int n_node, int n_elem, int *nodeID, int *elemID, int n_elem_type, int *elem_type_index, int *elem_type_item, int i_step, char *header, char *comment)
HECMW_RESULT_DTYPE
@ HECMW_RESULT_DTYPE_ELEM
@ HECMW_RESULT_DTYPE_MIN
@ HECMW_RESULT_DTYPE_NODE
@ HECMW_RESULT_DTYPE_GLOBAL
@ HECMW_RESULT_DTYPE_MAX
int HECMW_result_io_add(int dtype, int n_dof, char *label, double *ptr)
int HECMW_result_io_count_nn_comp(void)
struct hecmwST_result_io_data ResIO
char comment_line[HECMW_MSG_LEN+1]
struct result_list * global_list
struct result_list * node_list
char head[HECMW_HEADER_LEN+1]
struct result_list * elem_list
double * ptr
struct result_list * next