comparison +scheme/Elastic2dVariableAnisotropic.m @ 1338:da61892884a4 feature/D2_boundary_opt

Add support for using periodic grids.
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Fri, 13 May 2022 13:29:05 +0200
parents 8d9fc7981796
children
comparison
equal deleted inserted replaced
1337:bf2554f1825d 1338:da61892884a4
96 96
97 m = g.size(); 97 m = g.size();
98 m_tot = g.N(); 98 m_tot = g.N();
99 lim = g.lim; 99 lim = g.lim;
100 if isempty(lim) 100 if isempty(lim)
101 % TODO: Work for periodic grids (last gp not included)!
101 x = g.x; 102 x = g.x;
102 lim = cell(length(x),1); 103 lim = cell(length(x),1);
103 for i = 1:length(x) 104 for i = 1:length(x)
104 lim{i} = {min(x{i}), max(x{i})}; 105 lim{i} = {min(x{i}), max(x{i})};
105 end 106 end