@@ -88,19 +88,19 @@ Oceananigans.FieldBoundaryConditions, with boundary conditions
88
88
```
89
89
"""
90
90
struct BoundaryAdjacentMean{NI, BV}
91
- boundary_normal_integral :: NI
91
+ boundary_parallel_integral :: NI
92
92
value :: BV
93
93
94
94
BoundaryAdjacentMean (grid, side;
95
- boundary_normal_integral :: NI = boundary_reduced_field (Val (side), grid),
95
+ boundary_parallel_integral :: NI = boundary_reduced_field (Val (side), grid),
96
96
value:: BV = Ref (zero (grid))) where {NI, BV} =
97
- new {NI, BV} (boundary_normal_integral , value)
97
+ new {NI, BV} (boundary_parallel_integral , value)
98
98
end
99
99
100
100
@inline (bam:: BoundaryAdjacentMean )(args... ) = bam. value[]
101
101
102
102
Adapt. adapt_structure (to, mo:: BoundaryAdjacentMean ) =
103
- BoundaryAdjacentMean (; boundary_normal_integral = nothing , value = adapt (to, mo. value[]))
103
+ BoundaryAdjacentMean (; boundary_parallel_integral = nothing , value = adapt (to, mo. value[]))
104
104
105
105
Base. show (io:: IO , bam:: BoundaryAdjacentMean ) = print (io, summary (bam)* " \n " )
106
106
Base. summary (bam:: BoundaryAdjacentMean ) = " BoundaryAdjacentMean: ($(bam. value[]) )"
@@ -133,14 +133,14 @@ function (bam::BoundaryAdjacentMean)(val_side::Val, u)
133
133
An = boundary_normal_area (val_side, grid)
134
134
135
135
# get the total flux
136
- sum! (bam. boundary_normal_integral , (@at (Face, Center, Center) u) * An)
136
+ sum! (bam. boundary_parallel_integral , (@at (Face, Center, Center) u) * An)
137
137
138
- bam. value[] = CUDA. @allowscalar bam. boundary_normal_integral [iB, jB, kB]
138
+ bam. value[] = CUDA. @allowscalar bam. boundary_parallel_integral [iB, jB, kB]
139
139
140
140
# get the normalizing area
141
- sum! (bam. boundary_normal_integral , An)
141
+ sum! (bam. boundary_parallel_integral , An)
142
142
143
- bam. value[] /= CUDA. @allowscalar bam. boundary_normal_integral [iB, jB, kB]
143
+ bam. value[] /= CUDA. @allowscalar bam. boundary_parallel_integral [iB, jB, kB]
144
144
145
145
return bam. value[]
146
146
end
0 commit comments