Revision 77f5b851c5231b9edb3d88d46ac06ff4b11e2bd0 authored by Wenqing Wang on 28 January 2021, 13:52:34 UTC, committed by Wenqing Wang on 03 February 2021, 11:28:58 UTC
1 parent 5af7e0d
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
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...