Commit 85bfe42b authored by Andreas Nüßing's avatar Andreas Nüßing

[Transfer] rename transfer rhs

As we might have different types of transfer matrix rhs in the future,
rename the current ones to {fitted,unfitted}point...
parent cccede23
......@@ -12,7 +12,8 @@
namespace duneuro
{
template <class GFS, class V>
class TransferMatrixRHS : public TransferMatrixRHSInterface<typename GFS::Traits::GridViewType, V>
class FittedPointTransferMatrixRHS
: public TransferMatrixRHSInterface<typename GFS::Traits::GridViewType, V>
{
public:
using GV = typename GFS::Traits::GridViewType;
......@@ -28,7 +29,7 @@ namespace duneuro
using BasisSwitch = Dune::BasisInterfaceSwitch<typename FESwitch::Basis>;
using RangeType = typename BasisSwitch::Range;
TransferMatrixRHS(const GFS& gfs)
FittedPointTransferMatrixRHS(const GFS& gfs)
: gfs_(gfs)
, lfsReference_(gfs_)
, cacheReference_(lfsReference_)
......
......@@ -3,7 +3,7 @@
#include <dune/common/parametertree.hh>
#include <duneuro/eeg/transfer_matrix_rhs.hh>
#include <duneuro/eeg/fitted_point_transfer_matrix_rhs.hh>
#include <duneuro/eeg/transfer_matrix_rhs_interface.hh>
namespace duneuro
......@@ -16,8 +16,8 @@ namespace duneuro
{
auto type = config.get<std::string>("type", "point");
if (type == "point") {
return std::make_unique<TransferMatrixRHS<typename Solver::Traits::FunctionSpace::GFS,
Vector>>(solver.functionSpace().getGFS());
return std::make_unique<FittedPointTransferMatrixRHS<
typename Solver::Traits::FunctionSpace::GFS, Vector>>(solver.functionSpace().getGFS());
} else {
DUNE_THROW(Dune::Exception, "unknown transfer matrix type \"" << type << "\"");
}
......
......@@ -7,7 +7,6 @@
#include <duneuro/common/flags.hh>
#include <duneuro/common/make_dof_vector.hh>
#include <duneuro/eeg/electrode_projection_interface.hh>
#include <duneuro/eeg/transfer_matrix_rhs.hh>
#include <duneuro/io/data_tree.hh>
namespace duneuro
......
......@@ -16,7 +16,7 @@
namespace duneuro
{
template <class GFS, class ST, class V>
class UnfittedTransferMatrixRHS
class UnfittedPointTransferMatrixRHS
: public TransferMatrixRHSInterface<typename GFS::Traits::GridViewType, V>
{
public:
......@@ -37,8 +37,8 @@ namespace duneuro
using BasisSwitch = Dune::BasisInterfaceSwitch<typename FESwitch::Basis>;
using RangeType = typename BasisSwitch::Range;
UnfittedTransferMatrixRHS(const GFS& gfs, std::shared_ptr<const ST> st, std::size_t child,
bool scaleToBBox)
UnfittedPointTransferMatrixRHS(const GFS& gfs, std::shared_ptr<const ST> st, std::size_t child,
bool scaleToBBox)
: st_(st)
, gfs_(gfs)
, child_(child)
......
......@@ -4,7 +4,7 @@
#include <dune/common/parametertree.hh>
#include <duneuro/eeg/transfer_matrix_rhs_interface.hh>
#include <duneuro/eeg/unfitted_transfer_matrix_rhs.hh>
#include <duneuro/eeg/unfitted_point_transfer_matrix_rhs.hh>
namespace duneuro
{
......@@ -16,7 +16,7 @@ namespace duneuro
{
auto type = config.get<std::string>("type", "point");
if (type == "point") {
return std::make_unique<UnfittedTransferMatrixRHS<
return std::make_unique<UnfittedPointTransferMatrixRHS<
typename Solver::Traits::FunctionSpace::GFS, typename Solver::Traits::SubTriangulation,
Vector>>(solver.functionSpace().getGFS(), solver.subTriangulation(),
config.get<std::size_t>("compartment"), solver.scaleToBBox());
......
......@@ -5,7 +5,6 @@
#include <duneuro/common/make_dof_vector.hh>
#include <duneuro/eeg/projection_utilities.hh>
#include <duneuro/eeg/unfitted_transfer_matrix_rhs.hh>
#include <duneuro/io/data_tree.hh>
namespace duneuro
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment