FrontISTR 5.2.0
Large-scale structural analysis program with finit element method
Loading...
Searching...
No Matches
hecmw_config.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright (c) 2019 FrontISTR Commons
3 * This software is released under the MIT License, see LICENSE.txt
4 *****************************************************************************/
5
6#ifndef HECMW_CONFIG_INCLUED
7#define HECMW_CONFIG_INCLUED
8
9#ifdef HECMW_SERIAL
10
11typedef int HECMW_Comm;
12
13typedef int HECMW_Group;
14
15typedef int HECMW_Request;
16
17typedef int HECMW_Status;
18
19typedef int HECMW_Datatype;
20
21typedef int HECMW_Op;
22
23typedef int HECMW_Fint;
24
25#define HECMW_COMM_WORLD 0
26
27#else
28#include "mpi.h"
29
30typedef MPI_Comm HECMW_Comm;
31
32typedef MPI_Group HECMW_Group;
33
34typedef MPI_Request HECMW_Request;
35
36typedef MPI_Status HECMW_Status;
37
38typedef MPI_Datatype HECMW_Datatype;
39
40typedef MPI_Op HECMW_Op;
41
42typedef MPI_Fint HECMW_Fint;
43
44#define HECMW_COMM_WORLD MPI_COMM_WORLD
45
46#endif
47
48#define HECMW_INT ((HECMW_Datatype)10001)
49
50#define HECMW_DOUBLE ((HECMW_Datatype)10002)
51
52#define HECMW_CHAR ((HECMW_Datatype)10003)
53
54#define HECMW_MIN ((HECMW_Op)20001)
55
56#define HECMW_MAX ((HECMW_Op)20002)
57
58#define HECMW_SUM ((HECMW_Op)20003)
59
60#define HECMW_EXIT_SUCCESS 0
61
62#define HECMW_EXIT_ERROR 1
63
64#define HECMW_SUCCESS 0
65
66#define HECMW_ERROR (-1)
67
68#define HECMW_HEADER_LEN 127
69
70#define HECMW_NAME_LEN 63
71
72#define HECMW_FILENAME_LEN 1023
73
74#define HECMW_MSG_LEN 255
75
76#endif
MPI_Group HECMW_Group
Definition: hecmw_config.h:32
MPI_Datatype HECMW_Datatype
Definition: hecmw_config.h:38
MPI_Op HECMW_Op
Definition: hecmw_config.h:40
MPI_Fint HECMW_Fint
Definition: hecmw_config.h:42
MPI_Status HECMW_Status
Definition: hecmw_config.h:36
MPI_Comm HECMW_Comm
Definition: hecmw_config.h:30
MPI_Request HECMW_Request
Definition: hecmw_config.h:34