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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 150 - (show annotations)
Thu Sep 15 03:44:45 2005 UTC (14 years, 1 month ago) by jgs
Original Path: trunk/esys2/paso/src/SystemMatrix_getSystemMatrixTypeId.c
File MIME type: text/plain
File size: 1456 byte(s)
Merge of development branch dev-02 back to main trunk on 2005-09-15

1 /* $Id$ */
2
3 /**************************************************************/
4
5 /* Paso: returns the matrix format requested by a particular linear solver */
6
7 /**************************************************************/
8
9 /* Copyrights by ACcESS Australia 2004,2005 */
10 /* Author: gross@access.edu.au */
11
12 /**************************************************************/
13
14 #include "Paso.h"
15 #include "Options.h"
16 #include "SystemMatrix.h"
17
18 /**************************************************************/
19
20 index_t Paso_SystemMatrix_getSystemMatrixTypeId(index_t solver,index_t package, bool_t symmetry) {
21 index_t out=CSR;
22 package=Paso_Options_getPackage(solver,package,symmetry);
23
24 switch(package) {
25
26 case PASO_PASO:
27 out=CSR;
28 break;
29
30 case PASO_SCSL:
31 out= symmetry ? CSC_BLK1_SYM : CSC_BLK1;
32 break;
33 /*
34 case PASO_MKL:
35 out= CSR_BLK1;
36 break;
37 */
38
39 /*
40 case PASO_UMFPACK:
41 out= CSR_BLK1;
42 break;
43 */
44
45 default:
46 Paso_setError(VALUE_ERROR,"unknown package code");
47 }
48 return out;
49 }
50 /*
51 * $Log$
52 * Revision 1.2 2005/09/15 03:44:39 jgs
53 * Merge of development branch dev-02 back to main trunk on 2005-09-15
54 *
55 * Revision 1.1.2.1 2005/09/05 06:29:48 gross
56 * These files have been extracted from finley to define a stand alone libray for iterative
57 * linear solvers on the ALTIX. main entry through Paso_solve. this version compiles but
58 * has not been tested yet.
59 *
60 *
61 */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26