-
Notifications
You must be signed in to change notification settings - Fork 2
/
parallel.h
executable file
·66 lines (55 loc) · 1.55 KB
/
parallel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#include <mpi.h>
#include <stdlib.h>
#include <stdio.h>
void Program_Message(char *txt);
/* produces a stderr text output */
void Programm_Sync(char *txt);
/* produces a stderr textoutput and synchronize all processes */
void Programm_Stop(char *txt);
/* all processes will produce a text output, be synchronized and finished */
/*New Functions*/
void init_parallel(
int iproc,
int jproc,
int imax,
int jmax,
int *myrank,
int *il,
int *ir,
int *jb,
int *jt,
int *rank_l,
int *rank_r,
int *rank_b,
int *rank_t,
int *omg_i,
int *omg_j,
int num_proc
);
void pressure_comm(
double **P,
int il ,
int ir,
int jb,
int jt ,
int rank_l,
int rank_r,
int rank_b,
int rank_t,
double *bufSend,
double *bufRecv,
int chunk);
void uv_comm(
double **U,
double **V,
int il ,
int ir,
int jb,
int jt ,
int rank_l,
int rank_r,
int rank_b,
int rank_t,
double *bufSend,
double *bufRecv,
int chunk );