ASPECT
world_builder.h
Go to the documentation of this file.
1 // ------------------------------------------------------
2 //
3 // SPDX-License-Identifier: GPL-2.0-or-later
4 //
5 // SPDX-FileCopyrightText: Copyright (C) 2011-2026 by the ASPECT authors.
6 //
7 // This file is part of ASPECT.
8 //
9 // Detailed license information governing the source code and
10 // contributions can be found in the folder LICENSES and in
11 // LICENSE and CONTRIBUTING.md at the top level directory.
12 //
13 // ------------------------------------------------------
14 
15 #ifndef _aspect_initial_temperature_world_builder_h
16 #define _aspect_initial_temperature_world_builder_h
17 
18 #include <aspect/global.h>
19 
22 
23 namespace WorldBuilder
24 {
25  class World;
26 }
27 
28 
29 
30 namespace aspect
31 {
32 
33 #ifdef ASPECT_WITH_WORLD_BUILDER
34 
35  namespace InitialTemperature
36  {
44  template <int dim>
45  class WorldBuilder : public Interface<dim>, public SimulatorAccess<dim>
46  {
47  public:
51  WorldBuilder ();
52 
58  void
59  initialize () override;
60 
64  double initial_temperature (const Point<dim> &position) const override;
65 
66  private:
71  std::shared_ptr<const ::WorldBuilder::World> world_builder;
72  };
73  }
74 #endif
75 
76 }
77 
78 #endif
Manager< dim > World
Definition: world.h:33