Skip to content

Commit

Permalink
blackboxfunc table: table must have at least two points in each direc…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
baperry2 committed Dec 17, 2024
1 parent ad93707 commit 9bd6bd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Utility/BlackBoxFunction/Table.H
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ struct InitParm<TabulatedFunctionData, BlackBoxFunctionData>
int Ngridtot = 0;
for (int ii = 0; ii < m_h_tf_data.Ndim; ii++) {
Ngridtot += m_h_tf_data.dimLengths[ii];
if (m_h_tf_data.dimLengths[ii] < 2) {
amrex::Abort("TabulatedFunction: Each dimension must have at least two "
"grid points.");
}
}
m_h_tf_data.grids = static_cast<amrex::Real*>(
amrex::The_Pinned_Arena()->alloc(Ngridtot * real_size));
Expand Down

0 comments on commit 9bd6bd7

Please sign in to comment.