Skip to content

Commit

Permalink
use Main prefix explicitly to resolve docbuild issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mberto79 committed Sep 7, 2024
1 parent 39bff14 commit aa0620e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/src/user_guide/2_physics_and_models.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ Following from the idea of using Julia's dynamic features to explore the types a
using XCALibre
# using Pkg; Pkg.add("AbstractTrees") # uncomment this line to install AbstractTrees
using AbstractTrees
import Main.subtypes as subtypes # hide
AbstractTrees.children(d::DataType) = subtypes(d)
# import Main.subtypes as subtypes # hide
AbstractTrees.children(d::DataType) = Main.subtypes(d)
print_tree(AbstractFluid)
# Note: this code snippet will not be shown later for succinctness
Expand Down Expand Up @@ -116,7 +116,7 @@ Below is a representation the `AbstractTurbulenceModel` inheritance tree. It sho
using XCALibre # hide
using AbstractTrees # hide
import Main.subtypes as subtypes # hide
AbstractTrees.children(d::DataType) = subtypes(d) # hide
AbstractTrees.children(d::DataType) = Main.subtypes(d) # hide
print_tree(AbstractTurbulenceModel) # hide
```
### RANS models constructors
Expand Down Expand Up @@ -155,7 +155,7 @@ Currently, XCALibre.jl offers two options to model the energy equation. A tree o
using XCALibre # hide
using AbstractTrees # hide
import Main.subtypes as subtypes # hide
AbstractTrees.children(d::DataType) = subtypes(d) # hide
AbstractTrees.children(d::DataType) = Main.subtypes(d) # hide
print_tree(AbstractEnergyModel) # hide
```

Expand All @@ -179,7 +179,7 @@ The final step to completely capture the physics for the simulation is to define
using XCALibre # hide
using AbstractTrees # hide
import Main.subtypes as subtypes # hide
AbstractTrees.children(d::DataType) = subtypes(d) # hide
AbstractTrees.children(d::DataType) = Main.subtypes(d) # hide
print_tree(AbstractBoundary) # hide
```

Expand Down

0 comments on commit aa0620e

Please sign in to comment.