@@ -189,7 +189,8 @@ pub fn write_vtk<P: AsRef<Path>>(
189189) -> Result < ( ) , anyhow:: Error > {
190190 profile ! ( "write_vtk" ) ;
191191 let vtk_file = Vtk {
192- version : Version :: new ( ( 4 , 2 ) ) ,
192+ //version: Version::new((4, 2)),
193+ version : Version :: new_legacy ( 4 , 2 ) ,
193194 title : title. to_string ( ) ,
194195 file_path : None ,
195196 byte_order : ByteOrder :: BigEndian ,
@@ -413,14 +414,20 @@ pub mod test {
413414 }
414415
415416 #[ test]
417+ #[ ignore = "Disabled due to vtkio/XML parser not supporting raw embedded binary data (https://github.com/elrnv/vtkio/issues/27)" ]
416418 fn test_cube_8_particles_from_vtu ( ) -> Result < ( ) , anyhow:: Error > {
417419 test_load_num_particles ( "../data/cube_8_particles.vtu" , 8 )
418420 }
419421
420422 #[ test]
421- #[ ignore = "Disabled due to bug in vtkio (https://github.com/elrnv/vtkio/issues/21#issuecomment-1513195315)" ]
423+ // #[ignore = "Disabled due to bug in vtkio (https://github.com/elrnv/vtkio/issues/21#issuecomment-1513195315)"]
422424 fn test_cube_8_particles_from_vtk ( ) -> Result < ( ) , anyhow:: Error > {
423- test_load_num_particles ( "../data/cube_8_particles.vtk" , 250 )
425+ test_load_num_particles ( "../data/cube_8_particles.vtk" , 8 )
426+ }
427+
428+ #[ test]
429+ fn test_double_dam_break_4732_particles_from_vtk ( ) -> Result < ( ) , anyhow:: Error > {
430+ test_load_num_particles ( "../data/double_dam_break_frame_01_4732_particles.vtk" , 4732 )
424431 }
425432
426433 #[ test]
@@ -429,7 +436,7 @@ pub mod test {
429436 }
430437
431438 #[ test]
432- #[ ignore = "Disabled due to bug in vtkio/XML parser (https://github.com/elrnv/vtkio/issues/27)" ]
439+ #[ ignore = "Disabled due to vtkio/XML parser not supporting raw embedded binary data (https://github.com/elrnv/vtkio/issues/27)" ]
433440 fn test_fluid_250_particles_from_vtu ( ) -> Result < ( ) , anyhow:: Error > {
434441 test_load_num_particles ( "../data/fluid_250_particles.vtu" , 250 )
435442 }
0 commit comments