OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
mumps_common.h File Reference
#include "mumps_compat.h"
#include "mumps_c_types.h"

Go to the source code of this file.

Macros

#define F_SYMBOL(lower_case, upper_case)
#define MUMPS_ASSIGN_MAPPING    F_SYMBOL(assign_mapping,ASSIGN_MAPPING)
#define MUMPS_NULLIFY_C_MAPPING   F_SYMBOL(nullify_c_mapping,NULLIFY_C_MAPPING)
#define MUMPS_ASSIGN_PIVNUL_LIST    F_SYMBOL(assign_pivnul_list,ASSIGN_PIVNUL_LIST)
#define MUMPS_NULLIFY_C_PIVNUL_LIST    F_SYMBOL(nullify_c_pivnul_list,NULLIFY_C_PIVNUL_LIST)
#define MUMPS_ASSIGN_UNS_PERM    F_SYMBOL(assign_uns_perm,ASSIGN_UNS_PERM)
#define MUMPS_NULLIFY_C_UNS_PERM    F_SYMBOL(nullify_c_uns_perm,NULLIFY_C_UNS_PERM)
#define MUMPS_ASSIGN_SYM_PERM    F_SYMBOL(assign_sym_perm,ASSIGN_SYM_PERM)
#define MUMPS_NULLIFY_C_SYM_PERM    F_SYMBOL(nullify_c_sym_perm,NULLIFY_C_SYM_PERM)
#define MUMPS_ICOPY_32TO64_64C_IP_C    F_SYMBOL(icopy_32to64_64c_ip_c,ICOPY_32TO64_64C_IP_C)
#define MUMPS_ICOPY_64TO32_64C_IP_C    F_SYMBOL(icopy_64to32_64c_ip_c,ICOPY_64TO32_64C_IP_C)
#define MUMPS_MALLOC_C    F_SYMBOL(malloc_c,MALLOC_C)
#define MUMPS_FREE_C    F_SYMBOL(free_c,FREE_C)

Functions

MUMPS_INTmumps_get_mapping ()
void MUMPS_CALL MUMPS_ASSIGN_MAPPING (MUMPS_INT *f77mapping)
MUMPS_INTmumps_get_pivnul_list ()
void MUMPS_CALL MUMPS_ASSIGN_PIVNUL_LIST (MUMPS_INT *f77pivnul_list)
MUMPS_INTmumps_get_uns_perm ()
void MUMPS_CALL MUMPS_ASSIGN_UNS_PERM (MUMPS_INT *f77sym_perm)
MUMPS_INTmumps_get_sym_perm ()
void MUMPS_CALL MUMPS_ASSIGN_SYM_PERM (MUMPS_INT *f77sym_perm)
void MUMPS_CALL MUMPS_ICOPY_32TO64_64C_IP_C (MUMPS_INT *inouttab, MUMPS_INT8 *sizetab)
void MUMPS_CALL MUMPS_ICOPY_64to32_64C_IP_C (MUMPS_INT8 *inouttab, MUMPS_INT8 *sizetab)
void MUMPS_CALL MUMPS_MALLOC_C (MUMPS_INT8 *address, MUMPS_INT8 *size)
void MUMPS_CALL MUMPS_FREE_C (void *address)

Macro Definition Documentation

◆ F_SYMBOL

#define F_SYMBOL ( lower_case,
upper_case )
Value:
mumps_##lower_case

F_SYMBOL is a macro that converts a couple (lower case symbol, upper case symbol) into the symbol defined by the compiler convention. Example: For MUMPS_XXX, first define #define MUMPS_XXX F_SYMBOL(xxx,XXX) and then use MUMPS_XXX in the code to get rid of any symbol convention annoyance.

NB: We need to provide both upper and lower case versions because to our knowledge, there is no way to perform the conversion with CPP directives only.

Definition at line 38 of file mumps_common.h.

◆ MUMPS_ASSIGN_MAPPING

#define MUMPS_ASSIGN_MAPPING    F_SYMBOL(assign_mapping,ASSIGN_MAPPING)

