Skip to content

Commit 2537200

Browse files
committed
Added error checking for EIM with no values
1 parent d47c86f commit 2537200

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/reduced_basis/rb_parametrized_function.C

+3
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ void RBParametrizedFunction::preevaluate_parametrized_function_on_mesh(const RBP
474474
counter++;
475475
}
476476
}
477+
libmesh_error_msg_if(counter == 0, "Parametrized function on mesh has no values");
477478

478479
std::vector<RBParameters> mus {mu};
479480
vectorized_evaluate(mus,
@@ -629,6 +630,7 @@ void RBParametrizedFunction::preevaluate_parametrized_function_on_mesh_sides(con
629630
else
630631
libmesh_error_msg ("Unrecognized side_type: " << side_type);
631632
}
633+
libmesh_error_msg_if(counter == 0, "Parametrized function on mesh sides has no values");
632634

633635
std::vector<RBParameters> mus {mu};
634636
side_vectorized_evaluate(mus,
@@ -674,6 +676,7 @@ void RBParametrizedFunction::preevaluate_parametrized_function_on_mesh_nodes(con
674676

675677
counter++;
676678
}
679+
libmesh_error_msg_if(counter == 0, "Parametrized function on mesh nodes has no values");
677680

678681
std::vector<RBParameters> mus {mu};
679682
node_vectorized_evaluate(mus,

0 commit comments

Comments
 (0)