| /honee/src/ |
| H A D | honee-file.c | 36 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 D | monitor_totalkineticenergy.c | 62 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 D | bc_definition.c | 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() 108 PetscCall(PetscViewerASCIIPrintf(viewer, "Face Sets:")); in BCDefinitionView() [all …]
|
| H A D | monitor_cfl.c | 41 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 D | honee-ksp.c | 13 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 D | setupts.c | 198 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 D | mat-ceed.c | 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() 288 …PetscCall(PetscViewerASCIIPrintf(viewer, "libCEED PB Diagonal Assembly: %s\n", ctx->is_ceed_pbd_va… in MatView_Ceed() [all …]
|
| H A D | misc.c | 96 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 D | honee.c | 104 PetscCall(PetscViewerDestroy(&app_ctx->wall_forces.viewer)); in HoneeDestroy()
|
| H A D | cloptions.c | 185 …monitor_wall_force", "Viewer for force on each (no-slip) wall", NULL, &app_ctx->wall_forces.viewer, in ProcessCommandLineOptions()
|
| /honee/src/spanstats/ |
| H A D | cflpe.c | 156 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() 227 …viewer, "Spanwise cflpe statistics written to %s for time span (%0.12e,%0.12e] and step span [%" P… in TSMonitor_SpanwiseStatisticsCflPe() 231 …viewer, "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 D | turbulence.c | 158 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() 252 …viewer, "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 D | spanstats.c | 389 PetscCall(PetscViewerSetOptionsPrefix(ctx->viewer, spanstats->prefix)); in SpanwiseStatisticsSetupFinalize() 390 PetscCall(PetscViewerSetFromOptions(ctx->viewer)); in SpanwiseStatisticsSetupFinalize()
|
| /honee/include/ |
| H A D | honee-file.h | 16 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 D | bc_definition.h | 57 PetscErrorCode BCDefinitionView(BCDefinition bc_def, PetscViewer viewer);
|
| H A D | navierstokes.h | 106 PetscViewer viewer; member
|
| /honee/ |
| H A D | Doxyfile | 54 # 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.
|