Searched refs:n_fields (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/dm/impls/stag/tests/ |
| H A D | ex42.c | 10 PetscInt dim, n_fields; in main() local 37 PetscCall(DMCreateFieldDecomposition(dm, &n_fields, &field_names, &fields, &sub_dms)); in main() 38 for (PetscInt i = 0; i < n_fields; ++i) { in main() 44 for (PetscInt i = 0; i < n_fields; ++i) { in main()
|
| /petsc/src/dm/impls/stag/ |
| H A D | stag.c | 12 PetscInt f0, f1, f2, f3, dof0, dof1, dof2, dof3, n_entries, k, d, cnt, n_fields, dim; in DMCreateFieldDecomposition_Stag() local 70 n_fields = 0; in DMCreateFieldDecomposition_Stag() 71 if (dof0 != 0) ++n_fields; in DMCreateFieldDecomposition_Stag() 72 if (dof1 != 0) ++n_fields; in DMCreateFieldDecomposition_Stag() 73 if (dim >= 2 && dof2 != 0) ++n_fields; in DMCreateFieldDecomposition_Stag() 74 if (dim >= 3 && dof3 != 0) ++n_fields; in DMCreateFieldDecomposition_Stag() 75 if (len) *len = n_fields; in DMCreateFieldDecomposition_Stag() 78 PetscCall(PetscMalloc1(n_fields, islist)); in DMCreateFieldDecomposition_Stag() 180 PetscCall(PetscMalloc1(n_fields, namelist)); in DMCreateFieldDecomposition_Stag() 224 PetscCall(PetscMalloc1(n_fields, dmlist)); in DMCreateFieldDecomposition_Stag()
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex42.c | 1433 PetscInt f, n_fields, N; in DAView_3DVTK_StructuredGrid_appended() local 1476 PetscCall(DMDAGetInfo(da, 0, 0, 0, 0, 0, 0, 0, &n_fields, 0, 0, 0, 0, 0)); in DAView_3DVTK_StructuredGrid_appended() 1477 for (f = 0; f < n_fields; f++) { in DAView_3DVTK_StructuredGrid_appended() 1484 for (f = 0; f < n_fields; f++) { in DAView_3DVTK_StructuredGrid_appended() 1516 for (f = 0; f < n_fields; f++) { in DAView_3DVTK_StructuredGrid_appended() 1520 for (i = 0; i < N; i++) buffer[i] = _L_FIELD[n_fields * i + f]; in DAView_3DVTK_StructuredGrid_appended()
|