FrontISTR  5.9.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_varray_idx.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 39 of file hecmw_partition.c.

◆ CANDIDATE

#define CANDIDATE   8

Definition at line 53 of file hecmw_partition.c.

◆ CLEAR_BIT

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

Definition at line 69 of file hecmw_partition.c.

◆ CLEAR_IEB

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

Definition at line 73 of file hecmw_partition.c.

◆ CLEAR_MM

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

Definition at line 77 of file hecmw_partition.c.

◆ DSWAP

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

Definition at line 81 of file hecmw_partition.c.

◆ EPS

#define EPS   (1.0E-12)

Definition at line 55 of file hecmw_partition.c.

◆ EVAL_BIT

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

Definition at line 65 of file hecmw_partition.c.

◆ EXTERNAL

#define EXTERNAL   2

Definition at line 37 of file hecmw_partition.c.

◆ F_1_2

#define F_1_2   (0.5)

Definition at line 57 of file hecmw_partition.c.

◆ F_6_10

#define F_6_10   (0.6)

Definition at line 59 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 35 of file hecmw_partition.c.

◆ INV_BIT

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

Definition at line 67 of file hecmw_partition.c.

◆ ISWAP

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

Definition at line 86 of file hecmw_partition.c.

◆ LINEBUF_SIZE

#define LINEBUF_SIZE   1023

Definition at line 2966 of file hecmw_partition.c.

◆ MARK

#define MARK   32

Definition at line 45 of file hecmw_partition.c.

◆ MASK

#define MASK   16

Definition at line 43 of file hecmw_partition.c.

◆ MASK_BIT

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

Definition at line 63 of file hecmw_partition.c.

◆ MAX_NODE_SIZE

#define MAX_NODE_SIZE   20

Definition at line 97 of file hecmw_partition.c.

◆ MPC_BLOCK

#define MPC_BLOCK   4

Definition at line 51 of file hecmw_partition.c.

◆ MY_DOMAIN

#define MY_DOMAIN   1

Definition at line 47 of file hecmw_partition.c.

◆ NEIGHBOR_DOMAIN

#define NEIGHBOR_DOMAIN   2

Definition at line 49 of file hecmw_partition.c.

◆ OVERLAP

#define OVERLAP   8

Definition at line 41 of file hecmw_partition.c.

◆ QSORT_LOWER

#define QSORT_LOWER   50

Definition at line 61 of file hecmw_partition.c.

◆ RTC_ERROR

#define RTC_ERROR   (-1)

Definition at line 93 of file hecmw_partition.c.

◆ RTC_NORMAL

#define RTC_NORMAL   0

Definition at line 91 of file hecmw_partition.c.

◆ RTC_WARN

#define RTC_WARN   1

Definition at line 95 of file hecmw_partition.c.

Function Documentation

◆ HECMW_partition()

struct hecmwST_local_mesh* HECMW_partition ( struct hecmwST_local_mesh global_mesh)

Definition at line 9776 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 9354 of file hecmw_partition.c.

Here is the caller graph for this function: