/[escript]/temp_trunk_copy/paso/src/Options_getPackage.c
ViewVC logotype

Contents of /temp_trunk_copy/paso/src/Options_getPackage.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1312 - (show annotations)
Mon Sep 24 06:18:44 2007 UTC (12 years, 2 months ago) by ksteube
Original Path: trunk/paso/src/Options_getPackage.c
File MIME type: text/plain
File size: 2135 byte(s)
The MPI branch is hereby closed. All future work should be in trunk.

Previously in revision 1295 I merged the latest changes to trunk into trunk-mpi-branch.
In this revision I copied all files from trunk-mpi-branch over the corresponding
trunk files. I did not use 'svn merge', it was a copy.

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 package to be used */
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
30 /**************************************************************/
31
32 index_t Paso_Options_getPackage(index_t solver,index_t package, bool_t symmetry) {
33 index_t out=PASO_PASO;
34 if (package==PASO_DEFAULT) {
35 if (solver==PASO_DIRECT) {
36 #ifdef MKL
37 out=PASO_MKL;
38 #else
39 #ifdef SCSL
40 out=PASO_SCSL;
41 #else
42 #ifdef UMFPACK
43 out=PASO_UMFPACK;
44 #endif
45 #endif
46 #endif
47 } else {
48 out=PASO_PASO;
49 }
50 } else if (package==PASO_PASO) {
51 out=PASO_PASO;
52 } else if (package==PASO_SCSL) {
53 out=PASO_SCSL;
54 } else if (package==PASO_MKL) {
55 out=PASO_MKL;
56 } else if (package==PASO_UMFPACK) {
57 out=PASO_UMFPACK;
58 } else if (package==PASO_TRILINOS) {
59 out=PASO_TRILINOS;
60 } else {
61 Paso_setError(VALUE_ERROR,"Unidentified package.");
62 }
63 return out;
64 }
65
66 /*
67 * $Log$
68 * Revision 1.2 2005/09/15 03:44:38 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:46 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