diff +sbp/+implementations/d2_variable_periodic_2.m @ 686:5ccf6aaf6d6b feature/poroelastic

Add D2VariablePeriodic orders 4 and 6.
author Martin Almquist <malmquist@stanford.edu>
date Thu, 08 Feb 2018 16:44:46 -0800
parents 7368affc8f78
children bbf303c1f0cf
line wrap: on
line diff
--- a/+sbp/+implementations/d2_variable_periodic_2.m	Thu Feb 08 16:43:43 2018 -0800
+++ b/+sbp/+implementations/d2_variable_periodic_2.m	Thu Feb 08 16:44:46 2018 -0800
@@ -1,9 +1,8 @@
 function [H, HI, D1, D2, e_l, e_r, d1_l, d1_r] = d2_variable_periodic_2(m,h)
     % m = number of unique grid points, i.e. h = L/m;
 
-    BP = 1;
-    if(m<2*BP)
-        error(['Operator requires at least ' num2str(2*BP) ' grid points']);
+    if(m<3)
+        error(['Operator requires at least ' num2str(3) ' grid points']);
     end
 
     % Norm