diff +grid/boundaryoptimized.m @ 1296:2853b655c172 feature/boundary_optimized_grids

Fix typos in comments
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Tue, 07 Jul 2020 16:00:24 +0200
parents 2fd2e2337b77
children
line wrap: on
line diff
--- a/+grid/boundaryoptimized.m	Wed Jul 01 17:34:40 2020 +0200
+++ b/+grid/boundaryoptimized.m	Tue Jul 07 16:00:24 2020 +0200
@@ -1,14 +1,14 @@
-% Creates a cartesian grid of dimension length(m)
-% over the doman xlim, ylim, ...
+% Creates a Cartesian grid of dimension length(m)
+% over the domain xlim, ylim, ...
 % The grid is non-equidistant in the boundary regions,
-% with node node placement based of boundary-optimized SBP operators.
+% with node placement based on boundary-optimized SBP operators.
 % Examples:
 %   g = grid.boundaryoptimized([mx, my], xlim, ylim, order, opt)
 %   g = grid.boundaryoptimized([10, 15], {0,1}, {0,2}, 4) - defaults to 'accurate' stencils
 %   g = grid.boundaryoptimized([10, 15], {0,1}, {0,2}, 4, 'minimal')
 function g = boundaryoptimized(m, varargin)
     n = length(m);
-    
+
     % Check that parameters matches dimensions
     matchingParams = false;
     if length(varargin) == n+1 % Minimal number of arguments
@@ -18,7 +18,7 @@
             matchingParams = iscell([varargin{1:n}]) && ...
                              isfloat([varargin{n+1}]) && ...
                              ischar([varargin{n+2}]);
-    end    
+    end
     assert(matchingParams,'grid:boundaryoptimized:NonMatchingParameters','The number of parameters per dimensions do not match.');
 
     % Check that stencil options are passed correctly (if supplied)
@@ -29,7 +29,7 @@
     else %If not passed, populate varargin with default option 'accurate'
         varargin(n+2) = {'accurate'};
     end
-    
+
     % Specify generating function
     switch varargin{n+2}
         case {'Accurate','accurate','A'}