forked from celeritas-project/celeritas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PhysicsParamsOutput.hh
46 lines (38 loc) · 1.45 KB
/
PhysicsParamsOutput.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//----------------------------------*-C++-*----------------------------------//
// Copyright 2022-2024 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//---------------------------------------------------------------------------//
//! \file celeritas/phys/PhysicsParamsOutput.hh
//---------------------------------------------------------------------------//
#pragma once
#include <memory>
#include "corecel/io/OutputInterface.hh"
namespace celeritas
{
class PhysicsParams;
//---------------------------------------------------------------------------//
/*!
* Save detailed debugging information about the physics in use.
*/
class PhysicsParamsOutput final : public OutputInterface
{
public:
//!@{
//! \name Type aliases
using SPConstPhysicsParams = std::shared_ptr<PhysicsParams const>;
//!@}
public:
// Construct from shared physics data
explicit PhysicsParamsOutput(SPConstPhysicsParams physics);
//! Category of data to write
Category category() const final { return Category::internal; }
//! Name of the entry inside the category.
std::string_view label() const final { return "physics"; }
// Write output to the given JSON object
void output(JsonPimpl*) const final;
private:
SPConstPhysicsParams physics_;
};
//---------------------------------------------------------------------------//
} // namespace celeritas