File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2424
2525int feenox_mesh_write_header_vtu (mesh_t * mesh , FILE * fp ) {
2626 fprintf (fp , "<?xml version=\"1.0\"?>\n" );
27- fprintf (fp , "<VTKFile type=\"UnstructuredGrid\" version=\"1.0\" byte_order=\"LittleEndian\" >\n" );
27+ fprintf (fp , "<VTKFile type=\"UnstructuredGrid\" version=\"1.0\">\n" );
2828 fprintf (fp , " <UnstructuredGrid>\n" );
2929 if (mesh -> n_cells == 0 ) {
3030 feenox_call (feenox_mesh_element2cell (mesh ));
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ int feenox_instruction_mesh_write(void *arg) {
2828 }
2929
3030 mesh_write_t * mesh_write = (mesh_write_t * )arg ;
31+
32+ // re-initialize flags
33+ mesh_write -> point_init = 0 ;
34+ mesh_write -> cell_init = 0 ;
3135
3236 // TODO: in parallel runs only print from first processor
3337 if (feenox .mpi_rank != 0 ) {
Original file line number Diff line number Diff line change @@ -2654,8 +2654,8 @@ int feenox_parse_write_results(void) {
26542654 feenox_check_alloc (strcat (file_path , feenox .argv [i ]));
26552655 }
26562656 feenox_check_alloc (strcat (file_path , "." ));
2657- feenox_check_alloc (strcat (file_path , (mesh_write -> post_format == post_format_vtu ) ? "vtu " :
2658- ((mesh_write -> post_format == post_format_vtk ) ? "vtk" : "msh " )));
2657+ feenox_check_alloc (strcat (file_path , (mesh_write -> post_format == post_format_gmsh ) ? "msh " :
2658+ ((mesh_write -> post_format == post_format_vtk ) ? "vtk" : "vtu " )));
26592659
26602660 feenox_call (feenox_define_file (file_path , file_path , 0 , "w" ));
26612661 if ((mesh_write -> file = feenox_get_file_ptr (file_path )) == NULL ) {
You can’t perform that action at this time.
0 commit comments