First draft. Compiles. Untested.

This commit is contained in:
Jan Eitzinger
2023-02-06 20:09:11 +01:00
parent 394e4643ec
commit f7e04a19ac
4 changed files with 147 additions and 323 deletions

View File

@@ -40,18 +40,7 @@ extern void commExchange(Comm*, double*);
extern void commShift(Comm* c, double* f, double* g, double* h);
extern void commReduction(double* v, int op);
extern int commIsBoundary(Comm* c, Direction direction);
extern void commCollectResult(Comm* c,
double* ug,
double* vg,
double* wg,
double* pg,
double* u,
double* v,
double* w,
double* p,
int kmax,
int jmax,
int imax);
extern void commGetOffsets(Comm* c, int offsets[], int kmax, int jmax, int imax);
static inline int commIsMaster(Comm* c) { return c->rank == 0; }
#endif // __COMM_H_