Revision a14aee566ad8e744715e5049a96fb8255e9920e9 authored by Lars Bilke on 04 August 2021, 13:53:08 UTC, committed by Lars Bilke on 04 August 2021, 13:53:08 UTC
1 parent c4c8bc7
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
Computing file changes ...