FrontISTR  5.7.0
Large-scale structural analysis program with finit element method
hecmw_control.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "hecmw_util.h"
#include "hecmw_control.h"
#include "hecmw_ctrllex.h"
#include "hecmw_path.h"
Include dependency graph for hecmw_control.c:

Go to the source code of this file.

Data Structures

struct  mesh_entry
 
struct  mesh_grp_entry
 
struct  restart_entry
 
struct  result_entry
 
struct  ctrl_entry
 
struct  read_func_table
 

Macros

#define N_READ_FUNC   (sizeof(read_func_table) / sizeof(read_func_table[0]))
 

Typedefs

typedef int(* ReadFunc) (void)
 

Functions

int HECMW_ctrl_init_ex (const char *ctrlfile)
 
int HECMW_ctrl_init (void)
 
int HECMW_ctrl_finalize (void)
 
void HECMW_ctrl_free_meshfiles (struct hecmw_ctrl_meshfiles *meshfiles)
 
struct hecmw_ctrl_meshfilesHECMW_ctrl_get_meshfiles (char *name_ID)
 
struct hecmw_ctrl_meshfilesHECMW_ctrl_get_meshfiles_header (char *name_ID)
 
struct hecmw_ctrl_meshfilesHECMW_ctrl_get_meshfiles_sub (char *name_ID, int n_rank, int i_rank)
 
struct hecmw_ctrl_meshfilesHECMW_ctrl_get_meshfiles_header_sub (char *name_ID, int n_rank, int i_rank)
 
char * HECMW_ctrl_get_result_file (char *name_ID, int istep, int *fg_text)
 
char * HECMW_ctrl_get_result_fileheader (char *name_ID, int istep, int *fg_text)
 
char * HECMW_ctrl_get_result_file_sub (char *name_ID, int istep, int n_rank, int i_rank, int *fg_text)
 
char * HECMW_ctrl_get_result_fileheader_sub (char *name_ID, int istep, int n_rank, int i_rank, int *fg_text)
 
char * HECMW_ctrl_get_result_filebody (char *name_ID)
 
char * HECMW_ctrl_get_restart_file (char *name_ID)
 
char * HECMW_ctrl_get_restart_file_by_io (int io)
 
char * HECMW_ctrl_get_control_file (char *name_ID)
 
int HECMW_ctrl_is_exists_control (char *name_ID)
 
int HECMW_ctrl_make_subdir (char *filename)
 
int HECMW_ctrl_is_subdir (void)
 
void hecmw_ctrl_init_if (int *err)
 
void hecmw_ctrl_init_if_ (int *err)
 
void hecmw_ctrl_init_if__ (int *err)
 
void HECMW_CTRL_INIT_IF (int *err)
 
void hecmw_ctrl_init_ex_if (char *ctrlfile, int *err, int len)
 
void hecmw_ctrl_init_ex_if_ (char *ctrlfile, int *err, int len)
 
void hecmw_ctrl_init_ex_if__ (char *ctrlfile, int *err, int len)
 
void HECMW_CTRL_INIT_EX_IF (char *ctrlfile, int *err, int len)
 
void hecmw_ctrl_finalize_if (void)
 
void hecmw_ctrl_finalize_if_ (void)
 
void hecmw_ctrl_finalize_if__ (void)
 
void HECMW_CTRL_FINALIZE_IF (void)
 
void hecmw_ctrl_get_control_file_if (char *name_ID, char *buf, int *err, int name_len, int buf_len)
 
void hecmw_ctrl_get_control_file_if_ (char *name_ID, char *buf, int *err, int name_len, int buf_len)
 
void hecmw_ctrl_get_control_file_if__ (char *name_ID, char *buf, int *err, int name_len, int buf_len)
 
void HECMW_CTRL_GET_CONTROL_FILE_IF (char *name_ID, char *buf, int *err, int name_len, int buf_len)
 
void hecmw_ctrl_make_subdir (char *filename, int *err, int len)
 
void hecmw_ctrl_make_subdir_ (char *filename, int *err, int len)
 
void hecmw_ctrl_make_subdir__ (char *filename, int *err, int len)
 
void HECMW_CTRL_MAKE_SUBDIR (char *filename, int *err, int len)
 
void hecmw_ctrl_is_subdir (int *flag, int *limit)
 
void hecmw_ctrl_is_subdir_ (int *flag, int *limit)
 
void hecmw_ctrl_is_subdir__ (int *flag, int *limit)
 
void HECMW_CTRL_IS_SUBDIR (int *flag, int *limit)
 

Macro Definition Documentation

◆ N_READ_FUNC

#define N_READ_FUNC   (sizeof(read_func_table) / sizeof(read_func_table[0]))

Definition at line 1974 of file hecmw_control.c.

Typedef Documentation

◆ ReadFunc

typedef int(* ReadFunc) (void)

Definition at line 1960 of file hecmw_control.c.

Function Documentation

◆ HECMW_ctrl_finalize()

int HECMW_ctrl_finalize ( void  )

Definition at line 2056 of file hecmw_control.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hecmw_ctrl_finalize_if()

void hecmw_ctrl_finalize_if ( void  )

Definition at line 2546 of file hecmw_control.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_CTRL_FINALIZE_IF()

void HECMW_CTRL_FINALIZE_IF ( void  )

Definition at line 2552 of file hecmw_control.c.

Here is the call graph for this function:

◆ hecmw_ctrl_finalize_if_()

void hecmw_ctrl_finalize_if_ ( void  )

Definition at line 2548 of file hecmw_control.c.

Here is the call graph for this function:

◆ hecmw_ctrl_finalize_if__()

void hecmw_ctrl_finalize_if__ ( void  )

Definition at line 2550 of file hecmw_control.c.

Here is the call graph for this function:

◆ HECMW_ctrl_free_meshfiles()

void HECMW_ctrl_free_meshfiles ( struct hecmw_ctrl_meshfiles meshfiles)

Definition at line 2066 of file hecmw_control.c.

◆ HECMW_ctrl_get_control_file()

char* HECMW_ctrl_get_control_file ( char *  name_ID)

Definition at line 2428 of file hecmw_control.c.

Here is the caller graph for this function:

◆ hecmw_ctrl_get_control_file_if()

void hecmw_ctrl_get_control_file_if ( char *  name_ID,
char *  buf,
int *  err,
int  name_len,
int  buf_len 
)

Definition at line 2556 of file hecmw_control.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_CTRL_GET_CONTROL_FILE_IF()

void HECMW_CTRL_GET_CONTROL_FILE_IF ( char *  name_ID,
char *  buf,
int *  err,
int  name_len,
int  buf_len 
)

Definition at line 2587 of file hecmw_control.c.

Here is the call graph for this function:

◆ hecmw_ctrl_get_control_file_if_()

void hecmw_ctrl_get_control_file_if_ ( char *  name_ID,
char *  buf,
int *  err,
int  name_len,
int  buf_len 
)

Definition at line 2577 of file hecmw_control.c.

Here is the call graph for this function:

◆ hecmw_ctrl_get_control_file_if__()

void hecmw_ctrl_get_control_file_if__ ( char *  name_ID,
char *  buf,
int *  err,
int  name_len,
int  buf_len 
)

Definition at line 2582 of file hecmw_control.c.

Here is the call graph for this function:

◆ HECMW_ctrl_get_meshfiles()

struct hecmw_ctrl_meshfiles* HECMW_ctrl_get_meshfiles ( char *  name_ID)

Definition at line 2205 of file hecmw_control.c.

◆ HECMW_ctrl_get_meshfiles_header()

struct hecmw_ctrl_meshfiles* HECMW_ctrl_get_meshfiles_header ( char *  name_ID)

Definition at line 2209 of file hecmw_control.c.

◆ HECMW_ctrl_get_meshfiles_header_sub()

struct hecmw_ctrl_meshfiles* HECMW_ctrl_get_meshfiles_header_sub ( char *  name_ID,
int  n_rank,
int  i_rank 
)

Definition at line 2219 of file hecmw_control.c.

◆ HECMW_ctrl_get_meshfiles_sub()

struct hecmw_ctrl_meshfiles* HECMW_ctrl_get_meshfiles_sub ( char *  name_ID,
int  n_rank,
int  i_rank 
)

Definition at line 2213 of file hecmw_control.c.

◆ HECMW_ctrl_get_restart_file()

char* HECMW_ctrl_get_restart_file ( char *  name_ID)

Definition at line 2341 of file hecmw_control.c.

Here is the caller graph for this function:

◆ HECMW_ctrl_get_restart_file_by_io()

char* HECMW_ctrl_get_restart_file_by_io ( int  io)

Definition at line 2386 of file hecmw_control.c.

Here is the caller graph for this function:

◆ HECMW_ctrl_get_result_file()

char* HECMW_ctrl_get_result_file ( char *  name_ID,
int  istep,
int *  fg_text 
)

Definition at line 2316 of file hecmw_control.c.

Here is the caller graph for this function:

◆ HECMW_ctrl_get_result_file_sub()

char* HECMW_ctrl_get_result_file_sub ( char *  name_ID,
int  istep,
int  n_rank,
int  i_rank,
int *  fg_text 
)

Definition at line 2326 of file hecmw_control.c.

◆ HECMW_ctrl_get_result_filebody()

char* HECMW_ctrl_get_result_filebody ( char *  name_ID)

Definition at line 2337 of file hecmw_control.c.

