Skip to content

Commit

Permalink
using long now
Browse files Browse the repository at this point in the history
  • Loading branch information
yotamyaniv committed Apr 2, 2024
1 parent 6d9e3bf commit dcbdd7c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/dense/testCovarianceMPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ generateMatrix(int ndim, int nx, double corlen=0.2)

/* Modified to not do dissection, but bisection. */
void ND1D(int bx, int ex, int by, int ey, int bz, int ez,
int nx, int ny, int nz, int offset, int* order) {
int nx, int ny, int nz, int offset, std::int64_t* order) {
/* 1D Nested Dissection of a line of an nx x ny x nz cuboid mesh */
/* Ordering is written in array order with starting positing "offset". */
int sx = ex-bx+1, sy = ey-by+1, sz = ez-bz+1;
Expand Down Expand Up @@ -176,7 +176,7 @@ void ND1D(int bx, int ex, int by, int ey, int bz, int ez,
}

void ND2D(int bx, int ex, int by, int ey, int bz, int ez,
int nx, int ny, int nz, int offset, int cut, int* order) {
int nx, int ny, int nz, int offset, int cut, std::int64_t* order) {
/* 2D Nested Dissection of a rectangle of an nx x ny x nz rectangular mesh */
/* Cut defines how to cut the domain (e.g., if constant z, 0: x-wise, 1: y-wise) */
/* Ordering is written in array order with starting positing "offset". */
Expand Down Expand Up @@ -251,7 +251,7 @@ void ND2D(int bx, int ex, int by, int ey, int bz, int ez,
}

void ND3D(int bx, int ex, int by, int ey, int bz, int ez,
int nx, int ny, int nz, int offset, int cut, int* order) {
int nx, int ny, int nz, int offset, int cut, std::int64_t* order) {
/* 3D Nested Dissection of subdomain [bx:ex]x[by:ey]x[bz:ez] of an nx x ny x nz rectangular mesh */
/* Cut defines how to cut the domain (0: x-wise, 1: y-wise, 2: z-wise) */
/* Points of the domain are assumed to be numbered y-wise. */
Expand Down Expand Up @@ -295,8 +295,8 @@ void ND3D(int bx, int ex, int by, int ey, int bz, int ez,
}
}

std::vector<int> generatePermutation(int dim, int k) {
std::vector<int> order;
std::vector<std::int64_t> generatePermutation(int dim, int k) {
std::vector<std::int64_t> order;
k++;
switch(dim) {
case 1:
Expand Down

0 comments on commit dcbdd7c

Please sign in to comment.