Fixed issue with large files

This commit is contained in:
James E McClure
2017-07-06 23:39:14 -04:00
parent bb21dd333a
commit 6b15028ad5

View File

@@ -115,7 +115,6 @@ int main(int argc, char **argv)
for (int ip=0; ip<nprocx; ip++){
// rank of the process that gets this subdomain
int rnk = kp*nprocx*nprocy + jp*nprocx + ip;
printf("extracting rank=%i \n",rnk);
// Pack and send the subdomain for rnk
for (k=0;k<nz+2;k++){
for (j=0;j<ny+2;j++){
@@ -144,8 +143,7 @@ int main(int argc, char **argv)
}
}
}
printf("writing file \n");
// Write the data for this rank data
sprintf(LocalRankFilename,"ID.%05i",rnk+rank_offset);
FILE *ID = fopen(LocalRankFilename,"wb");