Skip to content

Commit

Permalink
remove VTKext
Browse files Browse the repository at this point in the history
  • Loading branch information
mbouyges committed Jul 23, 2024
1 parent 760082c commit 17add07
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 50 deletions.
3 changes: 3 additions & 0 deletions ext/HDF5Ext/write.jl
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,9 @@ function create_flow_solutions(
)
end

"""
WARNING : vector variables are not supported for now !!
"""
function create_flow_solution(zone, data, fname, isVertex, projection, append; verbose)
isempty(data) && return

Expand Down
7 changes: 0 additions & 7 deletions ext/VTKExt/VTKExt.jl

This file was deleted.

34 changes: 0 additions & 34 deletions ext/VTKExt/write.jl

This file was deleted.

10 changes: 1 addition & 9 deletions src/writers/vtk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ function write_file(
::Bcube.VTKIoHandler,
basename::String,
mesh::AbstractMesh,
U_export,
data = nothing,
it::Integer = -1,
time::Real = 0.0;
Expand All @@ -522,15 +523,6 @@ function write_file(
_data = Dict(_keys .=> _values)
end

# First, we check that the export space is the same for all variables
# -> a bit ugly, but ok for now
vars = values(_data)
U_export = first(vars)[2]
@assert all(x -> x[2] == U_export, vars) "Export FESpace must be identical for all variables"

# Reshape "data" to remove export space
_data = Dict(keys(_data) .=> first.(values(_data)))

# Write !
write_vtk_lagrange(_basename, _data, mesh, U_export, it, time; collection_append)
end

0 comments on commit 17add07

Please sign in to comment.