Skip to content

Commit

Permalink
nicer kwarg name
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoinemarteau committed Oct 21, 2024
1 parent f4c7e56 commit f1295fd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Visualization/Vtk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ function create_vtk_file(

if num_cells(trian)>0
for (k,v) in celldata
comp_names = _data_component_names(v)
vtk_cell_data(vtkfile, _prepare_data(v), k; component_names=comp_names)
component_names = _data_component_names(v)
vtk_cell_data(vtkfile, _prepare_data(v), k; component_names)
end
for (k,v) in nodaldata
comp_names = _data_component_names(v)
vtk_point_data(vtkfile, _prepare_data(v), k; component_names=comp_names)
component_names = _data_component_names(v)
vtk_point_data(vtkfile, _prepare_data(v), k; component_names)
end
end

Expand All @@ -120,13 +120,13 @@ function create_pvtk_file(

if num_cells(trian) > 0
for (k, v) in celldata
# comp_names are actually always nothing as there are no field in ptvk atm
comp_names = _data_component_names(v)
vtkfile[k, VTKCellData(), component_names=comp_names] = _prepare_data(v)
# component_names are actually always nothing as there are no field in ptvk atm
component_names = _data_component_names(v)
vtkfile[k, VTKCellData(), component_names] = _prepare_data(v)
end
for (k, v) in nodaldata
comp_names = _data_component_names(v)
vtkfile[k, VTKPointData(), component_names=comp_names] = _prepare_data(v)
component_names = _data_component_names(v)
vtkfile[k, VTKPointData(), component_names] = _prepare_data(v)
end
end
return vtkfile
Expand Down

0 comments on commit f1295fd

Please sign in to comment.