Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
physics_scratch_data.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2021-2025 The Lethe Authors
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
3
4#ifndef lethe_physics_scratch_data_h
5#define lethe_physics_scratch_data_h
6
7/**
8 * @brief Base class for scratch data objects of physics and subequations.
9 */
11{
12public:
13 /**
14 * @brief Default virtual destructor
15 */
16 virtual ~PhysicsScratchDataBase() = default;
17
18 /**
19 * @brief Allocate the memory necessary memory for all members of the
20 * scratch.
21 */
22 virtual void
23 allocate() = 0;
24};
25
26#endif
Base class for scratch data objects of physics and subequations.
virtual ~PhysicsScratchDataBase()=default
Default virtual destructor.
virtual void allocate()=0
Allocate the memory necessary memory for all members of the scratch.