FrontISTR  5.7.0
Large-scale structural analysis program with finit element method
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_INCLUDED
7 #define HECMW_CONFIG_INCLUDED
8 
9 #ifdef HECMW_SERIAL
10 
11 typedef int HECMW_Comm;
12 
13 typedef int HECMW_Group;
14 
15 typedef int HECMW_Request;
16 
17 typedef int HECMW_Status;
18 
19 typedef int HECMW_Datatype;
20 
21 typedef int HECMW_Op;
22 
23 typedef int HECMW_Fint;
24 
25 #define HECMW_COMM_WORLD 0
26 
27 #else
28 #include "mpi.h"
29 
30 typedef MPI_Comm HECMW_Comm;
31 
32 typedef MPI_Group HECMW_Group;
33 
34 typedef MPI_Request HECMW_Request;
35 
36 typedef MPI_Status HECMW_Status;
37 
38 typedef MPI_Datatype HECMW_Datatype;
39 
40 typedef MPI_Op HECMW_Op;
41 
42 typedef 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
HECMW_Fint
MPI_Fint HECMW_Fint
Definition: hecmw_config.h:42
HECMW_Datatype
MPI_Datatype HECMW_Datatype
Definition: hecmw_config.h:38
HECMW_Op
MPI_Op HECMW_Op
Definition: hecmw_config.h:40
HECMW_Status
MPI_Status HECMW_Status
Definition: hecmw_config.h:36
HECMW_Request
MPI_Request HECMW_Request
Definition: hecmw_config.h:34
HECMW_Comm
MPI_Comm HECMW_Comm
Definition: hecmw_config.h:30
HECMW_Group
MPI_Group HECMW_Group
Definition: hecmw_config.h:32