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
|
// ------------------------------------------------------------------------
//
// SPDX-License-Identifier: LGPL-2.1-or-later
// Copyright (C) 1998 - 2018 by the deal.II authors
//
// This file is part of the deal.II library.
//
// Part of the source code is dual licensed under Apache-2.0 WITH
// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
// governing the source code and code contributions can be found in
// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
//
// ------------------------------------------------------------------------
#include <deal.II/algorithms/any_data.h>
#include <deal.II/algorithms/named_selection.h>
DEAL_II_NAMESPACE_OPEN
void
NamedSelection::initialize(const AnyData &data)
{
indices.resize(names.size());
for (unsigned int i = 0; i < names.size(); ++i)
indices[i] = data.find(names[i]);
}
DEAL_II_NAMESPACE_CLOSE
|