![]() |
FrontISTR
5.8.0
Large-scale structural analysis program with finit element method
|
Go to the source code of this file.
Macros | |
| #define | fstr_ctrl_util_MAIN |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | buffsize 256 |
| #define | STR_SIZE buffsize |
| #define | FILE_NAME_SIZE 512 |
| #define | ERR_MSG_SIZE 1024 |
| #define | MAX_DATA_ARRAY_NUMBER 256 |
Functions | |
| void | c_fstr_ctrl_get_err_msg (char *buff) |
| int | fstr_ctrl_tmp_rewind (fstr_ctrl_data *ctrl) |
| int | fstr_ctrl_rewind (int *ctrl) |
| fstr_ctrl_data * | c_fstr_ctrl_open (const char *filename) |
| int | c_fstr_ctrl_get_rec_number (fstr_ctrl_data *ctrl) |
| int | c_fstr_ctrl_get_line (fstr_ctrl_data *ctrl, int rec_no, char *buff) |
| int | c_fstr_ctrl_seek_header (fstr_ctrl_data *ctrl, const char *header_name) |
| int | c_fstr_ctrl_seek_next_header (fstr_ctrl_data *ctrl) |
| int | c_fstr_ctrl_get_current_header_name (fstr_ctrl_data *ctrl, char *header_name) |
| int | c_fstr_ctrl_get_current_header_line_no (fstr_ctrl_data *ctrl) |
| int | c_fstr_ctrl_get_current_header_pos (fstr_ctrl_data *ctrl) |
| int | c_fstr_ctrl_get_param (fstr_ctrl_data *ctrl, const char *param_name, const char *value_list, char type, void *val) |
| int | c_fstr_ctrl_get_param_ex (fstr_ctrl_data *ctrl, const char *param_name, const char *value_list, int necessity, char type, void *val) |
| int | c_fstr_ctrl_get_data_line_n (fstr_ctrl_data *ctrl) |
| int | c_fstr_ctrl_copy_data_line (fstr_ctrl_data *ctrl, int line_no, char *data_line) |
| int | c_fstr_ctrl_get_data_n_in_line (fstr_ctrl_data *ctrl, int line_no, const char *delim) |
| int | c_fstr_ctrl_get_data_error_pos (void) |
| int | c_fstr_ctrl_get_data_error_line (void) |
| int | c_fstr_ctrl_get_data (fstr_ctrl_data *ctrl, int line_no, const char *format,...) |
| int | c_fstr_ctrl_get_data_ex (fstr_ctrl_data *ctrl, int line_no, const char *format,...) |
| int | c_fstr_ctrl_get_data_v (fstr_ctrl_data *ctrl, int line_no, const char *format, va_list va) |
| int | c_fstr_ctrl_get_data_array_v (fstr_ctrl_data *ctrl, const char *format, va_list va) |
| int | c_fstr_ctrl_get_data_array (fstr_ctrl_data *ctrl, const char *format,...) |
| int | c_fstr_ctrl_get_data_array_ex (fstr_ctrl_data *ctrl, const char *format,...) |
| int | c_fstr_ctrl_close (fstr_ctrl_data *ctrl) |
| void | c_fstr_ctrl_dump (fstr_ctrl_data *ctrl) |
| void | fstr_ctrl_get_err_msg (char *f_buff, int *len) |
| int | fstr_ctrl_open (char *filename) |
| int | fstr_ctrl_get_rec_number (int *ctrl) |
| int | fstr_ctrl_get_line (int *ctrl, int *rec_no, char *buff, int *buff_size) |
| int | fstr_ctrl_seek_header (int *ctrl, const char *header_name) |
| int | fstr_ctrl_seek_next_header (int *ctrl) |
| int | fstr_ctrl_get_c_h_name (int *ctrl, char *header_name, int *buff_size) |
| int | fstr_ctrl_get_c_h_line_no (int *ctrl) |
| int | fstr_ctrl_get_c_h_pos (int *ctrl) |
| int | fstr_ctrl_get_param (int *ctrl, const char *param_name, const char *value_list, char *type, void *val) |
| int | fstr_ctrl_get_param_ex (int *ctrl, const char *param_name, const char *value_list, int *necessity, char *type, void *val) |
| int | fstr_ctrl_get_data_line_n (int *ctrl) |
| int | fstr_ctrl_get_data_n_in_line (int *ctrl, int *line_no, const char *delim) |
| int | fstr_ctrl_get_data_error_pos (void) |
| int | fstr_ctrl_get_data_error_line (void) |
| int | fstr_ctrl_get_data_v_f (fstr_ctrl_data *ctrl, int line_no, const char *format, va_list va) |
| int | fstr_ctrl_get_data (int *ctrl, int *line_no, const char *format,...) |
| int | fstr_ctrl_get_data_v10 (int *ctrl, int *line_no, const char *format, void *v1, void *v2, void *v3, void *v4, void *v5, void *v6, void *v7, void *v8, void *v9, void *v10) |
| int | fstr_ctrl_get_data_ex_v_f (fstr_ctrl_data *ctrl, int line_no, const char *format, va_list va) |
| int | fstr_ctrl_get_data_ex (int *ctrl, int *line_no, const char *format,...) |
| int | fstr_ctrl_get_data_ex_v10 (int *ctrl, int *line_no, const char *format, void *v1, void *v2, void *v3, void *v4, void *v5, void *v6, void *v7, void *v8, void *v9, void *v10) |
| int | fstr_ctrl_get_data_array_ex_v_f (fstr_ctrl_data *ctrl, const char *format, va_list va) |
| int | fstr_ctrl_get_data_array_ex (int *ctrl, const char *format,...) |
| int | fstr_ctrl_get_data_array_ex_v10 (int *ctrl, const char *format, void *v1, void *v2, void *v3, void *v4, void *v5, void *v6, void *v7, void *v8, void *v9, void *v10) |
| int | fstr_ctrl_close (int *ctrl) |
| void | fstr_ctrl_dump (int *ctrl) |
Variables | |
| char | err_msg [ERR_MSG_SIZE] |
| int | fg_fortran_get_data_array_v = 0 |
| int | line_no |
| int | error_pos = -1 |
| int | error_line = -1 |
| int | is_first = 1 |
| #define buffsize 256 |
Definition at line 16 of file fstr_ctrl_util.c.
| #define ERR_MSG_SIZE 1024 |
Definition at line 19 of file fstr_ctrl_util.c.
| #define FALSE 0 |
Definition at line 13 of file fstr_ctrl_util.c.
| #define FILE_NAME_SIZE 512 |
Definition at line 18 of file fstr_ctrl_util.c.
| #define fstr_ctrl_util_MAIN |
Definition at line 6 of file fstr_ctrl_util.c.
| #define MAX_DATA_ARRAY_NUMBER 256 |
| #define STR_SIZE buffsize |
Definition at line 17 of file fstr_ctrl_util.c.
| #define TRUE 1 |
Definition at line 12 of file fstr_ctrl_util.c.
| int c_fstr_ctrl_close | ( | fstr_ctrl_data * | ctrl | ) |
Closing fstr control file
| ctrl | Specify fstr_ctrl_data* pointer obtained from fstr_ctrl_open |
Definition at line 1041 of file fstr_ctrl_util.c.
| int c_fstr_ctrl_copy_data_line | ( | fstr_ctrl_data * | ctrl, |
| int | line_no, | ||
| char * | data_line | ||
| ) |
Definition at line 735 of file fstr_ctrl_util.c.
| void c_fstr_ctrl_dump | ( | fstr_ctrl_data * | ctrl | ) |
| int c_fstr_ctrl_get_current_header_line_no | ( | fstr_ctrl_data * | ctrl | ) |
Obtaining line number of current header in fstr control file
| ctrl | Specify fstr_ctrl_data* pointer obtained from fstr_ctrl_open |
Definition at line 437 of file fstr_ctrl_util.c.
| int c_fstr_ctrl_get_current_header_name | ( | fstr_ctrl_data * | ctrl, |
| char * | header_name | ||
| ) |
Obtaining current header name
| ctrl | Specify fstr_ctrl_data* pointer obtained from fstr_ctrl_open |
| header_name | buffer for header name |
Definition at line 409 of file fstr_ctrl_util.c.
| int c_fstr_ctrl_get_current_header_pos | ( | fstr_ctrl_data * | ctrl | ) |
Obtaining record line number of current header in fstr control file
| ctrl | Specify fstr_ctrl_data* pointer obtained from fstr_ctrl_open |
Definition at line 452 of file fstr_ctrl_util.c.
| int c_fstr_ctrl_get_data | ( | fstr_ctrl_data * | ctrl, |
| int | line_no, | ||
| const char * | format, | ||
| ... | |||
| ) |
| int c_fstr_ctrl_get_data_array | ( | fstr_ctrl_data * | ctrl, |
| const char * | format, | ||
| ... | |||
| ) |
| int c_fstr_ctrl_get_data_array_ex | ( | fstr_ctrl_data * | ctrl, |
| const char * | format, | ||
| ... | |||
| ) |
| int c_fstr_ctrl_get_data_array_v | ( | fstr_ctrl_data * | ctrl, |
| const char * | format, | ||
| va_list | va | ||
| ) |
| int c_fstr_ctrl_get_data_error_line | ( | void | ) |
| int c_fstr_ctrl_get_data_error_pos | ( | void | ) |
Obtaining converting error position in previous fstr_ctrl_get_data execution
Definition at line 785 of file fstr_ctrl_util.c.
| int c_fstr_ctrl_get_data_ex | ( | fstr_ctrl_data * | ctrl, |
| int | line_no, | ||
| const char * | format, | ||
| ... | |||
| ) |
| int c_fstr_ctrl_get_data_line_n | ( | fstr_ctrl_data * | ctrl | ) |
Obtaining data line number of current header
| ctrl | Specify fstr_ctrl_data* pointer obtained from fstr_ctrl_open |
Definition at line 715 of file fstr_ctrl_util.c.
| int c_fstr_ctrl_get_data_n_in_line | ( | fstr_ctrl_data * | ctrl, |
| int | line_no, | ||
| const char * | delim | ||
| ) |
| int c_fstr_ctrl_get_data_v | ( | fstr_ctrl_data * | ctrl, |
| int | line_no, | ||
| const char * | format, | ||
| va_list | va | ||
| ) |
| void c_fstr_ctrl_get_err_msg | ( | char * | buff | ) |
Get error message (for _ex function )
| buff | buffer for copied message |
Definition at line 23 of file fstr_ctrl_util.c.
| int c_fstr_ctrl_get_line | ( | fstr_ctrl_data * | ctrl, |
| int | rec_no, | ||
| char * | buff | ||
| ) |
Obtaining line
| ctrl | Specify fstr_ctrl_data* pointer obtained from fstr_ctrl_open |
| rec_no | Specify record no |
| buff | Pointer to copy the record string line |
Definition at line 335 of file fstr_ctrl_util.c.
| int c_fstr_ctrl_get_param | ( | fstr_ctrl_data * | ctrl, |
| const char * | param_name, | ||
| const char * | value_list, | ||
| char | type, | ||
| void * | val | ||
| ) |
Obtaining value of parameter in current header line
| ctrl | Specify fstr_ctrl_data* pointer obtained from fstr_ctrl_open |
| paran_name | Specify parameter name |
| value_list | Specify value list by csv string |
| type | Specify type of parameter's value as character 'I':integer(int), 'C' or 'S':string(char*), 'R':real(double), 'P':Pattern Input(first string in value_list is 0) (int) 'E':exist or not(int, 1 or 0) |
| val | Put pointer to store the parameter's value |
Definition at line 572 of file fstr_ctrl_util.c.
| int c_fstr_ctrl_get_param_ex | ( | fstr_ctrl_data * | ctrl, |
| const char * | param_name, | ||
| const char * | value_list, | ||
| int | necessity, | ||
| char | type, | ||
| void * | val | ||
| ) |
Obtaining value of parameter in current header line This function uses "fstr_ctrl_get_param" and prints message in error occurrence.
| ctrl | Specify fstr_ctrl_data* pointer obtained from fstr_ctrl_open |
| paran_name | Specify parameter name |
| necessity | Necessity of parameter (1 or 0) |
| type | Specify type of parameter's value as character 'I':integer(int), 'C' or 'S':string(char*), 'R':real(double), 'P':Pattern Input(first string in value_list is 1) (int) 'E':exist or not(int, 1 or 0) |
| val | Put pointer to store the parameter's value |
Definition at line 665 of file fstr_ctrl_util.c.
| int c_fstr_ctrl_get_rec_number | ( | fstr_ctrl_data * | ctrl | ) |
Obtaining record number
| ctrl | Specify fstr_ctrl_data* pointer obtained from fstr_ctrl_open |
Definition at line 324 of file fstr_ctrl_util.c.
| fstr_ctrl_data* c_fstr_ctrl_open | ( | const char * | filename | ) |
Open FSTR control file
| filename | Specify FSTR control file name (included path) |
Definition at line 241 of file fstr_ctrl_util.c.
| int c_fstr_ctrl_seek_header | ( | fstr_ctrl_data * | ctrl, |
| const char * | header_name | ||
| ) |
Seeking to specified header (current header)
| ctrl | Specify fstr_ctrl_data* pointer obtained from fstr_ctrl_open |
| header_name | Specify header name or NULL pointer to seek next header When this function is called from fortran, use blank string instead of NULL |
Definition at line 351 of file fstr_ctrl_util.c.
| int c_fstr_ctrl_seek_next_header | ( | fstr_ctrl_data * | ctrl | ) |
Seeking next header (current header)
| ctrl | Specify fstr_ctrl_data* pointer obtained from fstr_ctrl_open |
Definition at line 391 of file fstr_ctrl_util.c.
| int fstr_ctrl_close | ( | int * | ctrl | ) |
| void fstr_ctrl_dump | ( | int * | ctrl | ) |
| int fstr_ctrl_get_c_h_line_no | ( | int * | ctrl | ) |
| int fstr_ctrl_get_c_h_name | ( | int * | ctrl, |
| char * | header_name, | ||
| int * | buff_size | ||
| ) |
Definition at line 1157 of file fstr_ctrl_util.c.
| int fstr_ctrl_get_c_h_pos | ( | int * | ctrl | ) |
| int fstr_ctrl_get_data | ( | int * | ctrl, |
| int * | line_no, | ||
| const char * | format, | ||
| ... | |||
| ) |
Definition at line 1258 of file fstr_ctrl_util.c.
| int fstr_ctrl_get_data_array_ex | ( | int * | ctrl, |
| const char * | format, | ||
| ... | |||
| ) |
Definition at line 1330 of file fstr_ctrl_util.c.
| int fstr_ctrl_get_data_array_ex_v10 | ( | int * | ctrl, |
| const char * | format, | ||
| void * | v1, | ||
| void * | v2, | ||
| void * | v3, | ||
| void * | v4, | ||
| void * | v5, | ||
| void * | v6, | ||
| void * | v7, | ||
| void * | v8, | ||
| void * | v9, | ||
| void * | v10 | ||
| ) |
| int fstr_ctrl_get_data_array_ex_v_f | ( | fstr_ctrl_data * | ctrl, |
| const char * | format, | ||
| va_list | va | ||
| ) |
| int fstr_ctrl_get_data_error_line | ( | void | ) |
| int fstr_ctrl_get_data_error_pos | ( | void | ) |
| int fstr_ctrl_get_data_ex | ( | int * | ctrl, |
| int * | line_no, | ||
| const char * | format, | ||
| ... | |||
| ) |
Definition at line 1293 of file fstr_ctrl_util.c.
| int fstr_ctrl_get_data_ex_v10 | ( | int * | ctrl, |
| int * | line_no, | ||
| const char * | format, | ||
| void * | v1, | ||
| void * | v2, | ||
| void * | v3, | ||
| void * | v4, | ||
| void * | v5, | ||
| void * | v6, | ||
| void * | v7, | ||
| void * | v8, | ||
| void * | v9, | ||
| void * | v10 | ||
| ) |
| int fstr_ctrl_get_data_ex_v_f | ( | fstr_ctrl_data * | ctrl, |
| int | line_no, | ||
| const char * | format, | ||
| va_list | va | ||
| ) |
| int fstr_ctrl_get_data_line_n | ( | int * | ctrl | ) |
Definition at line 1227 of file fstr_ctrl_util.c.
| int fstr_ctrl_get_data_n_in_line | ( | int * | ctrl, |
| int * | line_no, | ||
| const char * | delim | ||
| ) |
| int fstr_ctrl_get_data_v10 | ( | int * | ctrl, |
| int * | line_no, | ||
| const char * | format, | ||
| void * | v1, | ||
| void * | v2, | ||
| void * | v3, | ||
| void * | v4, | ||
| void * | v5, | ||
| void * | v6, | ||
| void * | v7, | ||
| void * | v8, | ||
| void * | v9, | ||
| void * | v10 | ||
| ) |
| int fstr_ctrl_get_data_v_f | ( | fstr_ctrl_data * | ctrl, |
| int | line_no, | ||
| const char * | format, | ||
| va_list | va | ||
| ) |
| void fstr_ctrl_get_err_msg | ( | char * | f_buff, |
| int * | len | ||
| ) |
| int fstr_ctrl_get_line | ( | int * | ctrl, |
| int * | rec_no, | ||
| char * | buff, | ||
| int * | buff_size | ||
| ) |
Definition at line 1124 of file fstr_ctrl_util.c.
| int fstr_ctrl_get_param | ( | int * | ctrl, |
| const char * | param_name, | ||
| const char * | value_list, | ||
| char * | type, | ||
| void * | val | ||
| ) |
| int fstr_ctrl_get_param_ex | ( | int * | ctrl, |
| const char * | param_name, | ||
| const char * | value_list, | ||
| int * | necessity, | ||
| char * | type, | ||
| void * | val | ||
| ) |
| int fstr_ctrl_get_rec_number | ( | int * | ctrl | ) |
| int fstr_ctrl_open | ( | char * | filename | ) |
| int fstr_ctrl_rewind | ( | int * | ctrl | ) |
| int fstr_ctrl_seek_header | ( | int * | ctrl, |
| const char * | header_name | ||
| ) |
| int fstr_ctrl_seek_next_header | ( | int * | ctrl | ) |
| int fstr_ctrl_tmp_rewind | ( | fstr_ctrl_data * | ctrl | ) |
| char err_msg[ERR_MSG_SIZE] |
Definition at line 21 of file fstr_ctrl_util.c.
| int error_line = -1 |
Definition at line 787 of file fstr_ctrl_util.c.
| int error_pos = -1 |
Definition at line 783 of file fstr_ctrl_util.c.
| int fg_fortran_get_data_array_v = 0 |
Definition at line 43 of file fstr_ctrl_util.c.
| int is_first = 1 |
Definition at line 1075 of file fstr_ctrl_util.c.
| int line_no |
Definition at line 84 of file fstr_ctrl_util.c.