Commit a9287a4b authored by Andreas Nüßing's avatar Andreas Nüßing

[SubtractionUDG] rename fitted subtraction source model

parent 584c51cd
......@@ -13,7 +13,6 @@
#include <duneuro/eeg/vertex_based_venant_source_model.hh>
#include <duneuro/eeg/whitney_source_model.hh>
namespace duneuro
{
struct CGSourceModelFactory {
......@@ -50,7 +49,7 @@ namespace duneuro
Vector>>(
volumeConductor, solver.functionSpace().getGFS(), search, config);
} else if (type == "subtraction") {
return std::make_shared<SubtractionSourceModel<
return std::make_shared<FittedSubtractionSourceModel<
typename Solver::Traits::VolumeConductor, typename Solver::Traits::FunctionSpace,
Vector, SubtractionContinuityType::continuous>>(volumeConductor, solver.functionSpace(),
search, config, solverConfig);
......
......@@ -29,10 +29,10 @@ namespace duneuro
V>>(
volumeConductor, solver.functionSpace().getGFS(), search, config);
} else if (type == "subtraction") {
return std::make_shared<SubtractionSourceModel<typename Solver::Traits::VolumeConductor,
typename Solver::Traits::FunctionSpace, V,
SubtractionContinuityType::discontinuous>>(
volumeConductor, solver.functionSpace(), search, config, solverConfig);
return std::make_shared<FittedSubtractionSourceModel<
typename Solver::Traits::VolumeConductor, typename Solver::Traits::FunctionSpace, V,
SubtractionContinuityType::discontinuous>>(volumeConductor, solver.functionSpace(),
search, config, solverConfig);
} else if (type == "localized_subtraction") {
return std::make_shared<LocalizedSubtractionSourceModel<
typename Solver::Traits::VolumeConductor, typename Solver::Traits::FunctionSpace, V>>(
......
#ifndef DUNEURO_SUBTRACTIONDGRESIDUAL_HH
#define DUNEURO_SUBTRACTIONDGRESIDUAL_HH
#ifndef DUNEURO_FITTED_SUBTRACTION_SOURCE_MODEL_HH
#define DUNEURO_FITTED_SUBTRACTION_SOURCE_MODEL_HH
#include <dune/common/parametertree.hh>
......@@ -15,7 +15,8 @@
namespace duneuro
{
template <class VC, class FS, class V, SubtractionContinuityType continuityType>
class SubtractionSourceModel : public SourceModelBase<typename FS::GFS::Traits::GridViewType, V>
class FittedSubtractionSourceModel
: public SourceModelBase<typename FS::GFS::Traits::GridViewType, V>
{
public:
using BaseT = SourceModelBase<typename FS::GFS::Traits::GridViewType, V>;
......@@ -32,9 +33,10 @@ namespace duneuro
using VectorType = typename BaseT::VectorType;
using SearchType = typename BaseT::SearchType;
SubtractionSourceModel(std::shared_ptr<VC> volumeConductor, const FS& fs,
std::shared_ptr<SearchType> search, const Dune::ParameterTree& config,
const Dune::ParameterTree& solverConfig)
FittedSubtractionSourceModel(std::shared_ptr<VC> volumeConductor, const FS& fs,
std::shared_ptr<SearchType> search,
const Dune::ParameterTree& config,
const Dune::ParameterTree& solverConfig)
: BaseT(search)
, problem_(volumeConductor->gridView(), volumeConductor)
, edgeNormProvider_(solverConfig.get<std::string>("edge_norm_type", "houston"), 1.0)
......@@ -94,4 +96,4 @@ namespace duneuro
};
}
#endif // DUNEURO_SUBTRACTIONDGRESIDUAL_HH
#endif // DUNEURO_FITTED_SUBTRACTION_SOURCE_MODEL_HH
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