Definition at line 42 of file mumps_common.h.

42#define MUMPS_ASSIGN_MAPPING \
43 F_SYMBOL(assign_mapping,ASSIGN_MAPPING)

◆ MUMPS_ASSIGN_PIVNUL_LIST

#define MUMPS_ASSIGN_PIVNUL_LIST    F_SYMBOL(assign_pivnul_list,ASSIGN_PIVNUL_LIST)

Definition at line 51 of file mumps_common.h.

51#define MUMPS_ASSIGN_PIVNUL_LIST \
52 F_SYMBOL(assign_pivnul_list,ASSIGN_PIVNUL_LIST)

◆ MUMPS_ASSIGN_SYM_PERM

#define MUMPS_ASSIGN_SYM_PERM    F_SYMBOL(assign_sym_perm,ASSIGN_SYM_PERM)

Definition at line 71 of file mumps_common.h.

71#define MUMPS_ASSIGN_SYM_PERM \
72 F_SYMBOL(assign_sym_perm,ASSIGN_SYM_PERM)

◆ MUMPS_ASSIGN_UNS_PERM

#define MUMPS_ASSIGN_UNS_PERM    F_SYMBOL(assign_uns_perm,ASSIGN_UNS_PERM)

Definition at line 61 of file mumps_common.h.

61#define MUMPS_ASSIGN_UNS_PERM \
62 F_SYMBOL(assign_uns_perm,ASSIGN_UNS_PERM)

◆ MUMPS_FREE_C

#define MUMPS_FREE_C    F_SYMBOL(free_c,FREE_C)

Definition at line 91 of file mumps_common.h.

91#define MUMPS_FREE_C \
92 F_SYMBOL(free_c,FREE_C)

◆ MUMPS_ICOPY_32TO64_64C_IP_C

#define MUMPS_ICOPY_32TO64_64C_IP_C    F_SYMBOL(icopy_32to64_64c_ip_c,ICOPY_32TO64_64C_IP_C)

Definition at line 79 of file mumps_common.h.

79#define MUMPS_ICOPY_32TO64_64C_IP_C \
80 F_SYMBOL(icopy_32to64_64c_ip_c,ICOPY_32TO64_64C_IP_C)

◆ MUMPS_ICOPY_64TO32_64C_IP_C

#define MUMPS_ICOPY_64TO32_64C_IP_C    F_SYMBOL(icopy_64to32_64c_ip_c,ICOPY_64TO32_64C_IP_C)

Definition at line 83 of file mumps_common.h.

83#define MUMPS_ICOPY_64TO32_64C_IP_C \
84 F_SYMBOL(icopy_64to32_64c_ip_c,ICOPY_64TO32_64C_IP_C)

◆ MUMPS_MALLOC_C

#define MUMPS_MALLOC_C    F_SYMBOL(malloc_c,MALLOC_C)

Definition at line 87 of file mumps_common.h.

87#define MUMPS_MALLOC_C \
88 F_SYMBOL(malloc_c,MALLOC_C)

◆ MUMPS_NULLIFY_C_MAPPING

void MUMPS_CALL MUMPS_NULLIFY_C_MAPPING   F_SYMBOL(nullify_c_mapping,NULLIFY_C_MAPPING)

Definition at line 46 of file mumps_common.h.

◆ MUMPS_NULLIFY_C_PIVNUL_LIST

void MUMPS_CALL MUMPS_NULLIFY_C_PIVNUL_LIST    F_SYMBOL(nullify_c_pivnul_list,NULLIFY_C_PIVNUL_LIST)

Definition at line 55 of file mumps_common.h.

55#define MUMPS_NULLIFY_C_PIVNUL_LIST \
56 F_SYMBOL(nullify_c_pivnul_list,NULLIFY_C_PIVNUL_LIST)

◆ MUMPS_NULLIFY_C_SYM_PERM

void MUMPS_CALL MUMPS_NULLIFY_C_SYM_PERM    F_SYMBOL(nullify_c_sym_perm,NULLIFY_C_SYM_PERM)

Definition at line 75 of file mumps_common.h.

