Skip to content

Commit

Permalink
Progress - this fixed last issues by qualifying as Main.subtypes all …
Browse files Browse the repository at this point in the history
…entries
  • Loading branch information
mberto79 committed Sep 7, 2024
1 parent 4ae7d28 commit b63e3e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/src/VV/2d-constant-temperature-flat-plate.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ solvers = (
)
)
runtime = set_runtime(iterations=500, write_interval=500, time_step=1)
runtime = set_runtime(iterations=1000, write_interval=1000, time_step=1)
hardware = set_hardware(backend=CPU(), workgroup=4)
Expand Down
6 changes: 3 additions & 3 deletions docs/src/user_guide/2_physics_and_models.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ Earlier in this section, the dynamic nature of Julia was mentioned in the contex
```@repl
using XCALibre
# import Main.subtypes as subtypes # hide
using InteractiveUtils # hide
subtypes(AbstractTimeModel)
using InteractiveUtils
Main.subtypes(AbstractTimeModel)
```

From the output it can be seen that there are two time models in XCALibre.jl for `Steady` or `Transient` simulations. These are singleton types and contain (at present) not internal fields or data. They are largely used by XCALibre.jl to dispatch either steady or transient solvers. We starting to get a picture of how the `Physics` object is constructed. For example, to specify a Steady simulation
Expand All @@ -75,10 +75,10 @@ Following from the idea of using Julia's dynamic features to explore the types a
begin
# Note: this code snippet will not be shown later for succinctness
using XCALibre
using InteractiveUtils # Load from standard library
# using Pkg; Pkg.add("AbstractTrees") # run to install AbstractTrees
using AbstractTrees
# import Main.subtypes as subtypes # hide
using InteractiveUtils # hide
AbstractTrees.children(d::DataType) = Main.subtypes(d)
print_tree(AbstractFluid)
end
Expand Down

0 comments on commit b63e3e4

Please sign in to comment.