~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/la/default_la_types.h

  • Committer: Kent-Andre Mardal
  • Date: 2008-05-19 14:21:52 UTC
  • mfrom: (2668.5.1 trunk)
  • mto: (2668.1.16 trunk)
  • mto: This revision was merged to the branch mainline in revision 2670.
  • Revision ID: kent-and@simula.no-20080519142152-7zb7r4htl7111izh
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright (C) 2007 Garth N. Wells.
2
 
// Licensed under the GNU LGPL Version 2.1.
3
 
//
4
 
// First added:  2007-07-03
5
 
// Last changed:
6
 
 
7
 
#ifndef __DEFAULT_LA_TYPES_H
8
 
#define __DEFAULT_LA_TYPES_H
9
 
 
10
 
#include "PETScVector.h"
11
 
#include "PETScMatrix.h"
12
 
#include "PETScLUSolver.h"
13
 
#include "PETScKrylovSolver.h"
14
 
 
15
 
#include "uBlasVector.h"
16
 
#include "uBlasSparseMatrix.h"
17
 
#include "uBlasLUSolver.h"
18
 
#include "uBlasKrylovSolver.h"
19
 
 
20
 
namespace dolfin
21
 
{
22
 
 
23
 
  /// Various default linear algebra quantities are defined here.
24
 
  
25
 
#ifdef HAS_PETSC
26
 
  typedef PETScVector         DefaultVector;
27
 
  typedef PETScMatrix         DefaultMatrix;
28
 
  typedef PETScLUSolver       DefaultLUSolver;
29
 
  typedef PETScKrylovSolver   DefaultKrylovSolver;
30
 
  typedef PETScPreconditioner DefaultPreconditioner; 
31
 
#else
32
 
  typedef uBlasVector         DefaultVector;
33
 
  typedef uBlasSparseMatrix   DefaultMatrix;
34
 
  typedef uBlasLUSolver       DefaultLUSolver;
35
 
  typedef uBlasKrylovSolver   DefaultKrylovSolver;
36
 
  typedef uBlasPreconditioner DefaultPreconditioner;
37
 
#endif
38
 
 
39
 
}
40
 
 
41
 
#endif