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 : 8 : #include "DataStructures/DataBox/Tag.hpp" 9 : #include "Options/String.hpp" 10 : 11 : namespace Parallel { 12 : /// \cond 13 : template <typename Metavariables> 14 : struct ResourceInfo; 15 : /// \endcond 16 : namespace OptionTags { 17 : /// \ingroup ParallelGroup 18 : /// Options group for resource allocation 19 : template <typename Metavariables> 20 1 : struct ResourceInfo { 21 0 : using type = Parallel::ResourceInfo<Metavariables>; 22 0 : static constexpr Options::String help = { 23 : "Options for allocating resources. This information will be used when " 24 : "placing Array and Singleton parallel components on the requested " 25 : "resources."}; 26 : }; 27 : } // namespace OptionTags 28 : 29 : namespace Tags { 30 : /// \ingroup ParallelGroup 31 : /// Tag to retrieve the ResourceInfo. 32 : template <typename Metavariables> 33 1 : struct ResourceInfo : db::SimpleTag { 34 0 : using type = Parallel::ResourceInfo<Metavariables>; 35 : }; 36 : } // namespace Tags 37 : } // namespace Parallel