FrontISTR  5.7.0
Large-scale structural analysis program with finit element method
fstr_rmerge_util.c File Reference
#include "fstr_rmerge_util.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "hecmw_util.h"
#include "hecmw_dist_free.h"
#include "hecmw_io_dist.h"
#include "hecmw_io_get_mesh.h"
#include "hecmw_etype.h"
Include dependency graph for fstr_rmerge_util.c:

Go to the source code of this file.

Typedefs

typedef int(* cmp_func) (const void *, const void *)
 

Functions

void fstr_set_log_fp (FILE *log_fp)
 Set file pointer for log output. More...
 
void fstr_out_log (const char *fmt,...)
 Log output. More...
 
struct hecmwST_local_mesh ** fstr_get_all_local_mesh (char *name_ID, int nrank, int *area_number, int *refine)
 Read all distributed meshes. More...
 
void fstr_free_mesh (struct hecmwST_local_mesh **mesh, int area_n)
 Delete mesh. More...
 
int fstr_get_step_n (char *name_ID, int nrank)
 Check the number of steps (check for the existence of files) More...
 
fstr_res_info ** fstr_get_all_result (char *name_ID, int step, int area_n, int refine, int nrank)
 Read all area data of step. More...
 
struct hecmwST_result_datafstr_all_result (fstr_glt *glt, fstr_res_info **res, int refine)
 Combine data in all areas of the step. More...
 
void fstr_free_result (fstr_res_info **res, int area_n)
 
fstr_gltfstr_create_glt (struct hecmwST_local_mesh **mesh, int area_n)
 Create table for global ID, local ID and belonging area records fstr_glt. More...
 
void fstr_free_glt (fstr_glt *glt)
 Delete fstr_glt. More...
 
struct hecmwST_local_meshfstr_create_glmesh (fstr_glt *glt)
 Create a single region mesh. More...
 
void fstr_free_glmesh (struct hecmwST_local_mesh *mesh)
 Delete a single region mesh. More...
 

Typedef Documentation

◆ cmp_func

typedef int(* cmp_func) (const void *, const void *)

Definition at line 467 of file fstr_rmerge_util.c.

Function Documentation

◆ fstr_all_result()

struct hecmwST_result_data* fstr_all_result ( fstr_glt glt,
fstr_res_info **  res,
int  refine 
)

Combine data in all areas of the step.

Definition at line 363 of file fstr_rmerge_util.c.

◆ fstr_create_glmesh()

struct hecmwST_local_mesh* fstr_create_glmesh ( fstr_glt glt)

Create a single region mesh.

Definition at line 579 of file fstr_rmerge_util.c.

◆ fstr_create_glt()

fstr_glt* fstr_create_glt ( struct hecmwST_local_mesh **  mesh,
int  area_n 
)

Create table for global ID, local ID and belonging area records fstr_glt.

Definition at line 469 of file fstr_rmerge_util.c.

◆ fstr_free_glmesh()

void fstr_free_glmesh ( struct hecmwST_local_mesh mesh)

Delete a single region mesh.

Definition at line 604 of file fstr_rmerge_util.c.

◆ fstr_free_glt()

void fstr_free_glt ( fstr_glt glt)

Delete fstr_glt.

Definition at line 566 of file fstr_rmerge_util.c.

◆ fstr_free_mesh()

void fstr_free_mesh ( struct hecmwST_local_mesh **  mesh,
int  area_n 
)

Delete mesh.

Definition at line 145 of file fstr_rmerge_util.c.

◆ fstr_free_result()

void fstr_free_result ( fstr_res_info **  res,
int  area_n 
)

@biref Delete fstr_res_info

Definition at line 444 of file fstr_rmerge_util.c.

◆ fstr_get_all_local_mesh()

struct hecmwST_local_mesh** fstr_get_all_local_mesh ( char *  name_ID,
int  nrank,
int *  area_number,
int *  refine 
)

Read all distributed meshes.

Definition at line 95 of file fstr_rmerge_util.c.

◆ fstr_get_all_result()

fstr_res_info** fstr_get_all_result ( char *  name_ID,
int  step,
int  area_n,
int  refine,
int  nrank 
)

Read all area data of step.

Definition at line 198 of file fstr_rmerge_util.c.

◆ fstr_get_step_n()

int fstr_get_step_n ( char *  name_ID,
int  nrank 
)

Check the number of steps (check for the existence of files)

Definition at line 161 of file fstr_rmerge_util.c.

Here is the call graph for this function:

◆ fstr_out_log()

void fstr_out_log ( const char *  fmt,
  ... 
)

Log output.

Definition at line 34 of file fstr_rmerge_util.c.

Here is the caller graph for this function:

◆ fstr_set_log_fp()

void fstr_set_log_fp ( FILE *  log_fp)

Set file pointer for log output.

Definition at line 27 of file fstr_rmerge_util.c.