changeset 782:3c3280ebabb3 feature/interpolation

Add assertions on string input accOp
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 24 Jul 2018 20:16:00 -0700
parents 69ab0e69f972
children 7b9f54e40dd3
files +sbp/InterpAWW.m
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r 69ab0e69f972 -r 3c3280ebabb3 +sbp/InterpAWW.m
--- a/+sbp/InterpAWW.m	Tue Jul 24 20:14:29 2018 -0700
+++ b/+sbp/InterpAWW.m	Tue Jul 24 20:16:00 2018 -0700
@@ -23,6 +23,7 @@
         % accOp : String, 'C2F' or 'F2C'. Specifies which of the operators
         % should have higher accuracy.
         function obj = InterpAWW(m_C,m_F,order_C,order_F,accOp)
+            assertIsMember(accOp, {'C2F','F2C'});
 
             ratio = (m_F-1)/(m_C-1);
             h_C = 1;