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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3642 - (show annotations)
Thu Oct 27 03:41:51 2011 UTC (7 years, 5 months ago) by caltinay
File MIME type: text/plain
File size: 1989 byte(s)
Assorted spelling/comment fixes in paso.

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2010 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 package to be used */
18
19 /**************************************************************/
20
21 /* Copyrights by ACcESS Australia 2004,2005 */
22 /* Author: Lutz Gross, l.gross@uq.edu.au */
23
24 /**************************************************************/
25
26 #include "Paso.h"
27 #include "Options.h"
28
29 /**************************************************************/
30
31 index_t Paso_Options_getPackage(index_t solver,index_t package, bool_t symmetry, Esys_MPIInfo *mpi_info) {
32 index_t out=PASO_PASO;
33 if (package==PASO_DEFAULT) {
34 if (solver==PASO_DIRECT) {
35 #ifdef MKL
36 out=PASO_MKL;
37 #else
38 #ifdef UMFPACK
39 out=PASO_UMFPACK;
40 #else
41 #ifdef PASTIX
42 out=PASO_PASTIX
43 #endif
44 #endif
45 #endif
46 if (( (out == PASO_MKL) || (out==PASO_UMFPACK) || (out == PASO_PASTIX) ) && (mpi_info->size>1) ) { /* these packages require CSC which is not supported with MPI */
47 out= PASO_PASO;
48 }
49 } else {
50 out=PASO_PASO;
51 }
52 } else if (package==PASO_PASO) {
53 out=PASO_PASO;
54 } else if (package==PASO_PASTIX) {
55 out=PASO_PASTIX;
56 } else if (package==PASO_MKL) {
57 out=PASO_MKL;
58 } else if (package==PASO_UMFPACK) {
59 out=PASO_UMFPACK;
60 } else if (package==PASO_TRILINOS) {
61 out=PASO_TRILINOS;
62 } else {
63 Esys_setError(VALUE_ERROR,"Paso_Options_getPackage: Unidentified package.");
64 }
65 return out;
66 }
67

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26