Skip to content
Snippets Groups Projects
Commit a6312df1 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

fatal if the given shape function order is not supported

parent b9e13f08
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,9 @@ ProcessVariable::ProcessVariable(
{
DBUG("Constructing process variable %s", _name.c_str());
if (_shapefunction_order < 1 || 2 < _shapefunction_order)
OGS_FATAL("The given shape function order %d is not supported", _shapefunction_order);
// Boundary conditions
//! \ogs_file_param{prj__process_variables__process_variable__boundary_conditions}
if (auto bcs_config = config.getConfigSubtreeOptional("boundary_conditions"))
......
......@@ -133,6 +133,9 @@ public:
const unsigned shapefunction_order)
: _dof_table(dof_table)
{
if (shapefunction_order < 1 || 2 < shapefunction_order)
OGS_FATAL("The given shape function order %d is not supported", shapefunction_order);
if (shapefunction_order == 1)
{
// /// Lines and points ///////////////////////////////////
......
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