X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fctrec.c;h=adfc2f1578e2cb6cf35bf23243cd53c78d9136bd;hb=34a2efcc5686600698897d2a5908acc061b0ff9f;hp=3c9138724fecc79cb2879a4ba56af41a281b64b3;hpb=9c40ac1eddbc3ed2b68c88e20b332bd727ca2dde;p=ctsim.git diff --git a/src/ctrec.c b/src/ctrec.c index 3c91387..adfc2f1 100644 --- a/src/ctrec.c +++ b/src/ctrec.c @@ -2,8 +2,12 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: ctrec.c,v 1.2 2000/04/29 23:24:56 kevin Exp $ +** $Id: ctrec.c,v 1.3 2000/04/30 04:06:13 kevin Exp $ ** $Log: ctrec.c,v $ +** Revision 1.3 2000/04/30 04:06:13 kevin +** Update Raysum i/o routines +** Fix MPI bug in ctrec (scatter_raysum) that referenced rs_global +** ** Revision 1.2 2000/04/29 23:24:56 kevin ** *** empty log message *** ** @@ -433,9 +437,9 @@ static void mpi_scatter_rs (RAYSUM *rs_global, RAYSUM *rs_local, const int opt_d fprintf(stdout,"iw=%4d, nrot=%4d, ndet=%4d, view=%lx, detval=%lx\n", iw, rs_local->nview, rs_local->ndet, (unsigned long int) rs_local->view[iw], (unsigned long int) rs_local->view[iw]->detval); } - // MPI_Recv(&rs_local->view[iw]->ndet, 1, MPI_INT, 0, 0, mpi_ct.comm, &status); - // MPI_Recv(&rs_local->view[iw]->view_angle, 1, MPI_DOUBLE, 0, 0, mpi_ct.comm, &status); - // MPI_Recv(rs_local->view[iw]->detval, rs_global->ndet, MPI_FLOAT, 0, 0, mpi_ct.comm, &status); + MPI_Recv(&rs_local->view[iw]->ndet, 1, MPI_INT, 0, 0, mpi_ct.comm, &status); + MPI_Recv(&rs_local->view[iw]->view_angle, 1, MPI_DOUBLE, 0, 0, mpi_ct.comm, &status); + MPI_Recv(rs_local->view[iw]->detval, rs_local->ndet, MPI_FLOAT, 0, 0, mpi_ct.comm, &status); if (opt_debug) { fprintf(stdout, "Received view_angle=%8f, ndet=%5d\n", rs_local->view[iw]->view_angle, rs_local->view[iw]->ndet);