/[escript]/trunk/paso/src/Paso_MPI.c
ViewVC logotype

Diff of /trunk/paso/src/Paso_MPI.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1343 by ksteube, Wed Nov 14 02:48:02 2007 UTC revision 1347 by ksteube, Fri Nov 16 05:37:07 2007 UTC
# Line 162  int Paso_MPIInfo_initialized( void ) Line 162  int Paso_MPIInfo_initialized( void )
162    
163  /* Append MPI rank to file name if multiple MPI processes */  /* Append MPI rank to file name if multiple MPI processes */
164  char *Paso_MPI_appendRankToFileName(char *fileName, int mpi_size, int mpi_rank) {  char *Paso_MPI_appendRankToFileName(char *fileName, int mpi_size, int mpi_rank) {
165    char newFileName[4096];    char *newFileName = TMPMEMALLOC(4096,char);
166    strncpy(newFileName, fileName, strlen(fileName)+1);    strncpy(newFileName, fileName, strlen(fileName)+1);
167    if (mpi_size>1) sprintf(newFileName+strlen(newFileName), ".%04d", mpi_rank);    if (mpi_size>1) sprintf(newFileName+strlen(newFileName), ".%04d", mpi_rank);
168    return(newFileName);    return(newFileName);

Legend:
Removed from v.1343  
changed lines
  Added in v.1347

  ViewVC Help
Powered by ViewVC 1.1.26