Update VTK output format

This commit is contained in:
Jan Eitzinger 2024-01-15 06:26:40 +01:00
parent d53da89b95
commit f36089a56c
2 changed files with 2 additions and 4 deletions

View File

@ -88,8 +88,7 @@ void vtkScalar(VtkOptions* o, char* name, double* s)
char* header = (char*)malloc(MAX_HEADER);
char* cursor = header;
cursor += sprintf(cursor, "SCALARS %s double 1\n", name);
cursor += sprintf(cursor, "LOOKUP_TABLE default\n");
cursor += sprintf(cursor, "SCALARS %s double\n", name);
if (commIsMaster(&o->comm)) {
MPI_File_write(o->fh, header, strlen(header), MPI_CHAR, MPI_STATUS_IGNORE);

View File

@ -69,8 +69,7 @@ void vtkScalar(VtkOptions* o, char* name, double* s)
printf("vtkWriter not initialize! Call vtkOpen first!\n");
exit(EXIT_FAILURE);
}
fprintf(o->fh, "SCALARS %s float 1\n", name);
fprintf(o->fh, "LOOKUP_TABLE default\n");
fprintf(o->fh, "SCALARS %s float\n", name);
for (int k = 0; k < kmax; k++) {
for (int j = 0; j < jmax; j++) {