ASPECT
include
aspect
time_stepping
function.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) 2018-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_time_stepping_function_h
17
#define _aspect_time_stepping_function_h
18
19
#include <
aspect/time_stepping/interface.h
>
20
#include <
deal.II/base/parsed_function.h
>
21
22
namespace
aspect
23
{
24
namespace
TimeStepping
25
{
32
template
<
int
dim>
33
class
Function
:
public
Interface
<dim>,
public
SimulatorAccess
<dim>
34
{
35
public
:
39
Function
() =
default
;
40
44
double
45
execute
()
override
;
46
47
static
48
void
49
declare_parameters
(
ParameterHandler
&prm);
50
51
void
52
parse_parameters
(
ParameterHandler
&prm)
override
;
53
54
private
:
58
Functions::ParsedFunction<1>
function
;
59
};
60
}
61
}
62
63
64
#endif
aspect::TimeStepping::Function::execute
double execute() override
aspect::TimeStepping::Function::parse_parameters
void parse_parameters(ParameterHandler &prm) override
parsed_function.h
Functions::ParsedFunction< 1 >
interface.h
ParameterHandler
aspect::TimeStepping::Function::declare_parameters
static void declare_parameters(ParameterHandler &prm)
TimeStepping
aspect::TimeStepping::Function::Function
Function()=default
aspect::TimeStepping::Function
Definition:
function.h:33
aspect::TimeStepping::Interface
Definition:
interface.h:84
aspect::SimulatorAccess
Definition:
plugins.h:41
aspect
Definition:
advection_field.h:24
ASPECT manual
| Generated by
1.8.12