diff --git a/ProcessLib/BoundaryCondition/NonuniformDirichletBoundaryCondition.cpp b/ProcessLib/BoundaryCondition/NonuniformDirichletBoundaryCondition.cpp index 4efba29d19468fa157d638c8741f3df1f9d93b3e..8f3d189aa4382943d302797caccb7fe49de33829 100644 --- a/ProcessLib/BoundaryCondition/NonuniformDirichletBoundaryCondition.cpp +++ b/ProcessLib/BoundaryCondition/NonuniformDirichletBoundaryCondition.cpp @@ -32,7 +32,8 @@ createNonuniformDirichletBoundaryCondition( config.getConfigParameter<std::string>("field_name"); auto const* const property = - boundary_mesh.getProperties().getPropertyVector<double>(field_name); + boundary_mesh.getProperties().getPropertyVector<double>( + field_name, MeshLib::MeshItemType::Node, 1); if (!property) { @@ -40,19 +41,6 @@ createNonuniformDirichletBoundaryCondition( field_name.c_str(), boundary_mesh.getName().c_str()); } - if (property->getMeshItemType() != MeshLib::MeshItemType::Node) - { - OGS_FATAL( - "Only nodal fields are supported for non-uniform fields. Field " - "`%s' is not nodal.", - field_name.c_str()); - } - - if (property->getNumberOfComponents() != 1) - { - OGS_FATAL("`%s' is not a one-component field.", field_name.c_str()); - } - // In case of partitioned mesh the boundary could be empty, i.e. there is no // boundary condition. #ifdef USE_PETSC