comparison +scheme/LaplaceCurvilinear.m @ 1127:0aed89043ad6 feature/laplace_curvilinear_test

In LaplaceCurvilinear, use grid spacings from 1d opSets instead of using grid.scaling()
author Martin Almquist <malmquist@stanford.edu>
date Wed, 15 May 2019 16:55:02 -0700
parents 0e5dc5dfa559
children 7259b3f3e227
comparison
equal deleted inserted replaced
1115:0e5dc5dfa559 1127:0aed89043ad6
78 m = g.size(); 78 m = g.size();
79 m_u = m(1); 79 m_u = m(1);
80 m_v = m(2); 80 m_v = m(2);
81 m_tot = g.N(); 81 m_tot = g.N();
82 82
83 h = g.scaling();
84 h_u = h(1);
85 h_v = h(2);
86
87
88 % 1D operators 83 % 1D operators
89 ops_u = opSet(m_u, {0, 1}, order); 84 ops_u = opSet(m_u, {0, 1}, order);
90 ops_v = opSet(m_v, {0, 1}, order); 85 ops_v = opSet(m_v, {0, 1}, order);
86
87 h_u = ops_u.h;
88 h_v = ops_v.h;
91 89
92 I_u = speye(m_u); 90 I_u = speye(m_u);
93 I_v = speye(m_v); 91 I_v = speye(m_v);
94 92
95 D1_u = ops_u.D1; 93 D1_u = ops_u.D1;