Skip to content

Commit c680bbb

Browse files
author
Dag Sverre Seljebotn
committed
Merge pull request #6 from dagss/nphmax-bug
Fix a bug related to nphmax not being set in MPI mode
2 parents dc79109 + 33ffb50 commit c680bbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libsharp/sharp_mpi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ static void sharp_execute_job_mpi (sharp_job *job, MPI_Comm comm)
232232
sharp_geom_info lginfo;
233233
lginfo.pair=RALLOC(sharp_ringpair,(job->ginfo->npairs/nsub)+1);
234234
lginfo.npairs=0;
235+
lginfo.nphmax = job->ginfo->nphmax;
235236
while (lginfo.npairs*nsub+isub<job->ginfo->npairs)
236237
{
237238
lginfo.pair[lginfo.npairs]=job->ginfo->pair[lginfo.npairs*nsub+isub];

0 commit comments

Comments
 (0)