changeset 435:f23b30400f46 feature/grids

Merge default into feature/grid
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 21 Feb 2017 13:16:56 +0100
parents eef74cd9b49c (current diff) 0bc37a25ed88 (diff)
children b0361f203492
files
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/+sbp/+implementations/d1_gauss_4.m	Thu Feb 09 08:37:55 2017 +0100
+++ b/+sbp/+implementations/d1_gauss_4.m	Tue Feb 21 13:16:56 2017 +0100
@@ -1,10 +1,7 @@
 function [D1,H,x,h,e_l,e_r] = d1_gauss_4(L)
 
 % L: Domain length
-% N: Number of grid points
-if(nargin < 2)
-    L = 1;
-end
+default_arg('L',1);
 
 N = 4;