75#define MUMPS_NULLIFY_C_SYM_PERM \
76 F_SYMBOL(nullify_c_sym_perm,NULLIFY_C_SYM_PERM)

◆ MUMPS_NULLIFY_C_UNS_PERM

void MUMPS_CALL MUMPS_NULLIFY_C_UNS_PERM    F_SYMBOL(nullify_c_uns_perm,NULLIFY_C_UNS_PERM)

Definition at line 65 of file mumps_common.h.

65#define MUMPS_NULLIFY_C_UNS_PERM \
66 F_SYMBOL(nullify_c_uns_perm,NULLIFY_C_UNS_PERM)

Function Documentation

◆ MUMPS_ASSIGN_MAPPING()

void MUMPS_CALL MUMPS_ASSIGN_MAPPING ( MUMPS_INT * f77mapping)

Definition at line 30 of file mumps_common.c.

31{
32 MUMPS_MAPPING = f77mapping;
33}
static MUMPS_INT * MUMPS_MAPPING

◆ MUMPS_ASSIGN_PIVNUL_LIST()

void MUMPS_CALL MUMPS_ASSIGN_PIVNUL_LIST ( MUMPS_INT * f77pivnul_list)

Definition at line 45 of file mumps_common.c.

46{
47 MUMPS_PIVNUL_LIST = f77pivnul_list;
48}
static MUMPS_INT * MUMPS_PIVNUL_LIST

◆ MUMPS_ASSIGN_SYM_PERM()

void MUMPS_CALL MUMPS_ASSIGN_SYM_PERM ( MUMPS_INT * f77sym_perm)

Definition at line 60 of file mumps_common.c.

61{
62 MUMPS_SYM_PERM = f77sym_perm;
63}
static MUMPS_INT * MUMPS_SYM_PERM

◆ MUMPS_ASSIGN_UNS_PERM()

void MUMPS_CALL MUMPS_ASSIGN_UNS_PERM ( MUMPS_INT * f77sym_perm)

Definition at line 75 of file mumps_common.c.

76{
77 MUMPS_UNS_PERM = f77uns_perm;
78}
static MUMPS_INT * MUMPS_UNS_PERM

◆ MUMPS_FREE_C()

void MUMPS_CALL MUMPS_FREE_C ( void * address)

Definition at line 117 of file mumps_common.c.

118{
119 free(address);
120}

◆ mumps_get_mapping()

MUMPS_INT * mumps_get_mapping ( )

Definition at line 25 of file mumps_common.c.

26{
27 return MUMPS_MAPPING;
28}

◆ mumps_get_pivnul_list()

MUMPS_INT * mumps_get_pivnul_list ( )

Definition at line 40 of file mumps_common.c.

41{
42 return MUMPS_PIVNUL_LIST;
43}

◆ mumps_get_sym_perm()

MUMPS_INT * mumps_get_sym_perm ( )

Definition at line 55 of file mumps_common.c.

56{
57 return MUMPS_SYM_PERM;
58}

◆ mumps_get_uns_perm()

MUMPS_INT * mumps_get_uns_perm ( )

Definition at line 70 of file mumps_common.c.

71{
72 return MUMPS_UNS_PERM;
73}

◆ MUMPS_ICOPY_32TO64_64C_IP_C()

void MUMPS_CALL MUMPS_ICOPY_32TO64_64C_IP_C ( MUMPS_INT * inouttab,
MUMPS_INT8 * sizetab )

◆ MUMPS_ICOPY_64to32_64C_IP_C()

void MUMPS_CALL MUMPS_ICOPY_64to32_64C_IP_C ( MUMPS_INT8 * inouttab,
MUMPS_INT8 * sizetab )

◆ MUMPS_MALLOC_C()

void MUMPS_CALL MUMPS_MALLOC_C ( MUMPS_INT8 * address,
MUMPS_INT8 * size )

Definition at line 110 of file mumps_common.c.

111{
112 void * ptr;
113 ptr=malloc(*size);
114 *address=(MUMPS_INT8)(ptr);
115}
#define MUMPS_INT8