¡@

Home 

c++ Programming Glossary: charspernum

writing a matrix into a single txt file with mpi

http://stackoverflow.com/questions/9777828/writing-a-matrix-into-a-single-txt-file-with-mpi

of it being of MPI_FLOATs it's of a new type which is charspernum characters per number. The code follows #include stdio.h #include.. const endfmt 8.3f n int startrow endrow locnrows const int charspernum 9 ierr MPI_Init argc argv ierr MPI_Comm_size MPI_COMM_WORLD.. j 0 j ncols j data i j rank each number is represented by charspernum chars MPI_Type_contiguous charspernum MPI_CHAR num_as_string..