/[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 1388 - (show annotations)
Fri Jan 11 07:45:58 2008 UTC (11 years, 8 months ago) by trankine
File MIME type: text/plain
File size: 2225 byte(s)
And get the *(&(*&(* name right
1
2 /* $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 */
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 index_t out=MATRIX_FORMAT_DEFAULT;
35 package=Paso_Options_getPackage(solver,package,symmetry);
36
37 switch(package) {
38
39 case PASO_PASO:
40 out=MATRIX_FORMAT_DEFAULT;
41 break;
42
43 case PASO_SCSL:
44 out=MATRIX_FORMAT_CSC + MATRIX_FORMAT_BLK1;
45 /* if (solver == PASO_CHOLEVSKY) out+=MATRIX_FORMAT_SYM */
46 break;
47
48 case PASO_MKL:
49 out=MATRIX_FORMAT_BLK1 + MATRIX_FORMAT_OFFSET1;
50 /* if (solver == PASO_CHOLEVSKY) out+=MATRIX_FORMAT_SYM */
51 break;
52
53 case PASO_UMFPACK:
54 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;
60
61 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