Page MenuHomec4science

field_collection.hh
No OneTemporary

File Metadata

Created
Fri, Nov 8, 12:04

field_collection.hh

/**
* @file field_collection.hh
*
* @author Till Junge <till.junge@epfl.ch>
*
* @date 07 Sep 2017
*
* @brief Provides pixel-iterable containers for scalar and tensorial fields,
* addressable by field name
*
* Copyright © 2017 Till Junge
*
* µSpectre is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3, or (at
* your option) any later version.
*
* µSpectre is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GNU Emacs; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef FIELD_COLLECTION_H
#define FIELD_COLLECTION_H
#include "common/field_collection_global.hh"
#include "common/field_collection_local.hh"
namespace muSpectre {
/**
* Convenience aliases to unify the local and global
* Field_collection interface
*/
template <Dim_t DimS, Dim_t DimM, bool Global = true>
using FieldCollection = std::conditional_t<
Global,
GlobalFieldCollection<DimS, DimM>,
LocalFieldCollection<DimS, DimM>>;
} // muSpectre
#endif /* FIELD_COLLECTION_H */

Event Timeline