forked from celeritas-project/celeritas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ImportPhysicsVector.cc
27 lines (24 loc) · 1.01 KB
/
ImportPhysicsVector.cc
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
//----------------------------------*-C++-*----------------------------------//
// Copyright 2020-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/io/ImportPhysicsVector.cc
//---------------------------------------------------------------------------//
#include "ImportPhysicsVector.hh"
#include "corecel/Assert.hh"
#include "corecel/io/EnumStringMapper.hh"
namespace celeritas
{
//---------------------------------------------------------------------------//
/*!
* Get the string value for a vector type.
*/
char const* to_cstring(ImportPhysicsVectorType value)
{
static EnumStringMapper<ImportPhysicsVectorType> const to_cstring_impl{
"unknown", "linear", "log", "free"};
return to_cstring_impl(value);
}
//---------------------------------------------------------------------------//
} // namespace celeritas