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

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

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

revision 3444 by gross, Tue Jan 18 01:47:36 2011 UTC revision 3445 by gross, Wed Jan 19 06:02:15 2011 UTC
# Line 219  double* Paso_SystemMatrix_finishRowColle Line 219  double* Paso_SystemMatrix_finishRowColle
219   return A->row_coupler->recv_buffer;   return A->row_coupler->recv_buffer;
220  }  }
221    
222  dim_t Paso_SystemMatrix_getTotalNumRows(const Paso_SystemMatrix* A){  
223    return A->mainBlock->numRows * A->row_block_size;  dim_t Paso_SystemMatrix_getNumRows(const Paso_SystemMatrix* A){
224      return A->mainBlock->numRows;
225    }
226    
227    dim_t Paso_SystemMatrix_getNumCols(const Paso_SystemMatrix* A){
228      return A->mainBlock->numCols;
229  }  }
230    
231    dim_t Paso_SystemMatrix_getTotalNumRows(const Paso_SystemMatrix* A){
232      return  Paso_SystemMatrix_getNumRows(A) * A->row_block_size;
233    }
234  dim_t Paso_SystemMatrix_getTotalNumCols(const Paso_SystemMatrix* A){  dim_t Paso_SystemMatrix_getTotalNumCols(const Paso_SystemMatrix* A){
235    return A->mainBlock->numCols * A->col_block_size;    return Paso_SystemMatrix_getNumCols(A) * A->col_block_size;
236  }  }
237    
238    dim_t Paso_SystemMatrix_getRowOverlap(const Paso_SystemMatrix* A)
239    {
240      return Paso_Coupler_getNumOverlapComponents(A->row_coupler);
241    }
242    dim_t Paso_SystemMatrix_getColOverlap(const Paso_SystemMatrix* A)
243    {
244      return Paso_Coupler_getNumOverlapComponents(A->col_coupler);
245    }
246    
247    
248    
249  dim_t Paso_SystemMatrix_getGlobalNumRows(const Paso_SystemMatrix* A) {  dim_t Paso_SystemMatrix_getGlobalNumRows(const Paso_SystemMatrix* A) {
250    if (A->type & MATRIX_FORMAT_CSC) {    if (A->type & MATRIX_FORMAT_CSC) {
251        return  Paso_Distribution_getGlobalNumComponents(A->pattern->input_distribution);        return  Paso_Distribution_getGlobalNumComponents(A->pattern->input_distribution);

Legend:
Removed from v.3444  
changed lines
  Added in v.3445

  ViewVC Help
Powered by ViewVC 1.1.26