Home
last modified time | relevance | path

Searched full:viewer (Results 1 – 18 of 18) sorted by relevance

/honee/src/
H A Dhonee-file.c36 static PetscErrorCode BinaryReadIntoInt(PetscViewer viewer, PetscInt *out, PetscDataType file_type)… in BinaryReadIntoInt() argument
41 PetscCall(PetscViewerBinaryRead(viewer, &val, 1, NULL, PETSC_INT32)); in BinaryReadIntoInt()
45 PetscCall(PetscViewerBinaryRead(viewer, &val, 1, NULL, PETSC_INT64)); in BinaryReadIntoInt()
48 PetscCall(PetscViewerBinaryRead(viewer, out, 1, NULL, PETSC_INT)); in BinaryReadIntoInt()
63 PetscViewer viewer; in HoneeLoadInitialCondition() local
72 PetscCall(PetscViewerBinaryOpen(comm, filename, FILE_MODE_READ, &viewer)); in HoneeLoadInitialCondition()
73 PetscCall(HoneeLoadBinaryVec(viewer, Q, solution_time, solution_steps)); in HoneeLoadInitialCondition()
74 PetscCall(PetscViewerDestroy(&viewer)); in HoneeLoadInitialCondition()
82 PetscCall(PetscViewerCGNSOpen(comm, filename, FILE_MODE_READ, &viewer)); in HoneeLoadInitialCondition()
86 PetscCall(VecLoad(V_output, viewer)); in HoneeLoadInitialCondition()
[all …]
H A Dmonitor_totalkineticenergy.c62 PetscCall(PetscObjectTypeCompare((PetscObject)ctx->viewer, PETSCVIEWERASCII, &is_ascii)); in SetupMontiorTotalKineticEnergy()
170 …PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# honee_version: %d.%d.%d\n", major, minor, patch)); in TSMonitor_TotalKineticEnergy()
172 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# honee_git_commit: %s\n", buf_const)); in TSMonitor_TotalKineticEnergy()
174 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# petsc_version: %s\n", buf)); in TSMonitor_TotalKineticEnergy()
176 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# petsc_directory: %s\n", buf_const)); in TSMonitor_TotalKineticEnergy()
178 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# petsc_arch: %s\n", buf)); in TSMonitor_TotalKineticEnergy()
180 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# date: %s\n", buf)); in TSMonitor_TotalKineticEnergy()
182 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# date_timezone: %s\n", buf)); in TSMonitor_TotalKineticEnergy()
184 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# username: %s\n", buf)); in TSMonitor_TotalKineticEnergy()
186 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# hostname: %s\n", buf)); in TSMonitor_TotalKineticEnergy()
[all …]
H A Dbc_definition.c81 @param[in] viewer Optional `PetscViewer` context or `NULL`
85 PetscErrorCode BCDefinitionView(BCDefinition bc_def, PetscViewer viewer) { in BCDefinitionView() argument
92 PetscValidHeaderSpecific(viewer, PETSC_VIEWER_CLASSID, 2); in BCDefinitionView()
93 if (!viewer) PetscCall(PetscViewerASCIIGetStdout(PetscObjectComm((PetscObject)bc_def), &viewer)); in BCDefinitionView()
95 PetscCall(PetscViewerGetFormat(viewer, &format)); in BCDefinitionView()
99 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERASCII, &is_ascii)); in BCDefinitionView()
103 PetscCall(PetscObjectPrintClassNamePrefixType((PetscObject)bc_def, viewer)); in BCDefinitionView()
104 PetscCall(PetscViewerASCIIPushTab(viewer)); // BCDefinition in BCDefinitionView()
106 if (is_detailed) PetscCall(DMView(bc_def->dm, viewer)); in BCDefinitionView()
107 PetscCall(PetscViewerASCIIPrintf(viewer, "DM Field: %" PetscInt_FMT "\n", bc_def->dm_field)); in BCDefinitionView()
[all …]
H A Dmonitor_cfl.c41 PetscCall(PetscObjectTypeCompare((PetscObject)ctx->viewer, PETSCVIEWERASCII, &is_ascii)); in SetupMontiorCfl()
171 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# petsc_version: %s\n", buf)); in TSMonitor_Cfl()
173 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# petsc_directory: %s\n", buf_const)); in TSMonitor_Cfl()
175 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# petsc_arch: %s\n", buf)); in TSMonitor_Cfl()
177 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# date: %s\n", buf)); in TSMonitor_Cfl()
179 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# date_timezone: %s\n", buf)); in TSMonitor_Cfl()
181 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# username: %s\n", buf)); in TSMonitor_Cfl()
183 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# hostname: %s\n", buf)); in TSMonitor_Cfl()
185 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# working_directory: %s\n", buf)); in TSMonitor_Cfl()
187 PetscCall(PetscViewerFileGetName(ctx->viewer, &buf_const)); in TSMonitor_Cfl()
[all …]
H A Dhonee-ksp.c13 PetscViewer viewer = PETSC_VIEWER_STDOUT_(PetscObjectComm((PetscObject)ksp)); in KSPPostSolve_Honee() local
20 PetscCall(PetscViewerASCIIAddTab(viewer, tab_level + 1)); in KSPPostSolve_Honee()
21 …PetscCall(PetscViewerASCIIPrintf(viewer, "KSP Residual Summary: R_0 %.4e R_last %.4e R_last/R_0 %.… in KSPPostSolve_Honee()
23 PetscCall(PetscViewerASCIISubtractTab(viewer, tab_level + 1)); in KSPPostSolve_Honee()
H A Dsetupts.c198 PetscViewer viewer; in WriteOutput() local
211 …etscCall(PetscViewerVTKOpen(PetscObjectComm((PetscObject)Q), file_path, FILE_MODE_WRITE, &viewer)); in WriteOutput()
212 PetscCall(VecView(Q_loc, viewer)); in WriteOutput()
213 PetscCall(PetscViewerDestroy(&viewer)); in WriteOutput()
245 PetscCall(PetscViewerBinaryOpen(honee->comm, file_path, FILE_MODE_WRITE, &viewer)); in WriteOutput()
248 PetscCall(HoneeWriteBinaryVec(viewer, Q, time, step_no)); in WriteOutput()
249 PetscCall(PetscViewerDestroy(&viewer)); in WriteOutput()
259 PetscViewer viewer = honee->app_ctx->wall_forces.viewer; in TSMonitor_WallForce() local
265 if (!viewer) PetscFunctionReturn(PETSC_SUCCESS); in TSMonitor_WallForce()
271 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERASCII, &is_ascii)); in TSMonitor_WallForce()
[all …]
H A Dmat-ceed.c253 @param[in] viewer The visualization context
257 static PetscErrorCode MatView_Ceed(Mat mat_ceed, PetscViewer viewer) { in MatView_Ceed() argument
264 PetscValidHeaderSpecific(viewer, PETSC_VIEWER_CLASSID, 2); in MatView_Ceed()
266 …if (!viewer) PetscCall(PetscViewerASCIIGetStdout(PetscObjectComm((PetscObject)mat_ceed), &viewer)); in MatView_Ceed()
268 PetscCall(PetscViewerGetFormat(viewer, &format)); in MatView_Ceed()
275 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERASCII, &is_ascii)); in MatView_Ceed()
283 PetscCall(PetscViewerASCIIPrintf(viewer, "MatCEED:\n")); in MatView_Ceed()
284 PetscCall(PetscViewerASCIIPushTab(viewer)); // MatCEED in MatView_Ceed()
285 PetscCall(PetscViewerASCIIPrintf(viewer, "Default COO MatType: %s\n", ctx->coo_mat_type)); in MatView_Ceed()
287 …PetscCall(PetscViewerASCIIPrintf(viewer, "CeedOperator Apply %s:\n", is_detailed ? rank_string : "… in MatView_Ceed()
[all …]
H A Dmisc.c96 PetscViewer viewer; in RegressionTest() local
104 PetscCall(PetscViewerBinaryOpen(comm, app_ctx->test_file_path, FILE_MODE_READ, &viewer)); in RegressionTest()
105 PetscCall(HoneeLoadBinaryVec(viewer, Qref, NULL, NULL)); in RegressionTest()
119 PetscCall(PetscViewerDestroy(&viewer)); in RegressionTest()
H A Dcloptions.c185 …ionsViewer("-ts_monitor_wall_force", "Viewer for force on each (no-slip) wall", NULL, &app_ctx->wa… in ProcessCommandLineOptions()
H A Dhonee.c104 PetscCall(PetscViewerDestroy(&app_ctx->wall_forces.viewer)); in HoneeDestroy()
/honee/src/spanstats/
H A Dcflpe.c156 PetscCall(PetscObjectTypeCompare((PetscObject)ctx->viewer, PETSCVIEWERASCII, &is_ascii)); in SpanwiseStatisticsSetup_CflPe()
213 PetscCall(PetscViewerPushFormat(ctx->viewer, ctx->format)); in TSMonitor_SpanwiseStatisticsCflPe()
214 PetscCall(VecView(stats, ctx->viewer)); in TSMonitor_SpanwiseStatisticsCflPe()
215 PetscCall(PetscViewerPopFormat(ctx->viewer)); in TSMonitor_SpanwiseStatisticsCflPe()
218 PetscViewer viewer = PETSC_VIEWER_STDOUT_(PetscObjectComm((PetscObject)ts)); in TSMonitor_SpanwiseStatisticsCflPe() local
222 PetscCall(PetscViewerFileGetName(ctx->viewer, &filename)); in TSMonitor_SpanwiseStatisticsCflPe()
224 PetscCall(PetscViewerASCIIAddTab(viewer, tab_level + 1)); in TSMonitor_SpanwiseStatisticsCflPe()
227viewer, "Spanwise cflpe statistics written to %s for time span (%0.12e,%0.12e] and step span [%" P… in TSMonitor_SpanwiseStatisticsCflPe()
231viewer, "Spanwise statistics (%s) file written for time span (%0.12e,%0.12e] and step span [%" Pet… in TSMonitor_SpanwiseStatisticsCflPe()
234 PetscCall(PetscViewerASCIISubtractTab(viewer, tab_level + 1)); in TSMonitor_SpanwiseStatisticsCflPe()
H A Dturbulence.c158 PetscCall(PetscObjectTypeCompare((PetscObject)ctx->viewer, PETSCVIEWERASCII, &is_ascii)); in SpanwiseStatisticsSetup_Turbulence()
232 PetscCall(PetscViewerPushFormat(ctx->viewer, ctx->format)); in TSMonitor_SpanwiseStatisticsTurbulence()
233 PetscCall(VecView(stats, ctx->viewer)); in TSMonitor_SpanwiseStatisticsTurbulence()
234 PetscCall(PetscViewerPopFormat(ctx->viewer)); in TSMonitor_SpanwiseStatisticsTurbulence()
237 PetscViewer viewer = PETSC_VIEWER_STDOUT_(PetscObjectComm((PetscObject)ts)); in TSMonitor_SpanwiseStatisticsTurbulence() local
241 PetscCall(PetscViewerFileGetName(ctx->viewer, &filename)); in TSMonitor_SpanwiseStatisticsTurbulence()
243 PetscCall(PetscViewerASCIIAddTab(viewer, tab_level + 1)); in TSMonitor_SpanwiseStatisticsTurbulence()
245 PetscCall(PetscViewerASCIIPrintf(viewer, in TSMonitor_SpanwiseStatisticsTurbulence()
252viewer, "Spanwise statistics (%s) file written for time span (%0.12e,%0.12e] and step span [%" Pet… in TSMonitor_SpanwiseStatisticsTurbulence()
255 PetscCall(PetscViewerASCIISubtractTab(viewer, tab_level + 1)); in TSMonitor_SpanwiseStatisticsTurbulence()
H A Dspanstats.c389 PetscCall(PetscViewerSetOptionsPrefix(ctx->viewer, spanstats->prefix)); in SpanwiseStatisticsSetupFinalize()
390 PetscCall(PetscViewerSetFromOptions(ctx->viewer)); in SpanwiseStatisticsSetupFinalize()
/honee/include/
H A Dhonee-file.h16 PetscErrorCode HoneeLoadBinaryVec(PetscViewer viewer, Vec Q, PetscReal *time, PetscInt *step_number…
17 PetscErrorCode HoneeWriteBinaryVec(PetscViewer viewer, Vec Q, PetscReal time, PetscInt step_number);
H A Dbc_definition.h57 PetscErrorCode BCDefinitionView(BCDefinition bc_def, PetscViewer viewer);
H A Dnavierstokes.h106 PetscViewer viewer; member
/honee/doc/
H A Druntime_options.md35 …- Viewer for the force on each no-slip wall, e.g., `ascii:force.csv:ascii_csv` to write a CSV file.
39 …- Viewer for the total kinetic energy in the domain and other terms, e.g., `ascii:total_ke.csv:asc…
47 - Viewer for the min/max CFL in the domain e.g., `ascii:cfl.csv:ascii_csv` to write a CSV file.
/honee/
H A DDoxyfile54 # for a project that appears at the top of each page and should give viewer a
1512 # words in the documentation. The HTML workshop also contains a viewer for
2045 # makes the output suitable for online browsing using a PDF viewer.