Changeset 3251

Show
Ignore:
Timestamp:
01/26/12 21:06:23 (4 months ago)
Author:
erkn
Message:

mccode-r: MPI_Sum expects double arrays. mcrun_num is now a long long, need a cast.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/mcxtrace-1.0/lib/share/mccode-r.c

    r3220 r3251  
    49004900 /* merge run_num from MPI nodes */ 
    49014901  if (mpi_node_count > 1) { 
    4902   mc_MPI_Sum(&mcrun_num, 1); 
     4902    double ncount=(double)mcrun_num; 
     4903    mc_MPI_Sum(&ncount, 1); 
     4904    mcrun_num = (long long)ncount; 
    49034905  } 
    49044906#endif