/[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 1811 - (show annotations)
Thu Sep 25 23:11:13 2008 UTC (11 years, 1 month ago) by ksteube
File MIME type: text/plain
File size: 2190 byte(s)
Copyright updated in all files

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2008 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
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 /**************************************************************/
16
17 /* Paso: returns the matrix format requested by a particular linear solver */
18
19 /**************************************************************/
20
21 /* Copyrights by ACcESS Australia 2004,2005 */
22 /* Author: gross@access.edu.au */
23
24 /**************************************************************/
25
26 #include "Paso.h"
27 #include "Options.h"
28 #include "SystemMatrix.h"
29
30 /**************************************************************/
31
32 index_t Paso_SystemMatrix_getSystemMatrixTypeId(index_t solver,index_t package, bool_t symmetry) {
33 index_t out=MATRIX_FORMAT_DEFAULT;
34 package=Paso_Options_getPackage(solver,package,symmetry);
35
36 switch(package) {
37
38 case PASO_PASO:
39 out=MATRIX_FORMAT_DEFAULT;
40 break;
41
42 case PASO_SCSL:
43 out=MATRIX_FORMAT_CSC + MATRIX_FORMAT_BLK1;
44 /* if (solver == PASO_CHOLEVSKY) out+=MATRIX_FORMAT_SYM */
45 break;
46
47 case PASO_MKL:
48 out=MATRIX_FORMAT_BLK1 + MATRIX_FORMAT_OFFSET1;
49 /* if (solver == PASO_CHOLEVSKY) out+=MATRIX_FORMAT_SYM */
50 break;
51
52 case PASO_UMFPACK:
53 out=MATRIX_FORMAT_CSC + MATRIX_FORMAT_BLK1;
54 break;
55
56 case PASO_TRILINOS:
57 out=MATRIX_FORMAT_TRILINOS_CRS + MATRIX_FORMAT_BLK1; /* Distributed CRS */
58 break;
59
60 default:
61 Paso_setError(VALUE_ERROR,"unknown package code");
62 }
63 return out;
64 }
65 /*
66 * $Log$
67 * Revision 1.2 2005/09/15 03:44:39 jgs
68 * Merge of development branch dev-02 back to main trunk on 2005-09-15
69 *
70 * Revision 1.1.2.1 2005/09/05 06:29:48 gross
71 * These files have been extracted from finley to define a stand alone libray for iterative
72 * linear solvers on the ALTIX. main entry through Paso_solve. this version compiles but
73 * has not been tested yet.
74 *
75 *
76 */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26