Peano
CCZ4SBH_FD4.h
Go to the documentation of this file.
1 // This file is part of the ExaHyPE2 project. For conditions of distribution and
2 // use, please see the copyright notice at www.peano-framework.org
3 #pragma once
4 
5 #include "AbstractCCZ4SBH_FD4.h"
6 
8 
9 #include "tarch/logging/Log.h"
10 
11 
12 namespace benchmarks {
13  namespace exahype2 {
14  namespace ccz4 {
15  class CCZ4SBH_FD4;
16 
18 
19  void prepareTwoPunctures();
20  }
21  }
22 }
23 
24 
25 class benchmarks::exahype2::ccz4::CCZ4SBH_FD4: public benchmarks::exahype2::ccz4::AbstractCCZ4SBH_FD4 {
26  private:
27  static tarch::logging::Log _log;
28 
29  public:
33  CCZ4SBH_FD4();
34 
55  virtual ::exahype2::RefinementCommand refinementCriterion(
56  const double * NOALIAS Q, // Q[59+0],
57  const tarch::la::Vector<DIMENSIONS,double>& meshCellCentre,
58  const tarch::la::Vector<DIMENSIONS,double>& meshCellH,
59  double t
60  ) override;
61 
62 
63  virtual void initialCondition(
64  double * NOALIAS Q,
65  const tarch::la::Vector<DIMENSIONS,double>& meshCellCentre,
66  const tarch::la::Vector<DIMENSIONS,double>& meshCellH,
67  bool gridIsConstructed
68  ) override;
69 
70 
83  virtual void startTimeStep(
84  double globalMinTimeStamp,
85  double globalMaxTimeStamp,
86  double globalMinTimeStepSize,
87  double globalMaxTimeStepSize
88  ) override;
89 };
90 
static tarch::logging::Log _log
Definition: CCZ4SBH_FD4.h:27
CCZ4SBH_FD4()
Initialise the two punctures object if required.
Definition: CCZ4SBH_FD4.cpp:58
virtual ::exahype2::RefinementCommand refinementCriterion(const double *NOALIAS Q, const tarch::la::Vector< DIMENSIONS, double > &meshCellCentre, const tarch::la::Vector< DIMENSIONS, double > &meshCellH, double t) override
Refinement criterion.
Definition: CCZ4SBH_FD4.cpp:47
virtual void initialCondition(double *NOALIAS Q, const tarch::la::Vector< DIMENSIONS, double > &meshCellCentre, const tarch::la::Vector< DIMENSIONS, double > &meshCellH, bool gridIsConstructed) override
Definition: CCZ4SBH_FD4.cpp:60
virtual void startTimeStep(double globalMinTimeStamp, double globalMaxTimeStamp, double globalMinTimeStepSize, double globalMaxTimeStepSize) override
Start a new time step.
Definition: CCZ4SBH_FD4.cpp:73
TP::TwoPunctures * twoPunctures
Definition: CCZ4SBH_FV.h:14
Definition: ccz4.py:1