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

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

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

revision 2881 by jfenwick, Thu Jan 28 02:03:15 2010 UTC revision 3259 by jfenwick, Mon Oct 11 01:48:14 2010 UTC
# Line 29  Line 29 
29    
30  /**************************************************************/  /**************************************************************/
31    
32  index_t Paso_SystemMatrix_getSystemMatrixTypeId(const index_t solver,const index_t preconditioner, const index_t package,const  bool_t symmetry, Paso_MPIInfo *mpi_info) {  index_t Paso_SystemMatrix_getSystemMatrixTypeId(const index_t solver,const index_t preconditioner, const index_t package,const  bool_t symmetry, Esys_MPIInfo *mpi_info) {
33    index_t true_package;    index_t true_package;
34    index_t out=MATRIX_FORMAT_DEFAULT;    index_t out=MATRIX_FORMAT_DEFAULT;
35    true_package=Paso_Options_getPackage(solver,package,symmetry, mpi_info);    true_package=Paso_Options_getPackage(solver,package,symmetry, mpi_info);
# Line 54  index_t Paso_SystemMatrix_getSystemMatri Line 54  index_t Paso_SystemMatrix_getSystemMatri
54    
55       case PASO_UMFPACK:       case PASO_UMFPACK:
56         if (mpi_info->size > 1) {         if (mpi_info->size > 1) {
57             Paso_setError(VALUE_ERROR,"The selected solver UMFPACK requires CSC format which is not supported with MPI.");             Esys_setError(VALUE_ERROR,"The selected solver UMFPACK requires CSC format which is not supported with MPI.");
58             return -1;             return -1;
59         }         }
60         out=MATRIX_FORMAT_CSC + MATRIX_FORMAT_BLK1;         out=MATRIX_FORMAT_CSC + MATRIX_FORMAT_BLK1;
# Line 65  index_t Paso_SystemMatrix_getSystemMatri Line 65  index_t Paso_SystemMatrix_getSystemMatri
65        break;        break;
66    
67       default:       default:
68          Paso_setError(VALUE_ERROR,"unknown package code");          Esys_setError(VALUE_ERROR,"unknown package code");
69    }    }
70    return out;    return out;
71  }  }

Legend:
Removed from v.2881  
changed lines
  Added in v.3259

  ViewVC Help
Powered by ViewVC 1.1.26