~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/la/EpetraFactory.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:
29
29
    /// Create empty matrix
30
30
    EpetraMatrix* createMatrix() const;
31
31
 
 
32
    /// Create empty vector
 
33
    EpetraVector* createVector() const;
 
34
 
32
35
    /// Create empty sparsity pattern 
33
36
    EpetraSparsityPattern* createPattern() const;
34
37
 
35
 
    /// Create empty vector
36
 
    EpetraVector* createVector() const;
37
 
 
38
38
    // Return Epetra Communicator  
39
39
    Epetra_SerialComm& getSerialComm(); 
40
40
 
41
 
    static EpetraFactory& instance() { return epetrafactory; }
 
41
    // Return singleton instance
 
42
    static EpetraFactory& instance()
 
43
    { return factory; }
42
44
 
43
45
  private:
44
 
 
45
 
    /// Private Constructor
 
46
    
 
47
    // Private constructor
46
48
    EpetraFactory();
47
 
    static EpetraFactory epetrafactory;
 
49
 
 
50
    // Singleton instance
 
51
    static EpetraFactory factory;
 
52
 
 
53
    // Communicator
48
54
    Epetra_SerialComm* comm;
49
55
 
50
56
  };