Changes between Initial Version and Version 1 of Ticket #3


Ignore:
Timestamp:
10/25/12 09:02:59 (14 years ago)
Author:
siegel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3 – Description

    initial v1  
    1 In diffusion1d_par.c, there is a global variable but that is a pointer.  It is allocated twice (i.e., two mallocs) on rank 0--hence the first is a memory leak.
     1In diffusion1d_par.c, there is a global variable buf that is a pointer.  It is allocated twice (i.e., two mallocs) on rank 0--hence the first is a memory leak.
    22
    33Also several functions have a local variable named but which shadows the global one.  This is probably a bad idea.  It would be better to use different names for variables that visible in the same scope.