Line data Source code
1 0 : // Distributed under the MIT License.
2 : // See LICENSE.txt for details.
3 :
4 : #pragma once
5 :
6 : #include <string>
7 : #include <vector>
8 :
9 : #include "DataStructures/DataBox/Tag.hpp"
10 : #include "Options/Tags.hpp"
11 :
12 : namespace Parallel::Tags {
13 : /// \ingroup DataBoxTagsGroup
14 : /// A tag storing the input file yaml input source passed in at runtime, so that
15 : /// it can be accessed and written to files.
16 1 : struct InputSource : db::SimpleTag {
17 0 : using type = std::vector<std::string>;
18 0 : using option_tags = tmpl::list<::Options::Tags::InputSource>;
19 :
20 0 : static constexpr bool pass_metavariables = false;
21 0 : static type create_from_options(const type& input_source) {
22 : return input_source;
23 : }
24 : };
25 : } // namespace Parallel::Tags
|