Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions include/numerics/analytic_function.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ inline
Output AnalyticFunction<Output>::operator() (const Point & p,
const Real time)
{
libmesh_assert (this->initialized());
libmesh_assert(this->initialized());
libmesh_assert_msg(_number_fptr,
"You must construct AnalyticFunction with a scalar-valued "
"function in order to use this operator() override.");
return (this->_number_fptr(p, time));
}

Expand All @@ -123,7 +126,10 @@ void AnalyticFunction<Output>::operator() (const Point & p,
const Real time,
DenseVector<Output> & output)
{
libmesh_assert (this->initialized());
libmesh_assert(this->initialized());
libmesh_assert_msg(_vector_fptr,
"You must construct AnalyticFunction with a vector-valued "
"function in order to use this operator() override.");
this->_vector_fptr(output, p, time);
return;
}
Expand Down