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

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

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

revision 757 by woo409, Mon Jun 26 13:12:56 2006 UTC revision 969 by ksteube, Tue Feb 13 23:02:23 2007 UTC
# Line 29  Line 29 
29    
30  /* allocates a SystemMatrixPattern  */  /* allocates a SystemMatrixPattern  */
31    
32  Paso_SystemMatrixPattern* Paso_SystemMatrixPattern_alloc(int type, int n_ptr, index_t* ptr,index_t* index) {  Paso_SystemMatrixPattern* Paso_SystemMatrixPattern_alloc(int type, int n_ptr, index_t* ptr,index_t* index, Paso_MPIInfo *mpi_info) {
33    Paso_SystemMatrixPattern*out;    Paso_SystemMatrixPattern*out;
34    index_t index_offset=(type & PATTERN_FORMAT_OFFSET1 ? 1:0);    index_t index_offset=(type & PATTERN_FORMAT_OFFSET1 ? 1:0);
35    index_t loc_min_index,loc_max_index,min_index=index_offset,max_index=index_offset-1;    index_t loc_min_index,loc_max_index,min_index=index_offset,max_index=index_offset-1;
# Line 87  Paso_SystemMatrixPattern* Paso_SystemMat Line 87  Paso_SystemMatrixPattern* Paso_SystemMat
87    out->len=out->ptr[out->n_ptr]-index_offset;    out->len=out->ptr[out->n_ptr]-index_offset;
88    out->reference_counter=1;    out->reference_counter=1;
89    out->type=type;    out->type=type;
90      out->MPIInfo = Paso_MPIInfo_getReference(mpi_info);
91      out->numLocal = n_ptr;
92      printf("ksteube Paso_SystemMatrixPattern_alloc cpu=%d numLocal=%d\n", mpi_info->rank, n_ptr);
93    #ifdef Paso_TRACE    #ifdef Paso_TRACE
94    printf("Paso_SystemMatrixPattern_dealloc: system matrix pattern as been allocated.\n");    printf("Paso_SystemMatrixPattern_dealloc: system matrix pattern as been allocated.\n");
95    #endif    #endif

Legend:
Removed from v.757  
changed lines
  Added in v.969

  ViewVC Help
Powered by ViewVC 1.1.26