Skip to content

Commit

Permalink
Merge pull request #124 from GalerkinToolkit/more_abstract_types
Browse files Browse the repository at this point in the history
Subtyping more structs with AbstractType
  • Loading branch information
fverdugo authored Oct 22, 2024
2 parents 0108389 + fefd870 commit ba6a4f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/domain.jl
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function index(;
)
end

struct Index{A,B,D,E,F,G,H}
struct Index{A,B,D,E,F,G,H} <: AbstractType
face::A
local_face::B
face_around::D
Expand Down Expand Up @@ -1319,7 +1319,7 @@ function piecewiese_field(fields::AbstractQuantity...)
PiecewiseField(fields)
end

struct PiecewiseField{A}
struct PiecewiseField{A} <: AbstractType
fields::A
end

Expand All @@ -1332,7 +1332,7 @@ function piecewiese_domain(domains::AbstractDomain...)
PiecewiseDomain(domains)
end

struct PiecewiseDomain{A}
struct PiecewiseDomain{A} <: AbstractType
domains::A
end

Expand Down
4 changes: 2 additions & 2 deletions src/visualization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ end

# VTK

struct VTKPlot{A,B}
struct VTKPlot{A,B} <: AbstractType
plot::A
vtk::B
end
Expand Down Expand Up @@ -468,4 +468,4 @@ function makie3d1d! end
# end
# end
# end
#end
#end

0 comments on commit ba6a4f9

Please sign in to comment.