/[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 155 by jgs, Wed Nov 9 02:02:19 2005 UTC revision 631 by dhawcroft, Thu Mar 23 04:27:32 2006 UTC
# Line 1  Line 1 
1  /* $Id$ */  /* $Id$ */
2    
3    /*
4    ********************************************************************************
5    *               Copyright 2006 by ACcESS MNRF                                *
6    *                                                                              *
7    *                 http://www.access.edu.au                                     *
8    *           Primary Business: Queensland, Australia                            *
9    *     Licensed under the Open Software License version 3.0             *
10    *        http://www.opensource.org/licenses/osl-3.0.php                        *
11    ********************************************************************************
12    */
13  /**************************************************************/  /**************************************************************/
14    
15  /* Paso: returns the matrix format requested by a particular linear solver */  /* Paso: returns the matrix format requested by a particular linear solver */
# Line 18  Line 28 
28  /**************************************************************/  /**************************************************************/
29    
30  index_t Paso_SystemMatrix_getSystemMatrixTypeId(index_t solver,index_t package, bool_t symmetry) {  index_t Paso_SystemMatrix_getSystemMatrixTypeId(index_t solver,index_t package, bool_t symmetry) {
31    index_t out=CSR;    index_t out=MATRIX_FORMAT_DEFAULT;
32    package=Paso_Options_getPackage(solver,package,symmetry);    package=Paso_Options_getPackage(solver,package,symmetry);
33    
34    switch(package)  {    switch(package)  {
35    
36       case PASO_PASO:       case PASO_PASO:
37         out=CSR;         out=MATRIX_FORMAT_DEFAULT;
38         break;         break;
39    
40       case PASO_SCSL:       case PASO_SCSL:
41         out= symmetry ? CSC_BLK1_SYM : CSC_BLK1;         out=MATRIX_FORMAT_CSC + MATRIX_FORMAT_BLK1;
42           /* if (solver == PASO_CHOLEVSKY) out+=MATRIX_FORMAT_SYM */
43         break;         break;
44  /*  
45       case PASO_MKL:       case PASO_MKL:
46         out= CSR_BLK1;         out=MATRIX_FORMAT_BLK1 + MATRIX_FORMAT_OFFSET1;
47           /* if (solver == PASO_CHOLEVSKY) out+=MATRIX_FORMAT_SYM */
48         break;         break;
 */  
49    
 /*  
50       case PASO_UMFPACK:       case PASO_UMFPACK:
51         out= CSR_BLK1;         out=MATRIX_FORMAT_BLK1;
52        break;        break;
 */  
53    
54       default:       default:
55          Paso_setError(VALUE_ERROR,"unknown package code");          Paso_setError(VALUE_ERROR,"unknown package code");

Legend:
Removed from v.155  
changed lines
  Added in v.631

  ViewVC Help
Powered by ViewVC 1.1.26