Commit c333708
authored
Bounded sampling (#4195)
The `get_line_data` and `get_slice_data` routines do not currently allow
for a natural way to bound the returned MultiFab. In the former case,
the line length is dictated by the bottom and top of the boxarray at
that level. In the latter case, the plane is dictated by the problem
domain at that level.
This PR adds an optional `Box` argument to the `get_line_data` call and
an optional `RealBox` argument to the `get_slice_data` call. These
optional arguments bound the returned MuliFab. This feature has
application in the ERF code in [PR
1897](erf-model/ERF#1897) where it is of great
value to sample velocities in planes/lines just upstream of a wind
turbine. Since the wind turbine is small in relation to the problem
domain, the bounding feature ensures the returned data is actually what
the user wants.1 parent b00c828 commit c333708
2 files changed
+41
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | | - | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
996 | 997 | | |
997 | 998 | | |
998 | 999 | | |
999 | | - | |
| 1000 | + | |
1000 | 1001 | | |
| 1002 | + | |
| 1003 | + | |
1001 | 1004 | | |
1002 | 1005 | | |
1003 | 1006 | | |
1004 | 1007 | | |
1005 | 1008 | | |
1006 | 1009 | | |
1007 | 1010 | | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
1019 | 1034 | | |
1020 | 1035 | | |
1021 | 1036 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
550 | 549 | | |
551 | 550 | | |
552 | 551 | | |
553 | | - | |
| 552 | + | |
554 | 553 | | |
555 | 554 | | |
556 | 555 | | |
| |||
559 | 558 | | |
560 | 559 | | |
561 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
562 | 567 | | |
563 | 568 | | |
564 | | - | |
| 569 | + | |
565 | 570 | | |
566 | 571 | | |
567 | 572 | | |
| |||
0 commit comments