Home
last modified time | relevance | path

Searched refs:f (Results 1 – 23 of 23) sorted by relevance

/honee/tests/
H A Djunit_common.py35 raise ValueError(f"{type} must be an Enum")
319 field_names = [f.name for f in test_fields]
326 raise ParseError(f"Mismatched parentheses in TESTCASE: {line}")
371 print(f"warning, unknown TESTCASE option for test '{known['name']}': {k}={v}")
397 raise RuntimeError(f'Unrecognized extension for file: {source_file}')
401 …if line.startswith(f'{comment_str}TESTARGS')] or [TestSpec(source_file.stem, args=['{ceed_resource…
423 return f'No lines found in test output {test_csv}'
425 return f'No lines found in test source {true_csv}'
427 return f'Number of lines in {test_csv} and {true_csv} do not match'
438 return f'Commented line found in {test_csv} at line {n} but not in {true_csv}'
[all …]
H A Djunit.py126 return f'SYCL device type not available'
128 return f'CGNS not installed in PETSc for {test}, {spec.name}'
130 return f'Tet mesh generator not installed for {test}, {spec.name}'
169 print(f'1..1')
182 print(f'# Subtest: {test_cases[0].category}')
183 print(f' 1..{len(args.ceed_backends)}')
194 print(f'{"" if subtest_ok else "not "}ok 1 - {test_cases[0].category}')
197 print(f'ok 1 - # SKIP SmartSim not installed')
H A Dsmartsim_regression_framework.py45 raise Exception(f"Expected {truth}, but got {test}") from e
53 raise Exception(f"Expected {truth}, but got {test}") from e
80 f"./y0_database_values_{ceed_resource.replace('/', '_')}.npy").absolute()
82 …raise AssertionError(f"Array values in database max difference: {np.max(np.abs(correct_array - dat…
83 f"Array saved to {database_output_path.as_posix()}")
138 … client_exp = self.exp.create_model(f"client_{ceed_resource.replace('/', '_')}", run_settings)
204 test_case = TestCase(f'SmartSim Test {ceed_resource}',
211 category=f'SmartSim Tests')
/honee/
H A Dpytorch_pkgconfig.py20 file.write(f"{variable}={value}\n")
24 file.write(f"{key}: {value}\n")
35 keywords['Cflags'] += f'-I{include_path} '
41 with torchCMakePath.open('r') as f:
42 for line in f:
51 keywords['Libs'] += f'-L{lib_path} '
61 keywords['Libs'] += f'-Wl,--no-as-needed,"{torch_cuda_path.as_posix()}" '
H A Dconf.py73 with open(Path('AUTHORS')) as f:
74 authorlist = f.readlines()
H A DDoxyfile334 # as Fortran files (default is PHP), and .f files as C (default is Fortran),
335 # use: inc=Fortran f=C.
985 # *.f18, *.f, *.for, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
1019 *.f \
/honee/problems/
H A Dblasius.c20 PetscScalar *r, f[4], h[4]; in CompressibleBlasiusResidual() local
34 ChebyshevEval(N, Tf, -1., blasius->eta_max, f); in CompressibleBlasiusResidual()
35 r[0] = f[0]; in CompressibleBlasiusResidual()
36 r[1] = f[1]; in CompressibleBlasiusResidual()
39 ChebyshevEval(N, Tf, 1., blasius->eta_max, f); in CompressibleBlasiusResidual()
40 r[2] = f[1] - 1.; in CompressibleBlasiusResidual()
43 ChebyshevEval(N, Tf, blasius->X[i], blasius->eta_max, f); in CompressibleBlasiusResidual()
55 r[3 + i] = 2 * (mu_rho_tilde[0] * f[3] + mu_rho_tilde[1] * f[2]) + f[2] * f[0]; in CompressibleBlasiusResidual()
56 …0] * h[2] + mu_rho_tilde[1] * h[1]) + Pr * f[0] * h[1] + Pr * (gamma - 1) * mu_rho_tilde[0] * Pets… in CompressibleBlasiusResidual()
H A Dadvection.c238 for (PetscInt f = 0; f < num_face_set_values; f++) { in DivDiffFluxProjectionCreateRHS_Direct_AdvDif() local
245 …PetscCall(DMPlexCreateFaceLabel(projection->dm, face_set_values[f], &face_orientation_label_name)); in DivDiffFluxProjectionCreateRHS_Direct_AdvDif()
H A Dnewtonian.c203 for (PetscInt f = 0; f < num_face_set_values; f++) { in DivDiffFluxProjectionCreateRHS_Direct_NS() local
210 …PetscCall(DMPlexCreateFaceLabel(projection->dm, face_set_values[f], &face_orientation_label_name)); in DivDiffFluxProjectionCreateRHS_Direct_NS()
/honee/qfunctions/
H A Ddiff_flux_projection.h26 for (CeedInt f = 0; f < dim; f++) { in ComputeDivDiffusiveFluxGeneric() local
27 grad_qn[f * dim + g] = grad_q[offset + (Q * num_comps * dim) * g + Q * f + i]; in ComputeDivDiffusiveFluxGeneric()
H A Dblasius.h33 …QFUNCTION_HELPER void ChebyshevEval(int N, const double *Tf, double x, double eta_max, double *f) { in ChebyshevEval() argument
44 f[i] = table[i][0] * Tf[0] + table[i][1] * Tf[1] + table[i][2] * Tf[2]; in ChebyshevEval()
55 f[j] += table[j][i % 3] * Tf[i]; in ChebyshevEval()
60 for (int j = 0; j < i; j++) f[i] *= dX_deta; in ChebyshevEval()
78 CeedScalar f[4], h[4]; in BlasiusSolution() local
79 ChebyshevEval(N, blasius->Tf_cheb, X, blasius->eta_max, f); in BlasiusSolution()
82 *t12 = mu * U_infty * f[2] * sqrt(U_infty / (nu * (x0 + x[0] - x_inflow))); in BlasiusSolution()
85 Y[1] = U_infty * f[1]; in BlasiusSolution()
86 Y[2] = 0.5 * sqrt(nu * U_infty / (x0 + x[0] - x_inflow)) * (eta * f[1] - f[0]); in BlasiusSolution()
H A Dadvection.h291 for (CeedInt f = 0; f < 4; f++) { in IFunction_AdvectionGeneric() local
292 for (CeedInt j = 0; j < dim; j++) grad_v[j][f][i] = 0; // No Change in density or momentum in IFunction_AdvectionGeneric()
293 v[f][i] = wdetJ * q_dot[f][i]; // K Mass/transient term in IFunction_AdvectionGeneric()
364 for (CeedInt f = 0; f < 4; f++) { in MassFunction_AdvectionGeneric() local
365 for (CeedInt j = 0; j < dim; j++) grad_v[j][f][i] = 0; // No Change in density or momentum in MassFunction_AdvectionGeneric()
366 v[f][i] = wdetJ * q_dot[f][i]; // K Mass/transient term in MassFunction_AdvectionGeneric()
426 for (CeedInt f = 0; f < 4; f++) { in RHSFunction_AdvectionGeneric() local
427 for (CeedInt j = 0; j < dim; j++) grad_v[j][f][i] = 0; // No Change in density or momentum in RHSFunction_AdvectionGeneric()
428 v[f][i] = 0.; in RHSFunction_AdvectionGeneric()
H A Dnewtonian.h62 for (CeedInt f = 0; f < 5; f++) { in MassFunction_Newtonian() local
63 v[f][i] = wdetJ * qi_dot[f]; in MassFunction_Newtonian()
/honee/tests/createPyTorchModel/
H A Dupdate_weights.py41 model.load_state_dict(torch.load(f'{model_name}.pt', map_location=torch.device('cpu')))
60 torch.jit.save(model, f"{model_name}_fp64_jit.pt")
/honee/src/
H A Dbc_definition.c345 for (PetscInt f = 0; f < num_face_set_values; f++) { in BCDefinitionAddOperators() local
352 … PetscCall(DMPlexCreateFaceLabel(bc_def->dm, face_set_values[f], &face_orientation_label_name)); in BCDefinitionAddOperators()
H A Ddiff_flux_projection.c64 for (PetscInt f = 0; f < num_face_set_values; f++) { in DivDiffFluxProjectionCreate() local
68 … PetscCall(DMPlexCreateFaceLabel(honee->dm, face_set_values[f], &face_orientation_label_name)); in DivDiffFluxProjectionCreate()
H A Ddm-utils.c549 for (PetscInt f = 0; f < num_fields; f++) { in GetClosurePermutationAndFieldOffsetAtDepth() local
556 PetscCall(PetscSectionGetFieldComponents(section, f, &num_components)); in GetClosurePermutationAndFieldOffsetAtDepth()
557 PetscCall(DMGetField(dm, f, NULL, &obj)); in GetClosurePermutationAndFieldOffsetAtDepth()
561 if (f == field) is_field_continuous = is_continuous; in GetClosurePermutationAndFieldOffsetAtDepth()
566 if (f < field) offset += field_size; in GetClosurePermutationAndFieldOffsetAtDepth()
H A Dmat-ceed.c1006 PetscErrorCode MatCeedSetContext(Mat mat, PetscCtxDestroyFn f, void *ctx) { in MatCeedSetContext() argument
1013 PetscCall(PetscContainerSetCtxDestroy(user_ctx, f)); in MatCeedSetContext()
/honee/tests/junit-xml/
H A DREADME.rst75 with open('output.xml', 'w') as f:
76 TestSuite.to_file(f, [ts], prettyprint=False)
/honee/tests/junit-xml/junit_xml/
H A D__init__.py460 return sum(1 for f in self.failures if f["message"] or f["output"]) > 0
/honee/examples/postprocess/
H A Dvortexshedding.py42 ax_drag.set_title(f"Shedding period {period}")
/honee/include/
H A Dmat-ceed.h30 PETSC_CEED_EXTERN PetscErrorCode MatCeedSetContext(Mat mat, PetscCtxDestroyFn f, void *ctx);
/honee/doc/
H A Dtheory.md127 k_1 &= f(t^n, \bm{q}_N^n)\\
128 k_2 &= f(t^n + c_2 \Delta t, \bm{q}_N^n + \Delta t (a_{21} k_1))\\
129 k_3 &= f(t^n + c_3 \Delta t, \bm{q}_N^n + \Delta t (a_{31} k_1 + a_{32} k_2))\\
131 k_i &= f\left(t^n + c_i \Delta t, \bm{q}_N^n + \Delta t \sum_{j=1}^s a_{ij} k_j \right)\\
138 f(t^n, \bm{q}_N^n) = - [\nabla \cdot \bm{F}(\bm{q}_N)]^n + [S(\bm{q}_N)]^n \, .
147 \bm f(\bm q_N) \equiv \bm g(t^{n+1}, \bm{q}_N, \bm{\dot{q}}_N) = 0 \, ,
161 \frac{\partial \bm f}{\partial \bm q_N} = \frac{\partial \bm g}{\partial \bm q_N} + \alpha \frac{\p…
631 | Math | Label | $f(\bm{x})$? | $f(n)$? |