/[escript]/branches/doubleplusgood/finley/src/Mesh_read.cpp
ViewVC logotype

Diff of /branches/doubleplusgood/finley/src/Mesh_read.cpp

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

revision 1986 by jfenwick, Thu Nov 6 23:33:14 2008 UTC revision 2052 by phornby, Mon Nov 17 11:15:07 2008 UTC
# Line 876  Finley_Mesh* Finley_Mesh_read_MPI(char* Line 876  Finley_Mesh* Finley_Mesh_read_MPI(char*
876            len=0;            len=0;
877        while (1)        while (1)
878            {            {
879               size_t MALLOC_CHUNK = 1024;               size_t malloc_chunk = 1024;
880               size_t buff_size = 0;               size_t buff_size = 0;
881               int ch;               int ch;
882    
# Line 887  Finley_Mesh* Finley_Mesh_read_MPI(char* Line 887  Finley_Mesh* Finley_Mesh_read_MPI(char*
887               }               }
888               if( len+1 > buff_size )               if( len+1 > buff_size )
889               {               {
890                  TMPMEMREALLOC(remainder,remainder,buff_size+MALLOC_CHUNK,char);                  TMPMEMREALLOC(remainder,remainder,buff_size+malloc_chunk,char);
891               }               }
892               if( ch == EOF )               if( ch == EOF )
893               {               {

Legend:
Removed from v.1986  
changed lines
  Added in v.2052

  ViewVC Help
Powered by ViewVC 1.1.26