Skip to content

Commit

Permalink
#72 #92 Added an error message when ln is set to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mmodat committed Jul 24, 2023
1 parent cd09926 commit a10fe1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion niftyreg_build_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
289
290
5 changes: 5 additions & 0 deletions reg-lib/_reg_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,12 @@ void reg_base<T>::SetWarpedPaddingValue(float warpedPaddingValueIn) {
/* *************************************************************** */
template<class T>
void reg_base<T>::SetLevelNumber(unsigned levelNumberIn) {
if(levelNumberIn>0)
levelNumber = levelNumberIn;
else{
reg_print_msg_error("The number of level is expected to be strictly positive. Exit");
reg_exit();
}
#ifndef NDEBUG
reg_print_fct_debug("reg_base<T>::SetLevelNumber");
#endif
Expand Down

0 comments on commit a10fe1d

Please sign in to comment.