Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include "DataStructures/DataBox/Tag.hpp" 7 : 8 : namespace Parallel::Tags { 9 : /// \ingroup DataBoxTagsGroup 10 : /// \ingroup ParallelGroup 11 : /// Tag to retrieve the `ArrayIndex` from the DataBox. 12 1 : struct ArrayIndex : db::BaseTag {}; 13 : 14 : template <typename Index> 15 0 : struct ArrayIndexImpl : ArrayIndex, db::SimpleTag { 16 0 : using base = ArrayIndex; 17 0 : using type = Index; 18 : }; 19 : } // namespace Parallel::Tags