Lines Matching refs:viewer
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()
109 PetscCall(PetscViewerASCIIUseTabs(viewer, PETSC_FALSE)); in BCDefinitionView()
112 PetscCall(PetscViewerASCIIPrintf(viewer, " %" PetscInt_FMT, bc_def->label_values[i])); in BCDefinitionView()
114 PetscCall(PetscViewerASCIIPrintf(viewer, "\n")); in BCDefinitionView()
116 PetscCall(PetscViewerASCIIPrintf(viewer, " None\n")); in BCDefinitionView()
118 PetscCall(PetscViewerASCIIUseTabs(viewer, PETSC_TRUE)); in BCDefinitionView()
120 PetscCall(PetscViewerASCIIPrintf(viewer, "Essential Components:")); in BCDefinitionView()
121 PetscCall(PetscViewerASCIIUseTabs(viewer, PETSC_FALSE)); in BCDefinitionView()
124 PetscCall(PetscViewerASCIIPrintf(viewer, " %" PetscInt_FMT, bc_def->essential_comps[i])); in BCDefinitionView()
126 PetscCall(PetscViewerASCIIPrintf(viewer, "\n")); in BCDefinitionView()
128 PetscCall(PetscViewerASCIIPrintf(viewer, " None\n")); in BCDefinitionView()
130 PetscCall(PetscViewerASCIIUseTabs(viewer, PETSC_TRUE)); in BCDefinitionView()
132 PetscCall(PetscViewerASCIIPopTab(viewer)); // BCDefinition in BCDefinitionView()