ASPECT
ascii_data.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) 2016-2025 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 
16 #ifndef _aspect_gravity_model_ascii_data_h
17 #define _aspect_gravity_model_ascii_data_h
18 
20 #include <aspect/utilities.h>
22 
23 namespace aspect
24 {
25  namespace GravityModel
26  {
33  template <int dim>
34  class AsciiData : public Utilities::AsciiDataProfile<dim>, public Interface<dim>, public ::aspect::SimulatorAccess<dim>
35  {
36  public:
40  AsciiData ();
41 
46  void
47  initialize () override;
48 
49  // avoid -Woverloaded-virtual:
51 
55  Tensor<1,dim> gravity_vector (const Point<dim> &position) const override;
56 
60  static
61  void
63 
67  void
68  parse_parameters (ParameterHandler &prm) override;
69 
70  private:
74  std::unique_ptr<aspect::Utilities::StructuredDataLookup<1>> profile;
75 
79  unsigned int gravity_index;
80  };
81  }
82 }
83 
84 
85 #endif
std::unique_ptr< aspect::Utilities::StructuredDataLookup< 1 > > profile
Definition: ascii_data.h:74
void parse_parameters(ParameterHandler &prm) override
Tensor< 1, dim > gravity_vector(const Point< dim > &position) const override
static void declare_parameters(ParameterHandler &prm)