3D MPI Multigrid port complete and tested

This commit is contained in:
2024-03-05 23:18:32 +01:00
parent b4bef94066
commit 28fec03be9
38 changed files with 388760 additions and 3030971 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1416,9 +1416,9 @@ void multiGrid(Solver* solver)
void restrictMG(Solver* solver)
{
int imax = solver->grid.imax;
int jmax = solver->grid.jmax;
int kmax = solver->grid.kmax;
int imax = solver->grid.imax / 2;
int jmax = solver->grid.jmax / 2;
int kmax = solver->grid.kmax / 2;
double* r = solver->r[solver->currentlevel + 1];
double* oldr = solver->r[solver->currentlevel];