Skip to content
Snippets Groups Projects
Commit db2dec63 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Fix bug in example program.

parent 78bd6f59
No related branches found
No related tags found
No related merge requests found
......@@ -100,9 +100,9 @@ static void modelRun(MPI_Comm commModel)
varSize[i][j] = nlon * nlat * nlev[i][j];
#ifdef USE_MPI
{
int start = uniform_partition_start((int [2]){ 0, varSize[i] - 1 },
int start = uniform_partition_start((int [2]){ 0, varSize[i][j] - 1 },
comm_size, rank),
chunkSize = uniform_partition_start((int [2]){ 0, varSize[i] - 1 },
chunkSize = uniform_partition_start((int [2]){ 0, varSize[i][j] - 1 },
comm_size, rank + 1) - start;
if (maxChunkSize < chunkSize)
maxChunkSize = chunkSize;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment