Revision ee075718cc369daa91c7e3fa114353f52a9c957f authored by Dmitry Yu. Naumov on 09 March 2021, 11:53:26 UTC, committed by Dmitry Yu. Naumov on 09 March 2021, 11:53:26 UTC
[T/RM] Relax tolerances for failing CI job. See merge request ogs/ogs!3495
CoordinateSystem.h
/**
* \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
*
*/
#pragma once
#include <Eigen/Dense>
#include <array>
#include <vector>
namespace ParameterLib
{
template <typename T>
struct Parameter;
class SpatialPosition;
} // namespace ParameterLib
namespace ParameterLib
{
struct CoordinateSystem final
{
CoordinateSystem(Parameter<double> const& e0, Parameter<double> const& e1);
CoordinateSystem(Parameter<double> const& e0,
Parameter<double> const& e1,
Parameter<double> const& e2);
template <int Dimension>
Eigen::Matrix<double, Dimension, Dimension> transformation(
SpatialPosition const& pos) const;
Eigen::Matrix<double, 3, 3> transformation_3d(
SpatialPosition const& pos) const;
template <int Dimension>
Eigen::Matrix<double, Dimension, Dimension> rotateTensor(
std::vector<double> const& values, SpatialPosition const& pos) const;
template <int Dimension>
Eigen::Matrix<double, Dimension, Dimension> rotateDiagonalTensor(
std::vector<double> const& values, SpatialPosition const& pos) const;
private:
std::array<Parameter<double> const*, 3> _base;
};
extern template Eigen::Matrix<double, 2, 2> CoordinateSystem::rotateTensor<2>(
std::vector<double> const& values, SpatialPosition const& pos) const;
extern template Eigen::Matrix<double, 3, 3> CoordinateSystem::rotateTensor<3>(
std::vector<double> const& values, SpatialPosition const& pos) const;
extern template Eigen::Matrix<double, 2, 2>
CoordinateSystem::rotateDiagonalTensor<2>(std::vector<double> const& values,
SpatialPosition const& pos) const;
extern template Eigen::Matrix<double, 3, 3>
CoordinateSystem::rotateDiagonalTensor<3>(std::vector<double> const& values,
SpatialPosition const& pos) const;
} // namespace ParameterLib
Computing file changes ...