Skip to content
Snippets Groups Projects
Commit e698d681 authored by Tom Fischer's avatar Tom Fischer
Browse files

[PL/ST] Use bulk_mesh_dimension instead of dimension of the source term mesh.

At the moment the most important difference
between line source term and the volumetric source
term is the handling of the dimension. In order to
unify the implementations further the
bulk_mesh_dimension is used instead of the
dimension of the source_term_mesh.
parent 2c63aa96
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
namespace ProcessLib namespace ProcessLib
{ {
VolumetricSourceTerm::VolumetricSourceTerm( VolumetricSourceTerm::VolumetricSourceTerm(
MeshLib::Mesh const& source_term_mesh, unsigned const bulk_mesh_dimension, MeshLib::Mesh const& source_term_mesh,
std::unique_ptr<NumLib::LocalToGlobalIndexMap> source_term_dof_table, std::unique_ptr<NumLib::LocalToGlobalIndexMap> source_term_dof_table,
unsigned const integration_order, unsigned const shapefunction_order, unsigned const integration_order, unsigned const shapefunction_order,
ParameterLib::Parameter<double> const& source_term_parameter) ParameterLib::Parameter<double> const& source_term_parameter)
...@@ -23,7 +23,7 @@ VolumetricSourceTerm::VolumetricSourceTerm( ...@@ -23,7 +23,7 @@ VolumetricSourceTerm::VolumetricSourceTerm(
_source_term_parameter(source_term_parameter) _source_term_parameter(source_term_parameter)
{ {
ProcessLib::createLocalAssemblers<VolumetricSourceTermLocalAssembler>( ProcessLib::createLocalAssemblers<VolumetricSourceTermLocalAssembler>(
source_term_mesh.getDimension(), source_term_mesh.getElements(), bulk_mesh_dimension, source_term_mesh.getElements(),
*_source_term_dof_table, shapefunction_order, _local_assemblers, *_source_term_dof_table, shapefunction_order, _local_assemblers,
source_term_mesh.isAxiallySymmetric(), integration_order, source_term_mesh.isAxiallySymmetric(), integration_order,
_source_term_parameter); _source_term_parameter);
......
...@@ -22,6 +22,7 @@ class VolumetricSourceTerm final : public SourceTerm ...@@ -22,6 +22,7 @@ class VolumetricSourceTerm final : public SourceTerm
{ {
public: public:
VolumetricSourceTerm( VolumetricSourceTerm(
unsigned const bulk_mesh_dimension,
MeshLib::Mesh const& source_term_mesh, MeshLib::Mesh const& source_term_mesh,
std::unique_ptr<NumLib::LocalToGlobalIndexMap> source_term_dof_table, std::unique_ptr<NumLib::LocalToGlobalIndexMap> source_term_dof_table,
unsigned const integration_order, unsigned const shapefunction_order, unsigned const integration_order, unsigned const shapefunction_order,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment