~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/la/PETScFactory.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:
27
27
    /// Create empty matrix
28
28
    PETScMatrix* createMatrix() const;
29
29
 
 
30
    /// Create empty vector
 
31
    PETScVector* createVector() const;
 
32
 
30
33
    /// Create empty sparsity pattern 
31
34
    SparsityPattern* createPattern() const;
32
35
 
33
 
    /// Create empty vector
34
 
    PETScVector* createVector() const;
35
 
 
 
36
    /// Return singleton instance
36
37
    static PETScFactory& instance() 
37
 
    { return petscfactory; }
 
38
    { return factory; }
38
39
 
39
40
  private:
40
41
 
41
42
    /// Private Constructor
42
43
    PETScFactory() {}
43
 
    static PETScFactory petscfactory;
 
44
    static PETScFactory factory;
44
45
 
45
46
  };
46
47