/[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 969 by ksteube, Tue Feb 13 23:02:23 2007 UTC revision 971 by ksteube, Wed Feb 14 04:40:49 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_MPIInfo *mpi_info) {  Paso_SystemMatrixPattern* Paso_SystemMatrixPattern_alloc(int type, int n_ptr, index_t* ptr,index_t* index) {
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;
   out->MPIInfo = Paso_MPIInfo_getReference(mpi_info);  
   out->numLocal = n_ptr;  
   printf("ksteube Paso_SystemMatrixPattern_alloc cpu=%d numLocal=%d\n", mpi_info->rank, n_ptr);  
90    #ifdef Paso_TRACE    #ifdef Paso_TRACE
91    printf("Paso_SystemMatrixPattern_dealloc: system matrix pattern as been allocated.\n");    printf("Paso_SystemMatrixPattern_dealloc: system matrix pattern as been allocated.\n");
92    #endif    #endif

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

  ViewVC Help
Powered by ViewVC 1.1.26