/[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 425 - (show annotations)
Tue Jan 10 04:10:39 2006 UTC (13 years, 10 months ago) by gross
File MIME type: text/plain
File size: 1658 byte(s)
The sparse solver can be called by paso now. 

the building has been change to reduce some code redundancy:
now all scons SCscripts are importing scons/esys_options.py which
imports platform specific settings. 



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=MATRIX_FORMAT_DEFAULT;
22 package=Paso_Options_getPackage(solver,package,symmetry);
23
24 switch(package) {
25
26 case PASO_PASO:
27 out=MATRIX_FORMAT_DEFAULT;
28 break;
29
30 case PASO_SCSL:
31 out=MATRIX_FORMAT_CSC + MATRIX_FORMAT_BLK1;
32 /* if (solver == PASO_CHOLEVSKY) out+=MATRIX_FORMAT_SYM */
33 break;
34
35 case PASO_MKL:
36 out=MATRIX_FORMAT_BLK1 + MATRIX_FORMAT_OFFSET1;
37 /* if (solver == PASO_CHOLEVSKY) out+=MATRIX_FORMAT_SYM */
38 break;
39
40 case PASO_UMFPACK:
41 out=MATRIX_FORMAT_BLK1;
42 break;
43
44 default:
45 Paso_setError(VALUE_ERROR,"unknown package code");
46 }
47 return out;
48 }
49 /*
50 * $Log$
51 * Revision 1.2 2005/09/15 03:44:39 jgs
52 * Merge of development branch dev-02 back to main trunk on 2005-09-15
53 *
54 * Revision 1.1.2.1 2005/09/05 06:29:48 gross
55 * These files have been extracted from finley to define a stand alone libray for iterative
56 * linear solvers on the ALTIX. main entry through Paso_solve. this version compiles but
57 * has not been tested yet.
58 *
59 *
60 */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26