FrontISTR  5.7.0
Large-scale structural analysis program with finit element method
hecmw_partition.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <math.h>
#include "hecmw_util.h"
#include "hecmw_common.h"
#include "hecmw_io.h"
#include "hecmw_part_define.h"
#include "hecmw_part_struct.h"
#include "hecmw_part_log.h"
#include "hecmw_mesh_hash_sort.h"
#include "hecmw_mesh_edge_info.h"
#include "hecmw_part_get_control.h"
#include "hecmw_partition.h"
#include "hecmw_ucd_print.h"
#include "hecmw_graph.h"
#include "hecmw_common_define.h"
Include dependency graph for hecmw_partition.c:

Go to the source code of this file.

Data Structures

struct  link_unit
 
struct  link_list
 

Macros

#define INAGAKI_PARTITIONER
 
#define INTERNAL   1
 
#define EXTERNAL   2
 
#define BOUNDARY   4
 
#define OVERLAP   8
 
#define MASK   16
 
#define MARK   32
 
#define MY_DOMAIN   1
 
#define NEIGHBOR_DOMAIN   2
 
#define MPC_BLOCK   4
 
#define CANDIDATE   8
 
#define EPS   (1.0E-12)
 
#define F_1_2   (0.5)
 
#define F_6_10   (0.6)
 
#define QSORT_LOWER   50
 
#define MASK_BIT(map, bit)   ((map) |= (bit))
 
#define EVAL_BIT(map, bit)   ((map) & (bit))
 
#define INV_BIT(map, bit)   ((map) ^= (bit))
 
#define CLEAR_BIT(map, bit)
 
#define CLEAR_IEB(map)
 
#define CLEAR_MM(map)
 
#define DSWAP(a, aa)
 
#define ISWAP(b, bb)
 
#define RTC_NORMAL   0
 
#define RTC_ERROR   (-1)
 
#define RTC_WARN   1
 
#define MAX_NODE_SIZE   20
 
#define LINEBUF_SIZE   1023
 

Functions

struct hecmwST_local_meshHECMW_partition_inner (struct hecmwST_local_mesh *global_mesh, struct hecmw_part_cont_data *cont_data)
 
struct hecmwST_local_meshHECMW_partition (struct hecmwST_local_mesh *global_mesh)
 

Macro Definition Documentation

◆ BOUNDARY

#define BOUNDARY   4

Definition at line 42 of file hecmw_partition.c.

◆ CANDIDATE

#define CANDIDATE   8

Definition at line 56 of file hecmw_partition.c.

◆ CLEAR_BIT

#define CLEAR_BIT (   map,
  bit 
)
Value:
((map) |= (bit)); \
((map) ^= (bit))

Definition at line 72 of file hecmw_partition.c.

◆ CLEAR_IEB

#define CLEAR_IEB (   map)
Value:
((map) |= (7)); \
((map) ^= (7))

Definition at line 76 of file hecmw_partition.c.

◆ CLEAR_MM

#define CLEAR_MM (   map)
Value:
((map) |= (48)); \
((map) ^= (48))

Definition at line 80 of file hecmw_partition.c.

◆ DSWAP

#define DSWAP (   a,
  aa 
)
Value:
atemp = (a); \
(a) = (aa); \
(aa) = atemp;

Definition at line 84 of file hecmw_partition.c.

◆ EPS

#define EPS   (1.0E-12)

Definition at line 58 of file hecmw_partition.c.

◆ EVAL_BIT

#define EVAL_BIT (   map,
  bit 
)    ((map) & (bit))

Definition at line 68 of file hecmw_partition.c.

◆ EXTERNAL

#define EXTERNAL   2

Definition at line 40 of file hecmw_partition.c.

◆ F_1_2

#define F_1_2   (0.5)

Definition at line 60 of file hecmw_partition.c.

◆ F_6_10

#define F_6_10   (0.6)

Definition at line 62 of file hecmw_partition.c.

◆ INAGAKI_PARTITIONER

#define INAGAKI_PARTITIONER

Definition at line 6 of file hecmw_partition.c.

◆ INTERNAL

#define INTERNAL   1

Definition at line 38 of file hecmw_partition.c.

◆ INV_BIT

#define INV_BIT (   map,
  bit 
)    ((map) ^= (bit))

Definition at line 70 of file hecmw_partition.c.

◆ ISWAP

#define ISWAP (   b,
  bb 
)
Value:
btemp = (b); \
(b) = (bb); \
(bb) = btemp;

Definition at line 89 of file hecmw_partition.c.

◆ LINEBUF_SIZE

#define LINEBUF_SIZE   1023

Definition at line 3039 of file hecmw_partition.c.

◆ MARK

#define MARK   32

Definition at line 48 of file hecmw_partition.c.

◆ MASK

#define MASK   16

Definition at line 46 of file hecmw_partition.c.

◆ MASK_BIT

#define MASK_BIT (   map,
  bit 
)    ((map) |= (bit))

Definition at line 66 of file hecmw_partition.c.

◆ MAX_NODE_SIZE

#define MAX_NODE_SIZE   20

Definition at line 100 of file hecmw_partition.c.

◆ MPC_BLOCK

#define MPC_BLOCK   4

Definition at line 54 of file hecmw_partition.c.

◆ MY_DOMAIN

#define MY_DOMAIN   1

Definition at line 50 of file hecmw_partition.c.

◆ NEIGHBOR_DOMAIN

#define NEIGHBOR_DOMAIN   2

Definition at line 52 of file hecmw_partition.c.

◆ OVERLAP

#define OVERLAP   8

Definition at line 44 of file hecmw_partition.c.

◆ QSORT_LOWER

#define QSORT_LOWER   50

Definition at line 64 of file hecmw_partition.c.

◆ RTC_ERROR

#define RTC_ERROR   (-1)

Definition at line 96 of file hecmw_partition.c.

◆ RTC_NORMAL

#define RTC_NORMAL   0

Definition at line 94 of file hecmw_partition.c.

◆ RTC_WARN

#define RTC_WARN   1

Definition at line 98 of file hecmw_partition.c.

Function Documentation

◆ HECMW_partition()

struct hecmwST_local_mesh* HECMW_partition ( struct hecmwST_local_mesh global_mesh)

Definition at line 9556 of file hecmw_partition.c.

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

◆ HECMW_partition_inner()

struct hecmwST_local_mesh* HECMW_partition_inner ( struct hecmwST_local_mesh global_mesh,
struct hecmw_part_cont_data cont_data 
)

Definition at line 9131 of file hecmw_partition.c.

Here is the caller graph for this function: