PetscProblemStat.h 1.88 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// ============================================================================
// ==                                                                        ==
// == AMDiS - Adaptive multidimensional simulations                          ==
// ==                                                                        ==
// ==  http://www.amdis-fem.org                                              ==
// ==                                                                        ==
// ============================================================================
//
// Software License for AMDiS
//
// Copyright (c) 2010 Dresden University of Technology 
// All rights reserved.
// Authors: Simon Vey, Thomas Witkowski et al.
//
// This file is part of AMDiS
//
// See also license.opensource.txt in the distribution.



/** \file PetscProblemStat.h */

#ifndef AMDIS_PETSC_PROBLEM_STAT_H
#define AMDIS_PETSC_PROBLEM_STAT_H

#include "AMDiS_fwd.h"
#include "Global.h"
28
29
#include "parallel/ParallelProblemStatBase.h"
#include "parallel/PetscSolver.h"
30
#include "parallel/PetscSolverFeti.h"
Thomas Witkowski's avatar
Thomas Witkowski committed
31
#include "parallel/PetscSolverGlobalMatrix.h"
32
#include "parallel/PetscSolverGlobalBlockMatrix.h"
Thomas Witkowski's avatar
Thomas Witkowski committed
33
#include "parallel/PetscSolverSchur.h"
34
35
36
37
38
39

namespace AMDiS {
  
  class PetscProblemStat : public ParallelProblemStatBase
  {
  public:
40
41
    PetscProblemStat(std::string nameStr, 
		     ProblemIterationInterface *problemIteration = NULL);
42
43

    ~PetscProblemStat()
44
45
46
    {
      delete petscSolver;
    }
47

48
49
50
    void initialize(Flag initFlag,
		    ProblemStatSeq *adoptProblem = NULL,
		    Flag adoptFlag = INIT_NOTHING);
Thomas Witkowski's avatar
Thomas Witkowski committed
51

52
53
54
    void solve(AdaptInfo *adaptInfo,
	       bool createMatrixData = true,
	       bool storeMatrixData = false);
55
56

  protected:
57
    PetscSolver *petscSolver;
58
59
60
61
  };

  typedef PetscProblemStat ParallelProblemStat;

62
63
64
65
#ifdef HAVE_PARALLEL_DOMAIN_AMDIS
  typedef PetscProblemStat ProblemStat;
#endif

66
67
68
} // namespace AMDiS

#endif