ASPECT
ascii_data_layered.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-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_initial_composition_ascii_data_layered_h
17 #define _aspect_initial_composition_ascii_data_layered_h
18 
20 
22 #include <aspect/utilities.h>
23 
24 
25 namespace aspect
26 {
27  namespace InitialComposition
28  {
35  template <int dim>
36  class AsciiDataLayered : public Interface<dim>, public Utilities::AsciiDataLayered<dim>
37  {
38  public:
43 
48  void
49  initialize () override;
50 
51  // avoid -Woverloaded-virtual:
53 
58  double
59  initial_composition (const Point<dim> &position,
60  const unsigned int n_comp) const override;
61 
65  static
66  void
68 
72  void
73  parse_parameters (ParameterHandler &prm) override;
74  };
75  }
76 }
77 
78 
79 #endif
void parse_parameters(ParameterHandler &prm) override
double initial_composition(const Point< dim > &position, const unsigned int n_comp) const override
static void declare_parameters(ParameterHandler &prm)