ParallelProblemStatBase.h 1.61 KB
Newer Older
Thomas Witkowski's avatar
Thomas Witkowski committed
1
2
3
4
// ============================================================================
// ==                                                                        ==
// == AMDiS - Adaptive multidimensional simulations                          ==
// ==                                                                        ==
5
// ==  http://www.amdis-fem.org                                              ==
Thomas Witkowski's avatar
Thomas Witkowski committed
6
7
// ==                                                                        ==
// ============================================================================
8
9
10
11
12
13
14
15
16
17
18
19
//
// 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.


Thomas Witkowski's avatar
Thomas Witkowski committed
20
21
22
23
24
25

/** \file ParallelProblemStatBase.h */

#ifndef AMDIS_PARALLEL_PROBLEM_STAT_BASE_H
#define AMDIS_PARALLEL_PROBLEM_STAT_BASE_H

26
#include "parallel/MeshDistributor.h"
Thomas Witkowski's avatar
Thomas Witkowski committed
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "ProblemVec.h"

namespace AMDiS {

  class ParallelProblemStatBase : public ProblemVec
  {
  public:
    ParallelProblemStatBase(std::string nameStr,
			    ProblemIterationInterface *problemIteration = NULL)
      : ProblemVec(nameStr, problemIteration),
	meshDistributor(NULL)
    {}

Thomas Witkowski's avatar
Thomas Witkowski committed
40
    virtual ~ParallelProblemStatBase() {}
Thomas Witkowski's avatar
Thomas Witkowski committed
41
42
43

    void buildAfterCoarsen(AdaptInfo *adaptInfo, Flag flag,
			   bool assembleMatrix,
44
45
			   bool assembleVector);

Thomas Witkowski's avatar
Thomas Witkowski committed
46
    virtual void addToMeshDistributor(MeshDistributor& m);
47
48
49

  protected:
    void processMemUsage(double& vm_usage, double& resident_set);
Thomas Witkowski's avatar
Thomas Witkowski committed
50
51
52
53
54
55
56

  protected:
    MeshDistributor *meshDistributor;     
  };
}

#endif