If either nx or ny are zero then we cannot setup the transforms so detect this and abort with a helpful message
David Dickinson
Branch: bugfix/add_helpful_warning_message_if_nonlinear_run_with_no_nx_or_ny
Branch: 8.1-RC
Merged
Merged pull request
Merged in bugfix/add_helpful_warning_message_if_nonlinear_run_with_no_nx_or_ny (pull request #557)
This avoids hitting a possible seg-fault/divide by zero.
Â
We could also try to detect this elsewhere by checking if
nonlin
is true andbox
is false, but this is perhaps a helpful second check (e.g. if we wanted to testinit_transforms
directly).