Skip to content
Snippets Groups Projects
Verified Commit bfb30d94 authored by Dorian Stoll's avatar Dorian Stoll
Browse files

tug: julia: Remove boundary serialization

parent 3da59af5
Branches baseline
No related tags found
No related merge requests found
......@@ -306,36 +306,3 @@ function getBoundarySideValues(
return values
end
# Serializes the boundary conditions into a vector of BoundaryElement objects.
#
# Returns: Vector with BoundaryElement objects.
function serializeBoundary(this::Boundary{T})::AbstractVector{BoundaryElement{T}} where {T}
serialized::Vector{BoundaryElement{T}} = []
for side in keys(this.boundaries)
for index in eachindex(this.boundaries[Integer(side)])
append!(serialized, this.boundaries[Integer(side)][index])
end
end
return serialized
end
# Deserializes the boundary conditions from a vector of BoundaryElement objects.
#
# Arguments:
# serialized: Vector with BoundaryElement objects
function deserializeBoundary!(
this::Boundary{T},
serialized::AbstractVector{BoundaryElement{T}},
) where {T}
index::Int = 0
for side in keys(this.boundaries)
for i in eachindex(this.boundaries[Integer(side)])
this.boundaries[Integer(side)][i] = serialized[index]
index += 1
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment