Skip to content

Commit 3f212a8

Browse files
Add error handling
1 parent 55a6f25 commit 3f212a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/fstats_experimental_design.f90

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,10 @@ function doe_evaluate_model_1(nway, beta, x, map, err) result(rst)
486486

487487
! Input Checking
488488
if (nway < 1 .or. nway > 3) then
489-
! TO DO: Error - must be at least 1, but not more than 3
489+
call errmgr%report_error("doe_evaluate_model_1", &
490+
"The number of interaction levels must be between one and three.", &
491+
FS_INVALID_ARGUMENT_ERROR)
492+
return
490493
end if
491494

492495
nparam = 1

0 commit comments

Comments
 (0)