Searched refs:x_t (Results 1 – 4 of 4) sorted by relevance
| /petsc/src/dm/impls/da/ |
| H A D | da3.c | 213 PetscInt *bases, *ldims, base, x_t, y_t, z_t, s_t, count, s_x, s_y, s_z; in DMSetUp_DA_3D() local 815 x_t = lx[n0 % m]; in DMSetUp_DA_3D() 818 s_t = bases[n0] + x_t * y_t * z_t - (s_y - i) * x_t - s_x - (s_z - k - 1) * x_t * y_t; in DMSetUp_DA_3D() 819 … if (twod && (s_t < 0)) s_t = bases[n0] + x_t * y_t * z_t - (s_y - i) * x_t - s_x; /* 2D case */ in DMSetUp_DA_3D() 823 x_t = x; in DMSetUp_DA_3D() 826 s_t = bases[n1] + x_t * y_t * z_t - (s_y + 1 - i) * x_t - (s_z - k - 1) * x_t * y_t; in DMSetUp_DA_3D() 827 … if (twod && (s_t < 0)) s_t = bases[n1] + x_t * y_t * z_t - (s_y + 1 - i) * x_t; /* 2D case */ in DMSetUp_DA_3D() 828 for (j = 0; j < x_t; j++) idx[nn++] = s_t++; in DMSetUp_DA_3D() 831 x_t = lx[n2 % m]; in DMSetUp_DA_3D() 834 s_t = bases[n2] + x_t * y_t * z_t - (s_y + 1 - i) * x_t - (s_z - k - 1) * x_t * y_t; in DMSetUp_DA_3D() [all …]
|
| H A D | da2.c | 204 PetscInt xbase, *bases, *ldims, j, x_t, y_t, s_t, base, count; in DMSetUp_DA_2D() local 533 x_t = lx[n0 % m]; in DMSetUp_DA_2D() 535 s_t = bases[n0] + x_t * y_t - (s_y - i) * x_t - s_x; in DMSetUp_DA_2D() 540 x_t = x; in DMSetUp_DA_2D() 542 s_t = bases[n1] + x_t * y_t - (s_y + 1 - i) * x_t; in DMSetUp_DA_2D() 543 for (j = 0; j < x_t; j++) idx[nn++] = s_t++; in DMSetUp_DA_2D() 549 x_t = lx[n2 % m]; in DMSetUp_DA_2D() 551 s_t = bases[n2] + x_t * y_t - (s_y + 1 - i) * x_t; in DMSetUp_DA_2D() 558 x_t = lx[n3 % m]; in DMSetUp_DA_2D() 560 s_t = bases[n3] + (i + 1) * x_t - s_x; in DMSetUp_DA_2D() [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexfem.c | 3793 PetscScalar *x = NULL, *x_t = NULL, *ul = *u, *ul_t = *u_t, *al = *a; in DMPlexGetCellFields() local 3800 PetscCall(DMPlexVecGetClosure(plex, section, locX_t, cell, NULL, &x_t)); in DMPlexGetCellFields() 3801 for (i = 0; i < totDim; ++i) ul_t[cind * totDim + i] = x_t[i]; in DMPlexGetCellFields() 3802 PetscCall(DMPlexVecRestoreClosure(plex, section, locX_t, cell, NULL, &x_t)); in DMPlexGetCellFields() 4555 PetscScalar *x_t, *fa; in DMPlexComputeResidual_Patch_Internal() local 4558 PetscCall(VecGetArray(locX_t, &x_t)); in DMPlexComputeResidual_Patch_Internal() 4580 PetscCall(DMPlexPointLocalFieldRead(dm, cell, f, x_t, &u_t)); in DMPlexComputeResidual_Patch_Internal() 4585 PetscCall(VecRestoreArray(locX_t, &x_t)); in DMPlexComputeResidual_Patch_Internal() 4727 PetscScalar *x = NULL, *x_t = NULL; in DMPlexComputeJacobian_Patch_Internal() local 4736 PetscCall(DMPlexVecGetClosure(dm, section, X_t, cell, NULL, &x_t)); in DMPlexComputeJacobian_Patch_Internal() [all …]
|
| /petsc/src/ts/tutorials/ |
| H A D | ex10.c | 104 …, PetscScalar b, PetscScalar b_t, PetscScalar c, PetscScalar c_t, PetscScalar *x, PetscScalar *x_t) in QuadraticSolve() argument 109 *x_t = (num_t * den - num * den_t) / PetscSqr(den); in QuadraticSolve()
|