Skip to content

Commit d254860

Browse files
authored
Merge pull request #699 from gridap/removing_pvtk_grid
Removing pvtk grid
2 parents 300eb12 + 358c72f commit d254860

File tree

4 files changed

+7
-347
lines changed

4 files changed

+7
-347
lines changed

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ LineSearches = "7.0.1"
4343
NLsolve = "4.3.0"
4444
NearestNeighbors = "0.4.8"
4545
QuadGK = "2.3.1, 2.4"
46-
StaticArrays = "0.12.1, 1.0"
47-
WriteVTK = "1.11.0,1.12.0"
4846
SparseMatricesCSR = "0.6.4"
47+
StaticArrays = "0.12.1, 1.0"
48+
WriteVTK = "1.12.0"
4949
julia = "1.3"
5050

5151
[extras]

src/Visualization/Vtk.jl

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
2-
3-
## TODO this needs to be deleted
4-
# once WriteVTK provides the pvtk_grid function
5-
include("pvtk_grid.jl")
6-
7-
81
"""
92
"""
103
function writevtk(args...;kwargs...)
@@ -71,11 +64,13 @@ function create_vtk_file(
7164
end
7265

7366
function create_pvtk_file(
74-
trian::Grid, filebase; pvtkargs, celldata=Dict(), nodaldata=Dict())
67+
trian::Grid, filebase;
68+
part, nparts, ismain=(part==1), celldata=Dict(), nodaldata=Dict())
7569

7670
points = _vtkpoints(trian)
7771
cells = _vtkcells(trian)
78-
vtkfile = TMP.pvtk_grid(filebase, points, cells,pvtkargs=pvtkargs, compress=false)
72+
vtkfile = pvtk_grid(filebase, points, cells, compress=false;
73+
part=part, nparts=nparts, ismain=ismain)
7974

8075
for (k,v) in celldata
8176
vtkfile[k,VTKCellData()] = _prepare_data(v)

src/Visualization/pvtk_grid.jl

-334
This file was deleted.

test/VisualizationTests/VtkTests.jl

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ write_vtk_file(
3030
celldata=["cellid"=>cell_ids,"centers"=>cell_center])
3131

3232
pvtk = Visualization.create_pvtk_file(
33-
trian,f,
34-
pvtkargs = [:part=>1,:nparts=>1],
33+
trian,f; part=1, nparts=1,
3534
nodaldata=["nodeid"=>node_ids],
3635
celldata=["cellid"=>cell_ids,"centers"=>cell_center])
3736
vtk_save(pvtk)

0 commit comments

Comments
 (0)