swh:1:snp:f521c49ab17ef7db6ec70b2430e1ed203f50383f
Raw File
Tip revision: 2c4697de7bcd9643d3fbde1992f5e8844e12804f authored by Norbert Grunwald on 14 September 2021, 10:22:34 UTC
[T/TH2M] updated reference files include aeraulic_flow and heat_flux
Tip revision: 2c4697d
Location.cpp
/**
 * \file
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#include "Location.h"

#include <ostream>

namespace MeshLib
{
std::ostream& operator<<(std::ostream& os, MeshItemType const& t)
{
    switch (t)
    {
        case MeshItemType::Node:
            return os << "N";
        case MeshItemType::Edge:
            return os << "E";
        case MeshItemType::Face:
            return os << "F";
        case MeshItemType::Cell:
            return os << "C";
        case MeshItemType::IntegrationPoint:
            return os << "I";
    };
    return os;
}

std::ostream& operator<<(std::ostream& os, Location const& l)
{
    return os << "(" << l.mesh_id << ", " << l.item_type << ", " << l.item_id
              << ")";
}

}  // namespace MeshLib
back to top