◆ HECMW_ctrl_get_result_fileheader()

char* HECMW_ctrl_get_result_fileheader ( char *  name_ID,
int  istep,
int *  fg_text 
)

Definition at line 2321 of file hecmw_control.c.

Here is the caller graph for this function:

◆ HECMW_ctrl_get_result_fileheader_sub()

char* HECMW_ctrl_get_result_fileheader_sub ( char *  name_ID,
int  istep,
int  n_rank,
int  i_rank,
int *  fg_text 
)

Definition at line 2331 of file hecmw_control.c.

Here is the caller graph for this function:

◆ HECMW_ctrl_init()

int HECMW_ctrl_init ( void  )

Definition at line 2054 of file hecmw_control.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_ctrl_init_ex()

int HECMW_ctrl_init_ex ( const char *  ctrlfile)

Definition at line 2021 of file hecmw_control.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hecmw_ctrl_init_ex_if()

void hecmw_ctrl_init_ex_if ( char *  ctrlfile,
int *  err,
int  len 
)

Definition at line 2520 of file hecmw_control.c.

Here is the caller graph for this function:

◆ HECMW_CTRL_INIT_EX_IF()

void HECMW_CTRL_INIT_EX_IF ( char *  ctrlfile,
int *  err,
int  len 
)

Definition at line 2540 of file hecmw_control.c.

◆ hecmw_ctrl_init_ex_if_()

void hecmw_ctrl_init_ex_if_ ( char *  ctrlfile,
int *  err,
int  len 
)

Definition at line 2532 of file hecmw_control.c.

◆ hecmw_ctrl_init_ex_if__()

void hecmw_ctrl_init_ex_if__ ( char *  ctrlfile,
int *  err,
int  len 
)

Definition at line 2536 of file hecmw_control.c.

◆ hecmw_ctrl_init_if()

void hecmw_ctrl_init_if ( int *  err)

Definition at line 2504 of file hecmw_control.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_CTRL_INIT_IF()

void HECMW_CTRL_INIT_IF ( int *  err)

Definition at line 2516 of file hecmw_control.c.

Here is the call graph for this function:

◆ hecmw_ctrl_init_if_()

void hecmw_ctrl_init_if_ ( int *  err)

Definition at line 2512 of file hecmw_control.c.

Here is the call graph for this function:

◆ hecmw_ctrl_init_if__()

void hecmw_ctrl_init_if__ ( int *  err)

Definition at line 2514 of file hecmw_control.c.

Here is the call graph for this function:

◆ HECMW_ctrl_is_exists_control()

int HECMW_ctrl_is_exists_control ( char *  name_ID)

Definition at line 2443 of file hecmw_control.c.

◆ hecmw_ctrl_is_subdir()

void hecmw_ctrl_is_subdir ( int *  flag,
int *  limit 
)

Definition at line 2619 of file hecmw_control.c.

Here is the caller graph for this function:

◆ HECMW_CTRL_IS_SUBDIR()

void HECMW_CTRL_IS_SUBDIR ( int *  flag,
int *  limit 
)

Definition at line 2632 of file hecmw_control.c.

Here is the call graph for this function:

◆ HECMW_ctrl_is_subdir()

int HECMW_ctrl_is_subdir ( void  )

Definition at line 2500 of file hecmw_control.c.

Here is the caller graph for this function:

◆ hecmw_ctrl_is_subdir_()

void hecmw_ctrl_is_subdir_ ( int *  flag,
int *  limit 
)

Definition at line 2624 of file hecmw_control.c.

Here is the call graph for this function:

◆ hecmw_ctrl_is_subdir__()

void hecmw_ctrl_is_subdir__ ( int *  flag,
int *  limit 
)

Definition at line 2628 of file hecmw_control.c.

Here is the call graph for this function:

◆ HECMW_ctrl_make_subdir()

int HECMW_ctrl_make_subdir ( char *  filename)

Definition at line 2447 of file hecmw_control.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hecmw_ctrl_make_subdir()

void hecmw_ctrl_make_subdir ( char *  filename,
int *  err,
int  len 
)

Definition at line 2594 of file hecmw_control.c.

Here is the caller graph for this function:

◆ HECMW_CTRL_MAKE_SUBDIR()

void HECMW_CTRL_MAKE_SUBDIR ( char *  filename,
int *  err,
int  len 
)

Definition at line 2613 of file hecmw_control.c.

◆ hecmw_ctrl_make_subdir_()

void hecmw_ctrl_make_subdir_ ( char *  filename,
int *  err,
int  len 
)

Definition at line 2605 of file hecmw_control.c.

◆ hecmw_ctrl_make_subdir__()

void hecmw_ctrl_make_subdir__ ( char *  filename,
int *  err,
int  len 
)

Definition at line 2609 of file hecmw_control.c.