forked from moebiusband/NuSiF-Solver
Merge branch 'main' of git.clustercockpit.org:moebiusband/NuSiF-Solver
This commit is contained in:
@@ -71,6 +71,7 @@ int main(int argc, char** argv)
|
||||
printf("Solution took %.2fs\n", timeStop - timeStart);
|
||||
}
|
||||
|
||||
timeStart = getTimeStamp();
|
||||
#ifdef _VTK_WRITER_MPI
|
||||
VtkOptions opts = { .grid = s.grid, .comm = s.comm };
|
||||
vtkOpen(&opts, s.problem);
|
||||
@@ -111,6 +112,12 @@ int main(int argc, char** argv)
|
||||
}
|
||||
#endif
|
||||
|
||||
timeStop = getTimeStamp();
|
||||
|
||||
if (commIsMaster(&s.comm)) {
|
||||
printf("Result output took %.2fs\n", timeStop - timeStart);
|
||||
}
|
||||
|
||||
commFinalize(&s.comm);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
@@ -91,8 +91,7 @@ void vtkScalar(VtkOptions* o, char* name, double* s)
|
||||
char header[100];
|
||||
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, (int)strlen(header), MPI_CHAR, MPI_STATUS_IGNORE);
|
||||
|
Reference in New Issue
Block a user