Skip to content
Snippets Groups Projects
ParallelProblemStatBase.h 1.65 KiB
// ============================================================================
// ==                                                                        ==
// == 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 ParallelProblemStatBase.h */

#ifndef AMDIS_PARALLEL_PROBLEM_STAT_BASE_H
#define AMDIS_PARALLEL_PROBLEM_STAT_BASE_H

#include "parallel/MeshDistributor.h"
#include "ProblemStat.h"

namespace AMDiS {

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

    virtual ~ParallelProblemStatBase() {}

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

    void initialize(Flag initFlag,
		    ProblemStatSeq *adoptProblem = NULL,
		    Flag adoptFlag = INIT_NOTHING);

    void addPeriodicBC(BoundaryType type, int row, int col);

  protected:
    MeshDistributor *meshDistributor;
  };

}

#endif