Revision df72835dc041a4000a59881263828a4cca6a05c8 authored by Dmitry Yu. Naumov on 18 June 2023, 19:37:29 UTC, committed by Dmitry Yu. Naumov on 18 June 2023, 19:37:29 UTC
Draft: THM: Improve J_uu for solid thermal expansion See merge request ogs/ogs!4646
WeightedPoint.cpp
/**
* \file
* \copyright
* Copyright (c) 2012-2023, 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 "WeightedPoint.h"
#include <ostream>
namespace MathLib
{
// Used to output helpful information if the unit tests fail.
std::ostream& operator<<(std::ostream& os, MathLib::WeightedPoint const& wp)
{
auto const dim = wp.getDimension();
os << "WP[" << dim << "D]{{";
for (std::size_t comp = 0; comp < 3; ++comp)
{
if (comp != 0)
{
os << ", ";
}
os << wp[comp];
}
os << "}, weight=" << wp.getWeight() << '}';
return os;
}
} // namespace MathLib
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...