Lines Matching +full:- +full:f

1 // SPDX-FileCopyrightText: Copyright (c) 2017-2024, HONEE contributors.
2 // SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause
15 Ceed ceed = honee->ceed; in ICs_FixMultiplicity()
22 …if (honee->phys->ics_time_label) PetscCallCeed(ceed, CeedOperatorSetContextDouble(honee->op_ics_ct… in ICs_FixMultiplicity()
23 PetscCall(ApplyCeedOperatorLocalToGlobal(NULL, Q, honee->op_ics_ctx)); in ICs_FixMultiplicity()
25 // -- Get multiplicity in ICs_FixMultiplicity()
26 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in ICs_FixMultiplicity()
37 // -- Fix multiplicity in ICs_FixMultiplicity()
58 PetscCall(VecAXPY(Qbc, -1., Q_loc)); in SetBCsFromICs()
103 …PetscCheck(strcmp(app_ctx->test_file_path, "") != 0, comm, PETSC_ERR_FILE_READ, "File for regressi… in RegressionTest()
104 PetscCall(PetscViewerBinaryOpen(comm, app_ctx->test_file_path, FILE_MODE_READ, &viewer)); in RegressionTest()
108 PetscCall(VecAXPY(Q, -1.0, Qref)); in RegressionTest()
114 if (error > app_ctx->test_tol) { in RegressionTest()
137 // Get |exact solution - obtained solution| in PrintError()
139 PetscCall(VecAXPY(Q, -1.0, Q_exact)); in PrintError()
149 // Post-processing
156 if (problem->compute_exact_solution_error && honee->app_ctx->test_type == TESTTYPE_NONE) { in PostProcess()
163 if (honee->app_ctx->test_type == TESTTYPE_NONE) { in PostProcess()
169 PetscCall(VecViewFromOptions(Q, NULL, "-vec_view")); in PostProcess()
172 if (honee->app_ctx->test_type == TESTTYPE_SOLVER) { in PostProcess()
173 PetscCall(RegressionTest(honee->app_ctx, Q)); in PostProcess()
194 PetscCall(DMDestroy(&context_->dm)); in NodalProjectionDataDestroy()
195 PetscCall(KSPDestroy(&context_->ksp)); in NodalProjectionDataDestroy()
196 PetscCall(OperatorApplyContextDestroy(context_->l2_rhs_ctx)); in NodalProjectionDataDestroy()
206 @param[in] name Name of the option (with `-` prepended to it)
219 DM dm = honee->dm, dm_coord; in HoneeCalculateDomainSize()
220 Ceed ceed = honee->ceed; in HoneeCalculateDomainSize()
265 Ceed ceed = honee->ceed; in PrintRunInfo()
276 "\n-- HONEE - High-Order Navier-stokes Equation Evaluator --\n" in PrintRunInfo()
283 PetscCall(problem->print_info(honee, problem, honee->app_ctx)); in PrintRunInfo()
288 PetscCallCeed(ceed, CeedGetResource(honee->ceed, &used_resource)); in PrintRunInfo()
289 PetscCallCeed(ceed, CeedGetPreferredMemType(honee->ceed, &mem_type_backend)); in PrintRunInfo()
301 PetscCall(DMGetDimension(honee->dm, &dim)); in PrintRunInfo()
303 …PetscCall(PetscOptionsGetString(NULL, NULL, "-dm_plex_box_faces", box_faces_str, sizeof(box_faces_… in PrintRunInfo()
304 PetscCall(DMGetVecType(honee->dm, &vec_type)); in PrintRunInfo()
310 box_faces_str, vec_type, phys_ctx->implicit ? "implicit" : "explicit")); in PrintRunInfo()
338 if (honee->app_ctx->use_continue_file) { in PrintRunInfo()
344 … honee->app_ctx->cont_file, honee->app_ctx->cont_steps, honee->app_ctx->cont_time)); in PrintRunInfo()
349 const CeedInt num_P = honee->app_ctx->degree + 1, num_Q = num_P + honee->app_ctx->q_extra; in PrintRunInfo()
350 PetscCall(DMGetGlobalVectorInfo(honee->dm, &owned_dofs, &glob_dofs, NULL)); in PrintRunInfo()
351 PetscCall(DMGetLocalVectorInfo(honee->dm, &local_dofs, NULL, NULL)); in PrintRunInfo()
358 … " Global %" PetscInt_FMT "-DoF nodes : %" PetscInt_FMT "\n", in PrintRunInfo()
360 // -- Get Partition Statistics in PrintRunInfo()
365 PetscInt median_index = comm_size % 2 ? comm_size / 2 : comm_size / 2 - 1; in PrintRunInfo()
372 part_owned_dofs[1] = gather_buffer[comm_size - 1]; // max in PrintRunInfo()
376 …" Global Vector %" PetscInt_FMT "-DoF nodes : %" PetscInt_FMT ", %" PetscInt_FMT ", %"… in PrintRunInfo()
385 part_local_dofs[1] = gather_buffer[comm_size - 1]; // max in PrintRunInfo()
389 …" Local Vector %" PetscInt_FMT "-DoF nodes : %" PetscInt_FMT ", %" PetscInt_FMT ", %"… in PrintRunInfo()
401 PetscCall(DMGetSectionSF(honee->dm, &sf)); in PrintRunInfo()
405 if (rranks[i] == rank) continue; // Ignore same-part global->local transfers in PrintRunInfo()
406 num_remote_roots_total += roffset[i + 1] - roffset[i]; in PrintRunInfo()
411 num_remote_leaves_total += ioffset[i + 1] - ioffset[i]; in PrintRunInfo()
419 part_boundary_dofs[1] = gather_buffer[comm_size - 1]; // max in PrintRunInfo()
423 …" Ghost Interface %" PetscInt_FMT "-DoF nodes : %" PetscInt_FMT ", %" PetscInt_FMT ", %"… in PrintRunInfo()
424 ", %f\n", in PrintRunInfo()
433 part_neighbors[1] = gather_buffer[comm_size - 1]; // max in PrintRunInfo()
436 …host Interface Ranks : %" PetscInt_FMT ", %" PetscInt_FMT ", %" PetscInt_FMT ", %f\n", in PrintRunInfo()
444 part_boundary_dofs[1] = gather_buffer[comm_size - 1]; // max in PrintRunInfo()
448 …" Owned Interface %" PetscInt_FMT "-DoF nodes : %" PetscInt_FMT ", %" PetscInt_FMT ", %"… in PrintRunInfo()
449 ", %f\n", in PrintRunInfo()
458 part_neighbors[1] = gather_buffer[comm_size - 1]; // max in PrintRunInfo()
461 …wned Interface Ranks : %" PetscInt_FMT ", %" PetscInt_FMT ", %" PetscInt_FMT ", %f\n", in PrintRunInfo()