• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Atmospheric-Dynamics-GUF / PinCFlow.jl / 18561934460

16 Oct 2025 12:54PM UTC coverage: 65.961% (-0.03%) from 65.988%
18561934460

push

github

web-flow
Removed `test_case` and made several dispatches more precise (#104)

* Removed `test_case`.

* Made several dispatches more precise.

* Removed `examples.md` (was comitted by accident).

* Renamed `AbstractVariable` to `AbstractPredictand` and removed some of its subtypes (these are direct subtypes of `Any` now).

* Some simplifications and additional comments in initialize_rays!.

* Corrected a few typos.

* Moved the namelist parameter "model" to AtmosphereNamelist and removed SettingNamelist. Reformatted the code.

104 of 119 new or added lines in 44 files covered. (87.39%)

4 existing lines in 4 files now uncovered.

4951 of 7506 relevant lines covered (65.96%)

1423740.77 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/src/Types/TracerTypes/TracerFluxes.jl
1
"""
2
```julia
3
TracerFluxes{A <: AbstractArray{<:AbstractFloat, 4}}
4
```
5

6
Arrays for fluxes of tracers.
7

8
The first three dimensions represent physical space and the fourth dimension represents the flux direction.
9

10
```julia
11
TracerFluxes(namelists::Namelists, domain::Domain)::TracerFluxes
12
```
13

14
Construct a `TracerFluxes` instance with dimensions depending on the general tracer-transport configuration, by dispatching to the appropriate method.
15

16
```julia
17
TracerFluxes(domain::Domain, tracer_setup::NoTracer)::TracerFluxes
18
```
19

20
Construct a `TracerFluxes` instance with zero-size arrays for configurations without tracer transport.
21

22
```julia
23
TracerFluxes(domain::Domain, tracer_setup::TracerOn)::TracerFluxes
24
```
25

26
Construct a `TracerFluxes` instance with zero-initialized arrays.
27

28
# Fields
29

30
  - `phichi::A`: Fluxes of a non-dimensional tracer.
31

32
# Arguments
33

34
  - `namelists`: Namelists with all model parameters.
35

36
  - `domain`: Collection of domain-decomposition and MPI-communication parameters.
37

38
  - `tracer_setup`: General tracer-transport configuration.
39
"""
40
struct TracerFluxes{A <: AbstractArray{<:AbstractFloat, 4}}
41
    phichi::A
6✔
42
end
43

44
function TracerFluxes(namelists::Namelists, domain::Domain)::TracerFluxes
6✔
45
    (; tracer_setup) = namelists.tracer
6✔
46

47
    return TracerFluxes(domain, tracer_setup)
6✔
48
end
49

50
function TracerFluxes(domain::Domain, tracer_setup::NoTracer)::TracerFluxes
6✔
51
    return TracerFluxes(
6✔
52
        [zeros(0, 0, 0, 0) for field in fieldnames(TracerFluxes)]...,
53
    )
54
end
55

NEW
56
function TracerFluxes(domain::Domain, tracer_setup::TracerOn)::TracerFluxes
×
UNCOV
57
    (; nxx, nyy, nzz) = domain
×
58

59
    return TracerFluxes(
×
60
        [zeros(nxx, nyy, nzz, 3) for field in fieldnames(TracerFluxes)]...,
61
    )
62
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc