ParallelProblemStatBase.h 1.62 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"
27
#include "ProblemStat.h"
Thomas Witkowski's avatar
Thomas Witkowski committed
28
29
30

namespace AMDiS {

31
  class ParallelProblemStatBase : public ProblemStatSeq
Thomas Witkowski's avatar
Thomas Witkowski committed
32
33
34
35
  {
  public:
    ParallelProblemStatBase(std::string nameStr,
			    ProblemIterationInterface *problemIteration = NULL)
36
      : ProblemStatSeq(nameStr, problemIteration),
Thomas Witkowski's avatar
Thomas Witkowski committed
37
38
39
	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

  protected:
    MeshDistributor *meshDistributor;     
  };
54

Thomas Witkowski's avatar
Thomas Witkowski committed
55
56
57
}

#endif