Searched refs:Ncomp (Results 1 – 5 of 5) sorted by relevance
| /petsc/src/snes/tutorials/ |
| H A D | ex77.c | 98 const PetscInt Ncomp = dim; in zero_vector() local 101 for (comp = 0; comp < Ncomp; ++comp) u[comp] = 0.0; in zero_vector() 107 const PetscInt Ncomp = dim; in coordinates() local 110 for (comp = 0; comp < Ncomp; ++comp) u[comp] = x[comp]; in coordinates() 130 const PetscInt Ncomp = dim; in f1_u_3d() local 132 PetscReal cofu_x[9 /* Ncomp*dim */], detu_x, p = PetscRealPart(u[Ncomp]); in f1_u_3d() 140 for (comp = 0; comp < Ncomp; ++comp) { in f1_u_3d() 147 const PetscInt Ncomp = dim; in g3_uu_3d() local 149 PetscReal cofu_x[9 /* Ncomp*dim */], detu_x, pp, pm, p = PetscRealPart(u[Ncomp]); in g3_uu_3d() 159 for (compI = 0; compI < Ncomp; ++compI) { in g3_uu_3d() [all …]
|
| H A D | ex56.c | 26 const PetscInt Ncomp = dim; in f1_bd_u() local 28 for (comp = 0; comp < Ncomp; ++comp) { in f1_bd_u() 168 const PetscInt Ncomp = dim; in f0_u() local 171 for (comp = 0; comp < Ncomp; ++comp) f0[comp] = 0.0; in f0_u() 185 const PetscInt Ncomp = dim; in zero() local 188 for (comp = 0; comp < Ncomp; ++comp) u[comp] = 0; in zero() 202 PetscInt iter, i, N, dim = 3, max_conv_its, sizes[7], run_type = 1, Ncomp = dim; in main() local 305 if (run_type == 2 || run_type == 3) Ncomp = 1; in main() 306 else Ncomp = dim; in main() 307 …PetscCall(PetscFECreateDefault(PETSC_COMM_SELF, dim, Ncomp, PETSC_FALSE, NULL, PETSC_DECIDE, &fe)); in main() [all …]
|
| /petsc/src/ts/tutorials/ |
| H A D | ex46.c | 76 const PetscInt Ncomp = dim; in f0_mms1_u() local 79 for (c = 0; c < Ncomp; ++c) { in f0_mms1_u() 92 const PetscInt Ncomp = dim; in f0_mms2_u() local 95 for (c = 0; c < Ncomp; ++c) { in f0_mms2_u() 108 const PetscInt Ncomp = dim; in f1_u() local 111 for (comp = 0; comp < Ncomp; ++comp) { in f1_u() 113 f1[comp * dim + comp] -= u[Ncomp]; in f1_u() 184 const PetscInt Ncomp = dim; in g3_uu() local 187 for (compI = 0; compI < Ncomp; ++compI) { in g3_uu() 188 for (d = 0; d < dim; ++d) g3[((compI * Ncomp + compI) * dim + d) * dim + d] = 1.0 / Re; in g3_uu()
|
| H A D | ex18.c | 239 const PetscInt Ncomp = dim; in g3_uu() local 242 for (compI = 0; compI < Ncomp; ++compI) { in g3_uu() 243 for (d = 0; d < dim; ++d) g3[((compI * Ncomp + compI) * dim + d) * dim + d] = 1.0; in g3_uu()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexorient.c | 249 static PetscErrorCode DMPlexOrient_Serial(DM dm, IS cellIS, IS faceIS, PetscInt *Ncomp, PetscInt ce… in DMPlexOrient_Serial() argument 264 *Ncomp = 0; in DMPlexOrient_Serial() 296 if (PetscBTLookup(seenCells, c)) cellComp[c] = *Ncomp; in DMPlexOrient_Serial() 299 if (PetscBTLookup(seenFaces, f)) faceComp[f] = *Ncomp; in DMPlexOrient_Serial() 304 ++(*Ncomp); in DMPlexOrient_Serial() 754 PetscInt numLeaves, numRoots, dim, Ncomp, totNeighbors = 0; in DMPlexOrientCells_Internal() local 802 PetscCall(DMPlexOrient_Serial(dm, cellIS, faceIS, &Ncomp, cellComp, faceComp, flippedCells)); in DMPlexOrientCells_Internal() 866 PetscCall(PetscMalloc2(Ncomp, &numNeighbors, Ncomp, &neighbors)); in DMPlexOrientCells_Internal() 870 for (PetscInt comp = 0; comp < Ncomp; ++comp) { in DMPlexOrientCells_Internal() 911 for (PetscInt comp = 0, off = 0; comp < Ncomp; ++comp) { in DMPlexOrientCells_Internal() [all …]
|