Lines Matching refs:viewer

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()
188 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# working_directory: %s\n", buf)); in TSMonitor_TotalKineticEnergy()
189 PetscCall(PetscViewerFileGetName(ctx->viewer, &buf_const)); in TSMonitor_TotalKineticEnergy()
191 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "# original_file_path: %s\n", buf)); in TSMonitor_TotalKineticEnergy()
192 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "#\n")); in TSMonitor_TotalKineticEnergy()
193 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "step,time,")); in TSMonitor_TotalKineticEnergy()
195 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "%s", field_names[i])); in TSMonitor_TotalKineticEnergy()
196 if (i < monitor_ctx->num_comps - 1) PetscCall(PetscViewerASCIIPrintf(ctx->viewer, ",")); in TSMonitor_TotalKineticEnergy()
198 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "\n")); in TSMonitor_TotalKineticEnergy()
202 … PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "%" PetscInt_FMT ",%0.17e,", step, solution_time)); in TSMonitor_TotalKineticEnergy()
204 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "%0.17e", monitor_ctx->sum_values[i])); in TSMonitor_TotalKineticEnergy()
205 if (i < monitor_ctx->num_comps - 1) PetscCall(PetscViewerASCIIPrintf(ctx->viewer, ",")); in TSMonitor_TotalKineticEnergy()
207 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "\n")); in TSMonitor_TotalKineticEnergy()
209 PetscCall(PetscViewerASCIIAddTab(ctx->viewer, monitor_ctx->tab_level)); in TSMonitor_TotalKineticEnergy()
211 …PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "%s: %0.12e ", field_names[i], monitor_ctx->sum_valu… in TSMonitor_TotalKineticEnergy()
212 if (i == 0) PetscCall(PetscViewerASCIIUseTabs(ctx->viewer, PETSC_FALSE)); in TSMonitor_TotalKineticEnergy()
216 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "SumOfRates: %0.12e ", sum_rates)); in TSMonitor_TotalKineticEnergy()
217 PetscCall(PetscViewerASCIIPrintf(ctx->viewer, "\n")); in TSMonitor_TotalKineticEnergy()
218 PetscCall(PetscViewerASCIIUseTabs(ctx->viewer, PETSC_TRUE)); in TSMonitor_TotalKineticEnergy()
219 PetscCall(PetscViewerASCIISubtractTab(ctx->viewer, monitor_ctx->tab_level)); in TSMonitor_TotalKineticEnergy()