/[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 2550 by jfenwick, Mon Jul 20 06:20:06 2009 UTC revision 2551 by gross, Thu Jul 23 09:19:15 2009 UTC
# Line 79  Paso_SystemMatrixPattern* Paso_SystemMat Line 79  Paso_SystemMatrixPattern* Paso_SystemMat
79    if (row_couplePattern->numOutput != row_connector->recv->numSharedComponents) {    if (row_couplePattern->numOutput != row_connector->recv->numSharedComponents) {
80       Paso_setError(VALUE_ERROR,"Paso_SystemMatrixPattern_alloc: number of inputs for row couple pattern and number of received components in connector don't match.");       Paso_setError(VALUE_ERROR,"Paso_SystemMatrixPattern_alloc: number of inputs for row couple pattern and number of received components in connector don't match.");
81    }    }
   if (mainPattern->output_block_size != col_couplePattern->output_block_size) {  
      Paso_setError(VALUE_ERROR,"Paso_SystemMatrixPattern_alloc: output block sizes of main and column couple pattern do not match.");  
   }  
   if (mainPattern->input_block_size != col_couplePattern->input_block_size) {  
      Paso_setError(VALUE_ERROR,"Paso_SystemMatrixPattern_alloc: input block sizes of main and column couple pattern do not match.");  
   }  
   if (mainPattern->output_block_size != row_couplePattern->output_block_size) {  
      Paso_setError(VALUE_ERROR,"Paso_SystemMatrixPattern_alloc: output block sizes of main and row couple pattern do not match.");  
   }  
   if (mainPattern->input_block_size != col_couplePattern->input_block_size) {  
      Paso_setError(VALUE_ERROR,"Paso_SystemMatrixPattern_alloc: input block sizes of main and row couple pattern do not match.");  
   }  
82    
83    out=MEMALLOC(1,Paso_SystemMatrixPattern);    out=MEMALLOC(1,Paso_SystemMatrixPattern);
84    if (Paso_checkPtr(out)) return NULL;    if (Paso_checkPtr(out)) return NULL;
# Line 112  Paso_SystemMatrixPattern* Paso_SystemMat Line 100  Paso_SystemMatrixPattern* Paso_SystemMat
100    
101  /* returns a reference to in */  /* returns a reference to in */
102    
103  Paso_SystemMatrixPattern* Paso_SystemMatrixPattern_reference(Paso_SystemMatrixPattern* in) {  Paso_SystemMatrixPattern* Paso_SystemMatrixPattern_getReference(Paso_SystemMatrixPattern* in) {
104       if (in!=NULL) {       if (in!=NULL) {
105          ++(in->reference_counter);          ++(in->reference_counter);
106       }       }

Legend:
Removed from v.2550  
changed lines
  Added in v.2551

  ViewVC Help
Powered by ViewVC 1.1.26