Mercurial > repos > public > sbplib_julia
comparison src/Grids/curvilinear_grid.jl @ 1495:64b58740e029 feature/grids/curvilinear
Fix indexing in boundary_grid
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 01 Dec 2023 12:23:59 +0100 |
parents | 58b8da9c7e56 |
children | 553111a15506 |
comparison
equal
deleted
inserted
replaced
1494:495f7f201d54 | 1495:64b58740e029 |
---|---|
31 | 31 |
32 function boundary_grid(g::CurvilinearGrid, id::TensorGridBoundary) | 32 function boundary_grid(g::CurvilinearGrid, id::TensorGridBoundary) |
33 b_indices = boundary_indices(g.logicalgrid, id) | 33 b_indices = boundary_indices(g.logicalgrid, id) |
34 return CurvilinearGrid( | 34 return CurvilinearGrid( |
35 boundary_grid(g.logicalgrid, id), | 35 boundary_grid(g.logicalgrid, id), |
36 g.physicalcoordinates[b_indices], | 36 g.physicalcoordinates[b_indices...], |
37 g.jacobian[b_indices], | 37 g.jacobian[b_indices...], |
38 ) | 38 ) |
39 end | 39 end |
40 | 40 |
41 | 41 |
42 | 42 |