AMDiS  0.3
The Adaptive Multi-Dimensional Simulation Toolbox
ProblemStat.hpp
1 #pragma once
2 
3 #include <list>
4 #include <map>
5 #include <memory>
6 #include <string>
7 #include <tuple>
8 #include <utility>
9 #include <vector>
10 
11 #include <dune/common/fvector.hh>
12 #include <dune/common/fmatrix.hh>
13 #include <dune/common/shared_ptr.hh>
14 
15 #include <dune/grid/common/grid.hh>
16 
17 #include <amdis/AdaptInfo.hpp>
18 #include <amdis/AdaptiveGrid.hpp>
19 #include <amdis/BiLinearForm.hpp>
20 #include <amdis/CreatorInterface.hpp>
21 #include <amdis/CreatorMap.hpp>
22 #include <amdis/DirichletBC.hpp>
23 #include <amdis/DOFVector.hpp>
24 //#include <amdis/Estimator.hpp>
25 #include <amdis/Flag.hpp>
26 #include <amdis/Initfile.hpp>
27 #include <amdis/LinearAlgebra.hpp>
28 #include <amdis/LinearForm.hpp>
29 #include <amdis/Marker.hpp>
30 #include <amdis/MeshCreator.hpp>
31 #include <amdis/OperatorList.hpp>
32 #include <amdis/PeriodicBC.hpp>
33 #include <amdis/ProblemStatBase.hpp>
34 #include <amdis/ProblemStatTraits.hpp>
35 #include <amdis/StandardProblemIteration.hpp>
36 #include <amdis/common/SharedPtr.hpp>
37 #include <amdis/common/TupleUtility.hpp>
38 #include <amdis/common/TypeTraits.hpp>
39 #include <amdis/GridFunctions.hpp>
40 #include <amdis/gridfunctions/DiscreteFunction.hpp>
41 #include <amdis/io/FileWriterBase.hpp>
42 #include <amdis/typetree/Concepts.hpp>
43 #include <amdis/typetree/TreePath.hpp>
44 
45 namespace AMDiS
46 {
47  // forward declaration
48  template <class Traits>
49  class ProblemInstat;
50 
51  template <class Traits>
53  : public ProblemStatBase
54  , public StandardProblemIterationAdaptor<ProblemStat<Traits>>
55  {
56  using Self = ProblemStat;
57 
58  friend class ProblemInstat<Traits>;
59 
60  public: // typedefs and static constants
61 
62  using GlobalBasis = typename Traits::GlobalBasis;
63  using GridView = typename GlobalBasis::GridView;
64  using Grid = AdaptiveGrid_t<typename GridView::Grid>;
65  using Element = typename GridView::template Codim<0>::Entity;
66  using WorldVector = typename Element::Geometry::GlobalCoordinate;
67  using WorldMatrix = FieldMatrix<typename WorldVector::field_type, WorldVector::dimension, WorldVector::dimension>;
68 
70  static constexpr int dim = Grid::dimension;
71 
73  static constexpr int dow = Grid::dimensionworld;
74 
75  using value_type = typename Traits::CoefficientType;
76 
77  using LinAlgTraits = typename Traits::LinAlgTraits;
78  using Mat = typename LinAlgTraits::template MatrixImpl<value_type>;
79  using Vec = typename LinAlgTraits::template VectorImpl<value_type>;
80  using PartitionSet = typename LinAlgTraits::PartitionSet;
81 
84 
88 
89  public:
94  explicit ProblemStat(std::string const& name)
95  : name_(name)
96  {}
97 
100  template <class Grid_>
101  ProblemStat(std::string const& name, Grid_&& grid)
102  : ProblemStat(name)
103  {
104  adoptGrid(wrap_or_share(FWD(grid)));
105  }
106 
109  template <class Grid_, class Basis_, class B_ = Underlying_t<Basis_>,
110  REQUIRES(Concepts::GlobalBasis<B_>)>
111  ProblemStat(std::string const& name, Grid_&& grid, Basis_&& globalBasis)
112  : ProblemStat(name, FWD(grid))
113  {
114  adoptGlobalBasis(wrap_or_share(FWD(globalBasis)));
115  }
116 
119  template <class Grid_, class PBF_, class GV_ = typename Underlying_t<Grid_>::LeafGridView,
120  REQUIRES(Concepts::PreBasisFactory<PBF_, GV_, MultiIndex_t<PBF_>>)>
121  ProblemStat(std::string const& name, Grid_&& grid, PBF_ const& preBasisFactory)
122  : ProblemStat(name, FWD(grid))
123  {
124  adoptGlobalBasis(makeSharedPtr(GlobalBasis{grid_->leafGridView(), preBasisFactory}));
125  }
126 
128 
132  void initialize(Flag initFlag, Self* adoptProblem = nullptr, Flag adoptFlag = INIT_NOTHING);
133 
135 
140  void restore(Flag initFlag);
141 
142 
144 
145 
162  template <class Operator, class RowTreePath = RootTreePath, class ColTreePath = RootTreePath>
163  void addMatrixOperator(Operator const& op, RowTreePath row = {}, ColTreePath col = {})
164  {
165  static constexpr bool isValidTreePath =
166  Concepts::ValidTreePath<typename GlobalBasis::LocalView::Tree, RowTreePath> &&
167  Concepts::ValidTreePath<typename GlobalBasis::LocalView::Tree, ColTreePath>;
168  static_assert(isValidTreePath, "Invalid row and/or col treepath passed to addMatrixOperator!");
169 
170  if constexpr (isValidTreePath)
171  systemMatrix_->addOperator(tag::element_operator<Element>{}, op, row, col);
172  }
173 
175 
193  template <class Operator, class RowTreePath = RootTreePath, class ColTreePath = RootTreePath>
194  void addMatrixOperator(BoundaryType b, Operator const& op, RowTreePath row = {}, ColTreePath col = {})
195  {
196  using I = typename GridView::Intersection;
197  static constexpr bool isValidTreePath =
198  Concepts::ValidTreePath<typename GlobalBasis::LocalView::Tree, RowTreePath> &&
199  Concepts::ValidTreePath<typename GlobalBasis::LocalView::Tree, ColTreePath>;
200  static_assert(isValidTreePath, "Invalid row and/or col treepath passed to addMatrixOperator!");
201 
202  if constexpr (isValidTreePath)
203  systemMatrix_->addOperator(tag::boundary_operator<I>{*boundaryManager_,b}, op, row, col);
204  }
208 
210 
225  template <class Operator, class TreePath = RootTreePath>
226  void addVectorOperator(Operator const& op, TreePath path = {})
227  {
228  static constexpr bool isValidTreePath =
229  Concepts::ValidTreePath<typename GlobalBasis::LocalView::Tree, TreePath>;
230  static_assert(isValidTreePath, "Invalid treepath passed to addVectorOperator!");
231 
232  if constexpr (isValidTreePath)
233  rhs_->addOperator(tag::element_operator<Element>{}, op, path);
234  }
235 
237 
253  template <class Operator, class TreePath = RootTreePath>
254  void addVectorOperator(BoundaryType b, Operator const& op, TreePath path = {})
255  {
256  using I = typename GridView::Intersection;
257  static constexpr bool isValidTreePath =
258  Concepts::ValidTreePath<typename GlobalBasis::LocalView::Tree, TreePath>;
259  static_assert(isValidTreePath, "Invalid treepath passed to addVectorOperator!");
260 
261  if constexpr (isValidTreePath)
262  rhs_->addOperator(tag::boundary_operator<I>{*boundaryManager_,b}, op, path);
263  }
267 
269 
289  template <class Predicate, class RowTreePath, class ColTreePath, class Values>
290  void addDirichletBC(Predicate const& predicate,
291  RowTreePath row, ColTreePath col,
292  Values const& values);
293 
294  template <class RowTreePath, class ColTreePath, class Values>
296  RowTreePath row, ColTreePath col,
297  Values const& values);
298 
299  template <class Identifier, class Values>
300  void addDirichletBC(Identifier&& id, Values&& values)
301  {
302  addDirichletBC(FWD(id), RootTreePath{}, RootTreePath{}, FWD(values));
303  }
304 
307  void addPeriodicBC(BoundaryType id, WorldMatrix const& A, WorldVector const& b);
311  {
312  constraints_.push_back(constraint);
313  }
314 
315  public:
316 
318  Flag oneIteration(AdaptInfo& adaptInfo, Flag toDo = FULL_ITERATION) override
319  {
320  return StandardProblemIteration::oneIteration(adaptInfo, toDo);
321  }
322 
324  void buildAfterAdapt(AdaptInfo& adaptInfo,
325  Flag flag,
326  bool asmMatrix = true,
327  bool asmVector = true) override;
328 
331  void assemble(AdaptInfo& adaptInfo)
332  {
333  buildAfterAdapt(adaptInfo, Flag{0}, true, true);
334  }
335 
337  void solve(AdaptInfo& adaptInfo,
338  bool createMatrixData = true,
339  bool storeMatrixData = false) override;
340 
342  void estimate(AdaptInfo& /*adaptInfo*/) override { /* do nothing. */ }
343 
345  Flag adaptGrid(AdaptInfo& adaptInfo) override;
346 
348  Flag markElements(AdaptInfo& adaptInfo) override;
349 
351  Flag globalCoarsen(int n) override;
352 
354  Flag globalRefine(int n) override;
355 
357  void writeFiles(AdaptInfo& adaptInfo, bool force = false);
358 
359 
360  public: // get-methods
361 
363  std::string const& name() const override { return name_; }
364 
366  std::shared_ptr<Grid> grid() { return grid_; }
367  std::shared_ptr<Grid const> grid() const { return grid_; }
368 
370  GridView gridView() const { return globalBasis_->gridView(); }
371 
373  std::shared_ptr<BoundaryManager<Grid>> boundaryManager() { return boundaryManager_; }
374  std::shared_ptr<BoundaryManager<Grid> const> boundaryManager() const { return boundaryManager_; }
375 
377  std::shared_ptr<GlobalBasis> globalBasis() { return globalBasis_; }
378  std::shared_ptr<GlobalBasis const> globalBasis() const { return globalBasis_; }
379 
381  std::shared_ptr<LinearSolverInterface> solver() { return linearSolver_; }
382  std::shared_ptr<LinearSolverInterface const> solver() const { return linearSolver_; }
383 
385  std::shared_ptr<SystemMatrix> systemMatrix() { return systemMatrix_; }
386  std::shared_ptr<SystemMatrix const> systemMatrix() const { return systemMatrix_; }
387 
389  std::shared_ptr<SolutionVector> solutionVector() { return solution_; }
390  std::shared_ptr<SolutionVector const> solutionVector() const { return solution_; }
391 
393  std::shared_ptr<SystemVector> rhsVector() { return rhs_; }
394  std::shared_ptr<SystemVector const> rhsVector() const { return rhs_; }
395 
396 
398 
402  template <class Range = void, class... Indices>
403  auto solution(Indices... ii)
404  {
405  assert(bool(solution_) && "You have to call initialize() before.");
406  return valueOf<Range>(*solution_, ii...);
407  }
408 
410 
414  template <class Range = void, class... Indices>
415  auto solution(Indices... ii) const
416  {
417  assert(bool(solution_) && "You have to call initialize() before.");
418  return valueOf<Range>(*solution_, ii...);
419  }
420 
421 
422  public: // set-methods
423 
425  template <class Solver_>
426  void setSolver(Solver_&& solver)
427  {
428  linearSolver_ = wrap_or_share(FWD(solver));
429  }
430 
431 
435  template <class Grid_>
436  void setGrid(Grid_&& grid)
437  {
438  adoptGrid(wrap_or_share(FWD(grid)));
439  createGlobalBasis();
440  createMatricesAndVectors();
441  createMarker();
442  createFileWriter();
443  }
444 
445 
447 
450  template <class Marker_>
451  void addMarker(Marker_&& m)
452  {
453  auto marker = wrap_or_share(FWD(m));
454  auto it = marker_.emplace(marker->name(), marker);
455  if (marker_.size() > 1)
456  it.first->second->setMaximumMarking(true);
457  }
458 
460  void removeMarker(std::string name)
461  {
462  std::size_t num = marker_.erase(name);
463  test_warning(num == 1, "A marker with the given name '{}' does not exist.", name);
464  }
465 
467  void removeMarker(Marker<Grid> const& marker)
468  {
469  removeMarker(marker.name());
470  }
471 
472 
473  protected: // initialization methods
474 
475  void createGlobalBasis();
476  void createGrid();
477  void createMatricesAndVectors();
478  void createSolver();
479  void createMarker();
480  void createFileWriter();
481 
482  void adoptGlobalBasis(std::shared_ptr<GlobalBasis> globalBasis)
483  {
484  globalBasis_ = std::move(globalBasis);
485  initGlobalBasis();
486  }
487 
488  void adoptGrid(std::shared_ptr<Grid> const& grid,
489  std::shared_ptr<BoundaryManager<Grid>> const& boundaryManager)
490  {
491  grid_ = grid;
493  Parameters::get(name_ + "->mesh", gridName_);
494  }
495 
496  void adoptGrid(std::shared_ptr<Grid> const& grid)
497  {
498  adoptGrid(grid, std::make_shared<BoundaryManager<Grid>>(grid));
499  }
500 
501  void adoptGrid(std::shared_ptr<typename Grid::HostGrid> const& hostGrid)
502  {
503  auto grid = std::make_shared<Grid>(hostGrid);
504  adoptGrid(grid, std::make_shared<BoundaryManager<Grid>>(grid));
505  }
506 
507  private:
508 
509  void createGlobalBasisImpl(std::true_type);
510  void createGlobalBasisImpl(std::false_type);
511 
512  void initGlobalBasis();
513 
514  protected:
515 
517  std::string name_;
518 
520  std::shared_ptr<Grid> grid_;
521 
523  std::string gridName_ = "mesh";
524 
526  std::shared_ptr<BoundaryManager<Grid>> boundaryManager_;
527 
529  std::shared_ptr<GlobalBasis> globalBasis_;
530 
532  std::list<std::shared_ptr<FileWriterInterface>> filewriter_;
533 
535  std::map<std::string, std::shared_ptr<Marker<Grid>>> marker_;
536 
538 // std::vector<Estimator*> estimator;
539 
541  std::shared_ptr<LinearSolverInterface> linearSolver_;
542 
544  std::shared_ptr<SystemMatrix> systemMatrix_;
545 
547  std::shared_ptr<SolutionVector> solution_;
548 
551  std::shared_ptr<SystemVector> rhs_;
552 
555  std::map<std::string, std::vector<double>> estimates_;
556 
558  std::list<BoundaryCondition<SystemMatrix, SolutionVector, SystemVector>> constraints_;
559  };
560 
561 
562  namespace Impl
563  {
564  template <class Grid, class B, class = void>
565  struct DeducedProblemTraits;
566 
567  template <class Grid, class PB>
568  struct DeducedProblemTraits<Grid,GlobalBasis<PB>,void>
569  {
571  };
572 
573  template <class G, class PBF>
574  struct DeducedProblemTraits<G,PBF,
575  std::enable_if_t<Concepts::PreBasisFactory<PBF, typename G::LeafGridView, MultiIndex_t<PBF>>>>
576  {
577  using Grid = AdaptiveGrid_t<G>;
578  using GridView = typename Grid::LeafGridView;
579  using Basis = decltype(GlobalBasis{std::declval<GridView>(),std::declval<PBF>()});
580 
581  using type = DefaultProblemTraits<Basis>;
582  };
583 
584  template <class Grid, class Basis>
585  using DeducedProblemTraits_t = typename DeducedProblemTraits<Grid,Basis>::type;
586  }
587 
588 
589  // Deduction guide
590  template <class Grid, class Basis>
591  ProblemStat(std::string name, Grid&& grid, Basis&& globalBasis)
593 
594 
595  // mark templates as explicitly instantiated in cpp file
596  extern template class ProblemStat<LagrangeBasis<Dune::YaspGrid<2>,1>>;
597  extern template class ProblemStat<LagrangeBasis<Dune::YaspGrid<2>,1,1>>;
598 
599 } // end namespace AMDiS
600 
601 #include "ProblemStat.inc.hpp"
Flag oneIteration(AdaptInfo &adaptInfo, Flag toDo=FULL_ITERATION) override
Implementation of StandardProblemIteration::oneIteration.
Definition: ProblemStat.hpp:318
static constexpr int dow
Dimension of the world.
Definition: ProblemStat.hpp:73
auto solution(Indices... ii) const
Return a const view to a solution component.
Definition: ProblemStat.hpp:415
std::string const & name() const override
Implementation of ProblemStatBase::name.
Definition: ProblemStat.hpp:363
void addPeriodicBC(BoundaryType id, WorldMatrix const &A, WorldVector const &b)
Definition: ProblemStat.inc.hpp:334
The Flag class encapsulates flags which represents simple information. Used e.g. while mesh traversal...
Definition: Flag.hpp:13
ProblemStat(std::string const &name, Grid_ &&grid)
Definition: ProblemStat.hpp:101
std::map< std::string, std::vector< double > > estimates_
Definition: ProblemStat.hpp:555
void addMatrixOperator(BoundaryType b, Operator const &op, RowTreePath row={}, ColTreePath col={})
Operator evaluated on the boundary of the domain with boundary index b
Definition: ProblemStat.hpp:194
void addDirichletBC(Predicate const &predicate, RowTreePath row, ColTreePath col, Values const &values)
Add boundary conditions to the system.
Definition: ProblemStat.inc.hpp:290
void addMarker(Marker_ &&m)
Store the shared_ptr and the name of the marker in the problem.
Definition: ProblemStat.hpp:451
The base class for an operator to be used in an Assembler.
Definition: Operator.hpp:79
void addMatrixOperator(Operator const &op, RowTreePath row={}, ColTreePath col={})
Add an operator to A.
Definition: ProblemStat.hpp:163
std::shared_ptr< SystemMatrix > systemMatrix_
Matrix that is filled during assembling.
Definition: ProblemStat.hpp:544
void estimate(AdaptInfo &) override
Implementation of ProblemStatBase::estimate.
Definition: ProblemStat.hpp:342
constexpr bool Predicate
A predicate is a function that returns a boolean.
Definition: Concepts.hpp:142
void setGrid(Grid_ &&grid)
Definition: ProblemStat.hpp:436
The basic container that stores a base vector and a corresponding basis.
Definition: LinearForm.hpp:26
std::shared_ptr< SystemVector > rhs_
Definition: ProblemStat.hpp:551
ProblemStat(std::string const &name)
Constructor. Takes the name of the problem that is used to access values corresponding to this proble...
Definition: ProblemStat.hpp:94
std::shared_ptr< SolutionVector > solution_
Vector with the solution components.
Definition: ProblemStat.hpp:547
The basic container that stores a base vector and a corresponding basis.
Definition: DOFVector.hpp:27
Definition: AdaptBase.hpp:6
StandardProblemIteration when derived from ProblemStat.
Definition: StandardProblemIteration.hpp:71
Definition: OperatorList.hpp:19
Base class for all markers.
Definition: Marker.hpp:28
auto solution(Indices... ii)
Return a mutable view to a solution component.
Definition: ProblemStat.hpp:403
std::shared_ptr< SolutionVector > solutionVector()
Returns a reference to the solution vector, solution_.
Definition: ProblemStat.hpp:389
Wrapper around a global basis providing default traits.
Definition: ProblemStatTraits.hpp:77
std::shared_ptr< GlobalBasis > globalBasis()
Return the globalBasis_.
Definition: ProblemStat.hpp:377
std::list< std::shared_ptr< FileWriterInterface > > filewriter_
A FileWriter object.
Definition: ProblemStat.hpp:532
Definition: ProblemStat.hpp:52
void initialize(Flag initFlag, Self *adoptProblem=nullptr, Flag adoptFlag=INIT_NOTHING)
Initialisation of the problem.
Definition: ProblemStat.inc.hpp:22
Standard implementation of ProblemTimeInterface for a time dependent problems.
Definition: ProblemInstat.hpp:24
std::shared_ptr< GlobalBasis > globalBasis_
FE space of this problem.
Definition: ProblemStat.hpp:529
void restore(Flag initFlag)
Read the grid and solution from backup files and initialize the problem.
Definition: ProblemStat.inc.hpp:107
Definition: BiLinearForm.hpp:27
std::map< std::string, std::shared_ptr< Marker< Grid > > > marker_
Pointer to the adaptation markers.
Definition: ProblemStat.hpp:535
ProblemStat(std::string const &name, Grid_ &&grid, Basis_ &&globalBasis)
Constructor taking a grid and basis. Wraps both in shared pointers.
Definition: ProblemStat.hpp:111
std::shared_ptr< Grid > grid()
Return the grid_.
Definition: ProblemStat.hpp:366
std::shared_ptr< SystemMatrix > systemMatrix()
Returns a reference to system-matrix, systemMatrix_.
Definition: ProblemStat.hpp:385
static std::optional< T > get(std::string const &key)
Get parameter-values from parameter-tree.
Definition: Initfile.hpp:25
static constexpr int dim
Dimension of the grid.
Definition: ProblemStat.hpp:70
void addVectorOperator(Operator const &op, TreePath path={})
Add an operator to rhs.
Definition: ProblemStat.hpp:226
std::shared_ptr< SystemVector > rhsVector()
Return a reference to the rhs system-vector, rhs.
Definition: ProblemStat.hpp:393
Flag markElements(AdaptInfo &adaptInfo) override
Implementation of ProblemStatBase::markElements.
Definition: ProblemStat.inc.hpp:379
void removeMarker(std::string name)
Remove a marker with the given name from the problem.
Definition: ProblemStat.hpp:460
Definition: LinearSolverInterface.hpp:8
Flag adaptGrid(AdaptInfo &adaptInfo) override
Implementation of ProblemStatBase::refineMesh.
Definition: ProblemStat.inc.hpp:446
ProblemStat(std::string const &name, Grid_ &&grid, PBF_ const &preBasisFactory)
Constructor taking a grid and pre-basis factory to create a global basis on the fly.
Definition: ProblemStat.hpp:121
Interface for time independent problems. Concrete problems must override all pure virtual methods...
Definition: ProblemStatBase.hpp:58
void writeFiles(AdaptInfo &adaptInfo, bool force=false)
Writes output files. If force=true write even if timestep out of write rhythm.
Definition: ProblemStat.inc.hpp:520
Implementation of LinearSolverInterface for EIGEN solvers.
Definition: LinearSolver.hpp:14
std::shared_ptr< Grid > grid_
Grid of this problem.
Definition: ProblemStat.hpp:520
void solve(AdaptInfo &adaptInfo, bool createMatrixData=true, bool storeMatrixData=false) override
Implementation of ProblemStatBase::solve.
Definition: ProblemStat.inc.hpp:346
typename PreBasis::GridView GridView
The grid view that the FE space is defined on.
Definition: GlobalBasis.hpp:63
GridView gridView() const
Return the gridView of the basis.
Definition: ProblemStat.hpp:370
Flag globalRefine(int n) override
Uniform global refinement by n level.
Definition: ProblemStat.inc.hpp:431
Holds adapt parameters and infos about the problem.
Definition: AdaptInfo.hpp:25
void addVectorOperator(BoundaryType b, Operator const &op, TreePath path={})
Operator evaluated on the boundary of the domain with boundary index b
Definition: ProblemStat.hpp:254
std::shared_ptr< LinearSolverInterface > solver()
Return a reference to the linear solver, linearSolver.
Definition: ProblemStat.hpp:381
std::shared_ptr< BoundaryManager< Grid > > boundaryManager()
Return the boundary manager to identify boundary segments.
Definition: ProblemStat.hpp:373
std::shared_ptr< BoundaryManager< Grid > > boundaryManager_
Management of boundary conditions.
Definition: ProblemStat.hpp:526
void buildAfterAdapt(AdaptInfo &adaptInfo, Flag flag, bool asmMatrix=true, bool asmVector=true) override
Implementation of ProblemStatBase::buildAfterCoarse.
Definition: ProblemStat.inc.hpp:461
Definition: OperatorList.hpp:15
std::shared_ptr< LinearSolverInterface > linearSolver_
Pointer to the estimators for this problem.
Definition: ProblemStat.hpp:541
constexpr bool GlobalBasis
A Dune::Functions::GlobalBasis type.
Definition: Concepts.hpp:190
std::list< BoundaryCondition< SystemMatrix, SolutionVector, SystemVector > > constraints_
List of constraints to apply to matrix, solution and rhs.
Definition: ProblemStat.hpp:558
void assemble(AdaptInfo &adaptInfo)
Assemble the linear system by calling buildAfterAdapt with asmMatrix and asmVector set to true...
Definition: ProblemStat.hpp:331
Manage boundary ids of boundary segments in a grid.
Definition: BoundaryManager.hpp:52
std::string const & name() const
Returns name_ of the Marker.
Definition: Marker.hpp:81
Flag globalCoarsen(int n) override
Uniform global grid coarsening by up to n level.
Definition: ProblemStat.inc.hpp:400
void setSolver(Solver_ &&solver)
Set a new linear solver for the problem.
Definition: ProblemStat.hpp:426
void removeMarker(Marker< Grid > const &marker)
Remove a marker from the problem.
Definition: ProblemStat.hpp:467
Interface class for boundary conditions.
Definition: BoundaryCondition.hpp:61
std::string gridName_
Name of the grid.
Definition: ProblemStat.hpp:523
std::string name_
Name of this problem.
Definition: ProblemStat.hpp:517
Flag oneIteration(AdaptInfo &adaptInfo, Flag toDo) override
Implementation of ProblemIterationInterface::oneIteration()
Definition: StandardProblemIteration.cpp:35