/[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 394 by gross, Tue Dec 20 07:20:32 2005 UTC revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC
# Line 1  Line 1 
1    
2  /* $Id$ */  /* $Id$ */
3    
4    /*******************************************************
5     *
6     *           Copyright 2003-2007 by ACceSS MNRF
7     *       Copyright 2007 by University of Queensland
8     *
9     *                http://esscc.uq.edu.au
10     *        Primary Business: Queensland, Australia
11     *  Licensed under the Open Software License version 3.0
12     *     http://www.opensource.org/licenses/osl-3.0.php
13     *
14     *******************************************************/
15    
16  /**************************************************************/  /**************************************************************/
17    
18  /* 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 31 
31  /**************************************************************/  /**************************************************************/
32    
33  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) {
34    index_t out=CSR;    index_t out=MATRIX_FORMAT_DEFAULT;
35    package=Paso_Options_getPackage(solver,package,symmetry);    package=Paso_Options_getPackage(solver,package,symmetry);
36    
37    switch(package)  {    switch(package)  {
38    
39       case PASO_PASO:       case PASO_PASO:
40         out=CSR;         out=MATRIX_FORMAT_DEFAULT;
41         break;         break;
42    
43       case PASO_SCSL:       case PASO_SCSL:
44         /* out= symmetry ? CSC_BLK1_SYM : CSC_BLK1; */         out=MATRIX_FORMAT_CSC + MATRIX_FORMAT_BLK1;
45         out=CSC_BLK1;         /* if (solver == PASO_CHOLEVSKY) out+=MATRIX_FORMAT_SYM */
46         break;         break;
47  /*  
48       case PASO_MKL:       case PASO_MKL:
49         out= CSR_BLK1;         out=MATRIX_FORMAT_BLK1 + MATRIX_FORMAT_OFFSET1;
50           /* if (solver == PASO_CHOLEVSKY) out+=MATRIX_FORMAT_SYM */
51         break;         break;
 */  
52    
 /*  
53       case PASO_UMFPACK:       case PASO_UMFPACK:
54         out= CSR_BLK1;         out=MATRIX_FORMAT_CSC + MATRIX_FORMAT_BLK1;
55          break;
56    
57        case PASO_TRILINOS:
58          out=MATRIX_FORMAT_TRILINOS_CRS + MATRIX_FORMAT_BLK1; /* Distributed CRS */
59        break;        break;
 */  
60    
61       default:       default:
62          Paso_setError(VALUE_ERROR,"unknown package code");          Paso_setError(VALUE_ERROR,"unknown package code");

Legend:
Removed from v.394  
changed lines
  Added in v.1312

  ViewVC Help
Powered by ViewVC 1.1.26