Skip to content

Commit eb420a7

Browse files
committed
fixes for vtu
1 parent 7dd0aec commit eb420a7

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/mesh/vtu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
int 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));

src/mesh/write.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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) {

src/parser/parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)