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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1387 - (hide annotations)
Fri Jan 11 07:45:26 2008 UTC (11 years, 10 months ago) by trankine
Original Path: temp/paso/src/SystemMatrix_getSystemMatrixTypeId.c
File MIME type: text/plain
File size: 2225 byte(s)
Restore the trunk that existed before the windows changes were committed to the (now moved to branches) old trunk.
1 ksteube 1312
2 jgs 150 /* $Id$ */
3    
4 ksteube 1312 /*******************************************************
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 jgs 150 /**************************************************************/
17    
18     /* Paso: returns the matrix format requested by a particular linear solver */
19    
20     /**************************************************************/
21    
22     /* Copyrights by ACcESS Australia 2004,2005 */
23     /* Author: gross@access.edu.au */
24    
25     /**************************************************************/
26    
27     #include "Paso.h"
28     #include "Options.h"
29     #include "SystemMatrix.h"
30    
31     /**************************************************************/
32    
33     index_t Paso_SystemMatrix_getSystemMatrixTypeId(index_t solver,index_t package, bool_t symmetry) {
34 gross 415 index_t out=MATRIX_FORMAT_DEFAULT;
35 jgs 150 package=Paso_Options_getPackage(solver,package,symmetry);
36    
37     switch(package) {
38    
39     case PASO_PASO:
40 gross 415 out=MATRIX_FORMAT_DEFAULT;
41 jgs 150 break;
42    
43     case PASO_SCSL:
44 gross 415 out=MATRIX_FORMAT_CSC + MATRIX_FORMAT_BLK1;
45 gross 425 /* if (solver == PASO_CHOLEVSKY) out+=MATRIX_FORMAT_SYM */
46 jgs 150 break;
47 gross 415
48 jgs 150 case PASO_MKL:
49 gross 425 out=MATRIX_FORMAT_BLK1 + MATRIX_FORMAT_OFFSET1;
50     /* if (solver == PASO_CHOLEVSKY) out+=MATRIX_FORMAT_SYM */
51 jgs 150 break;
52    
53     case PASO_UMFPACK:
54 gross 806 out=MATRIX_FORMAT_CSC + MATRIX_FORMAT_BLK1;
55 jgs 150 break;
56    
57 ksteube 1312 case PASO_TRILINOS:
58     out=MATRIX_FORMAT_TRILINOS_CRS + MATRIX_FORMAT_BLK1; /* Distributed CRS */
59     break;
60    
61 jgs 150 default:
62     Paso_setError(VALUE_ERROR,"unknown package code");
63     }
64     return out;
65     }
66     /*
67     * $Log$
68     * Revision 1.2 2005/09/15 03:44:39 jgs
69     * Merge of development branch dev-02 back to main trunk on 2005-09-15
70     *
71     * Revision 1.1.2.1 2005/09/05 06:29:48 gross
72     * These files have been extracted from finley to define a stand alone libray for iterative
73     * linear solvers on the ALTIX. main entry through Paso_solve. this version compiles but
74     * has not been tested yet.
75     *
76     *
77     */

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26