Adds a uniform constant c to one x-normal face plane of a DIR_X
field, in place. Used to enforce exact outlet mass conservation:
after the convective outflow update, the outlet-plane mean is
shifted uniformly so that it matches the prescribed inlet mean
(mirrors Incompact3d's bxxn = bxxn - ut + ut1).
at_end = .true. -> the x = nx plane (outlet)
at_end = .false. -> the x = 1 plane (inlet)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(base_backend_t) | :: | self | ||||
| class(field_t), | intent(inout) | :: | f | |||
| real(kind=dp), | intent(in) | :: | c | |||
| logical, | intent(in) | :: | at_end |