| /petsc/src/dm/tests/output/ |
| H A D | ex16_2.out | 27 [0] My part of redundant1 vector 35 [1] My part of redundant1 vector 43 [2] My part of redundant1 vector 51 [0] My part of da1 vector 58 [1] My part of da1 vector 66 [2] My part of da1 vector 72 [0] My part of redundant2 vector 77 [1] My part of redundant2 vector 82 [2] My part of redundant2 vector 87 [0] My part of da2 vector [all …]
|
| H A D | ex16_1.out | 27 [0] My part of redundant1 vector 35 [1] My part of redundant1 vector 43 [2] My part of redundant1 vector 51 [0] My part of da1 vector 58 [1] My part of da1 vector 66 [2] My part of da1 vector 72 [0] My part of redundant2 vector 77 [1] My part of redundant2 vector 82 [2] My part of redundant2 vector 87 [0] My part of da2 vector [all …]
|
| /petsc/src/binding/petsc4py/demo/legacy/wrap-swig/ |
| H A D | Bratu3D.c | 24 PetscInt i,j,k,Mx,My,Mz,xs,ys,zs,xm,ym,zm; in FormInitGuess() local 29 …PetscCall(DMDAGetInfo(da,PETSC_IGNORE,&Mx,&My,&Mz,PETSC_IGNORE,PETSC_IGNORE,PETSC_IGNORE,PETSC_IGN… in FormInitGuess() 32 hy = 1.0/(PetscReal)(My-1); in FormInitGuess() 63 tempj = PetscMin((PetscReal)(PetscMin(j,My-j-1))*hy,tempk); in FormInitGuess() 65 if (i == 0 || j == 0 || k == 0 || i == Mx-1 || j == My-1 || k == Mz-1) { in FormInitGuess() 84 PetscInt i,j,k,Mx,My,Mz,xs,ys,zs,xm,ym,zm; in FormFunction() local 90 …PetscCall(DMDAGetInfo(da,PETSC_IGNORE,&Mx,&My,&Mz,PETSC_IGNORE,PETSC_IGNORE,PETSC_IGNORE,PETSC_IGN… in FormFunction() 93 hy = 1.0/(PetscReal)(My-1); in FormFunction() 128 if (i == 0 || j == 0 || k == 0 || i == Mx-1 || j == My-1 || k == Mz-1) { in FormFunction() 161 PetscInt i,j,k,Mx,My,Mz,xs,ys,zs,xm,ym,zm; in FormJacobian() local [all …]
|
| /petsc/src/binding/petsc4py/demo/legacy/wrap-cython/ |
| H A D | Bratu3Dimpl.c | 24 PetscInt i,j,k,Mx,My,Mz,xs,ys,zs,xm,ym,zm; in FormInitGuess() local 29 …PetscCall(DMDAGetInfo(da,PETSC_IGNORE,&Mx,&My,&Mz,PETSC_IGNORE,PETSC_IGNORE,PETSC_IGNORE,PETSC_IGN… in FormInitGuess() 33 hy = 1.0/(PetscReal)(My-1); in FormInitGuess() 64 tempj = PetscMin((PetscReal)(PetscMin(j,My-j-1))*hy,tempk); in FormInitGuess() 66 if (i == 0 || j == 0 || k == 0 || i == Mx-1 || j == My-1 || k == Mz-1) { in FormInitGuess() 85 PetscInt i,j,k,Mx,My,Mz,xs,ys,zs,xm,ym,zm; in FormFunction() local 91 …PetscCall(DMDAGetInfo(da,PETSC_IGNORE,&Mx,&My,&Mz,PETSC_IGNORE,PETSC_IGNORE,PETSC_IGNORE,PETSC_IGN… in FormFunction() 94 hy = 1.0/(PetscReal)(My-1); in FormFunction() 132 if (i == 0 || j == 0 || k == 0 || i == Mx-1 || j == My-1 || k == Mz-1) { in FormFunction() 165 PetscInt i,j,k,Mx,My,Mz,xs,ys,zs,xm,ym,zm; in FormJacobian() local [all …]
|
| /petsc/src/ts/tutorials/ |
| H A D | ex15.c | 159 PetscInt i, j, Mx, My, xs, ys, xm, ym; in FormIFunction() local 166 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormIFunction() 170 hy = 1.0 / (PetscReal)(My - 1); in FormIFunction() 195 if (i == 0 || j == 0 || i == Mx - 1 || j == My - 1) { in FormIFunction() 203 } else if (i == 0 && j == My - 1) { /* NW corner */ in FormIFunction() 205 } else if (i == Mx - 1 && j == My - 1) { /* NE corner */ in FormIFunction() 213 } else if (j == My - 1) { /* Top */ in FormIFunction() 248 PetscInt i, j, Mx, My, xs, ys, xm, ym, nc; in FormIJacobian() local 255 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormIJacobian() 260 hy = 1.0 / (PetscReal)(My - 1); in FormIJacobian() [all …]
|
| H A D | ex7.c | 127 PetscInt i, j, Mx, My, xs, ys, xm, ym; in FormFunction() local 135 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormFunction() 139 hy = 1.0 / (PetscReal)(My - 1); in FormFunction() 167 if (i == 0 || j == 0 || i == Mx - 1 || j == My - 1) { in FormFunction() 192 PetscInt i, j, xs, ys, xm, ym, Mx, My; in FormInitialSolution() local 197 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormInitialSolution() 200 hy = 1.0 / (PetscReal)(My - 1); in FormInitialSolution()
|
| H A D | ex12.c | 134 PetscInt i, j, Mx, My, xs, ys, xm, ym; in FormFunction() local 141 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormFunction() 145 hy = 1.0 / (PetscReal)(My - 1); in FormFunction() 175 if (i == 0 || j == 0 || i == Mx - 1 || j == My - 1) { in FormFunction() 202 PetscInt i, j, xs, ys, xm, ym, Mx, My; in FormInitialSolution() local 207 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormInitialSolution() 210 hy = 1.0 / (PetscReal)(My - 1); in FormInitialSolution()
|
| H A D | ex13.c | 120 PetscInt i, j, Mx, My, xs, ys, xm, ym; in RHSFunction() local 128 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in RHSFunction() 132 hy = 1.0 / (PetscReal)(My - 1); in RHSFunction() 154 if (i == 0 || j == 0 || i == Mx - 1 || j == My - 1) { in RHSFunction() 246 PetscInt i, j, xs, ys, xm, ym, Mx, My; in FormInitialSolution() local 251 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormInitialSolution() 254 hy = 1.0 / (PetscReal)(My - 1); in FormInitialSolution()
|
| H A D | ex29.c | 169 PetscInt i, j, Mx, My, xs, ys, xm, ym; in FormInitialGuess() local 174 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormInitialGuess() 182 x1 = 10.0 * (j - 0.5 * (Mx - 1)) / (My - 1); in FormInitialGuess() 193 PetscInt i, j, Mx, My, xs, ys, xm, ym; in FormDiffusionCoefficient() local 198 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormDiffusionCoefficient() 211 x1 = 10.0 * (j - 0.5 * (My - 1)) / (My - 1); in FormDiffusionCoefficient()
|
| H A D | ex27.c | 164 PetscInt i, j, l, Mx, My, xs, ys, xm, ym; in FormInitialGuess() local 168 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormInitialGuess() 176 if (l == 0) x[j][i].sp[l] = (ctx->x_inflow.sp[l] * ((PetscScalar)j) / (My - 1)); in FormInitialGuess() 177 … else if (l == 1) x[j][i].sp[l] = (ctx->x_inflow.sp[l] * (1. - ((PetscScalar)j) / (My - 1))); in FormInitialGuess() 287 PetscInt i, j, l, Mx, My, xs, ys, xm, ym; in ReactingFlowPostCheck() local 301 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in ReactingFlowPostCheck()
|
| /petsc/src/ts/tutorials/advection-diffusion-reaction/ |
| H A D | ex5adj_mf.c | 38 PetscInt i, j, Mx, My, xs, ys, xm, ym; in InitializeLambda() local 42 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in InitializeLambda() 45 j = (PetscInt)(y * (My - 1)); in InitializeLambda() 63 PetscInt i, j, Mx, My, xs, ys, xm, ym; in MyRHSMatMultTranspose() local 74 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in MyRHSMatMultTranspose() 77 hy = 2.50 / (PetscReal)My; in MyRHSMatMultTranspose() 122 PetscInt i, j, Mx, My, xs, ys, xm, ym; in MyIMatMultTranspose() local 133 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in MyIMatMultTranspose() 136 hy = 2.50 / (PetscReal)My; in MyIMatMultTranspose() 183 PetscInt i, j, Mx, My, xs, ys, xm, ym; in MyIMatMult() local [all …]
|
| H A D | ex5opt_ic.c | 82 PetscInt i, j, xs, ys, xm, ym, Mx, My; in InitialConditions() local 87 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in InitialConditions() 90 hy = 2.5 / (PetscReal)My; in InitialConditions() 114 PetscInt i, j, xs, ys, xm, ym, Mx, My; in PerturbedInitialConditions() local 119 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in PerturbedInitialConditions() 122 hy = 2.5 / (PetscReal)My; in PerturbedInitialConditions() 146 PetscInt i, j, xs, ys, xm, ym, Mx, My; in PerturbedInitialConditions2() local 151 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in PerturbedInitialConditions2() 154 hy = 2.5 / (PetscReal)My; in PerturbedInitialConditions2() 179 PetscInt i, j, xs, ys, xm, ym, Mx, My; in PerturbedInitialConditions3() local [all …]
|
| H A D | ex5adj.c | 22 PetscInt i, j, Mx, My, xs, ys, xm, ym; in InitializeLambda() local 26 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in InitializeLambda() 29 j = (PetscInt)(y * (My - 1)); in InitializeLambda() 155 PetscInt i, j, xs, ys, xm, ym, Mx, My; in InitialConditions() local 160 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in InitialConditions() 163 hy = 2.5 / (PetscReal)My; in InitialConditions()
|
| H A D | reaction_diffusion.c | 31 PetscInt i, j, Mx, My, xs, ys, xm, ym; in RHSFunction() local 40 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in RHSFunction() 43 hy = 2.50 / (PetscReal)My; in RHSFunction() 96 PetscInt i, j, Mx, My, xs, ys, xm, ym; in RHSJacobian() local 107 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in RHSJacobian() 111 hy = 2.50 / (PetscReal)My; in RHSJacobian() 239 PetscInt i, j, Mx, My, xs, ys, xm, ym; in IFunction() local 248 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in IFunction() 251 hy = 2.50 / (PetscReal)My; in IFunction() 306 PetscInt i, j, Mx, My, xs, ys, xm, ym; in IJacobian() local [all …]
|
| H A D | ex5.c | 44 PetscInt i, j, xs, ys, xm, ym, Mx, My; in InitialConditions() local 49 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in InitialConditions() 52 hy = 2.5 / (PetscReal)My; in InitialConditions()
|
| /petsc/src/dm/tutorials/ |
| H A D | ex22.c | 34 PetscInt Mx = 4, My = 4, Mz = 4; /* Dimensions for 3D DMDA */ in main() local 61 …PetscCall(PetscOptionsRangeInt("-My", "dimension along y-axis", "ex22.c", My, &My, NULL, 0, PETSC_… in main() 71 …PetscCheck(gp <= My, PETSC_COMM_WORLD, PETSC_ERR_USER_INPUT, "grid point along sliceaxis is larger… in main() 79 …_BOUNDARY_NONE, DM_BOUNDARY_NONE, DM_BOUNDARY_NONE, DMDA_STENCIL_STAR, Mx, My, Mz, PETSC_DECIDE, P… in main() 109 upper.j = My; in main() 123 upper.j = My; in main() 149 M1 = My; in main() 162 M2 = My; in main()
|
| /petsc/src/dm/impls/da/ |
| H A D | dainterp.c | 258 PetscInt i, j, i_start, j_start, m_f, n_f, Mx, My, dof; in DMCreateInterpolation_DA_2D_Q1() local 271 …PetscCall(DMDAGetInfo(dac, NULL, &Mx, &My, NULL, NULL, NULL, NULL, NULL, NULL, &bx, &by, NULL, NUL… in DMCreateInterpolation_DA_2D_Q1() 283 …PetscCheck(My, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Number of y coarse grid points %" PetscInt_… in DMCreateInterpolation_DA_2D_Q1() 284 ratioj = my / My; in DMCreateInterpolation_DA_2D_Q1() 285 …oj * My == my, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Ratio between levels: my/My must be intege… in DMCreateInterpolation_DA_2D_Q1() 287 …PetscCheck(My >= 2, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Number of y coarse grid points %" Pets… in DMCreateInterpolation_DA_2D_Q1() 288 ratioj = (my - 1) / (My - 1); in DMCreateInterpolation_DA_2D_Q1() 289 …My - 1) == my - 1, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Ratio between levels: (my - 1)/(My - 1)… in DMCreateInterpolation_DA_2D_Q1() 316 col_shift = Mx * My * (rank_f / size_c); in DMCreateInterpolation_DA_2D_Q1() 356 PetscCall(MatSetSizes(mat, m_f * n_f, col_scale * m_c * n_c, mx * my, col_scale * Mx * My)); in DMCreateInterpolation_DA_2D_Q1() [all …]
|
| /petsc/src/snes/tutorials/ |
| H A D | ex14.c | 204 PetscInt i, j, k, Mx, My, Mz, xs, ys, zs, xm, ym, zm; in FormInitialGuess() local 209 …PetscCall(DMDAGetInfo(user->da, PETSC_IGNORE, &Mx, &My, &Mz, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGN… in FormInitialGuess() 213 hy = 1.0 / (PetscReal)(My - 1); in FormInitialGuess() 240 tempj = PetscMin((PetscReal)(PetscMin(j, My - j - 1)) * hy, tempk); in FormInitialGuess() 242 if (i == 0 || j == 0 || k == 0 || i == Mx - 1 || j == My - 1 || k == Mz - 1) { in FormInitialGuess() 273 PetscInt i, j, k, Mx, My, Mz, xs, ys, zs, xm, ym, zm; in FormFunctionLocal() local 280 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, &Mz, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, P… in FormFunctionLocal() 284 hy = 1.0 / (PetscReal)(My - 1); in FormFunctionLocal() 308 if (i == 0 || j == 0 || k == 0 || i == Mx - 1 || j == My - 1 || k == Mz - 1) { in FormFunctionLocal() 387 PetscInt i, j, k, Mx, My, Mz; in FormJacobian() local [all …]
|
| H A D | ex5.c | 75 PetscInt i, j, Mx, My, xs, ys, xm, ym; in FormInitialGuess() local 80 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormInitialGuess() 84 hy = 1.0 / (PetscReal)(My - 1); in FormInitialGuess() 108 temp = (PetscReal)(PetscMin(j, My - j - 1)) * hy; in FormInitialGuess() 110 if (i == 0 || j == 0 || i == Mx - 1 || j == My - 1) { in FormInitialGuess() 466 PetscInt Mx, My; in FormFunctionMatlab() local 478 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormFunctionMatlab() 482 hy = 1.0 / (PetscReal)(My - 1); in FormFunctionMatlab() 517 PetscInt i, j, k, Mx, My, xs, ys, xm, ym, its, tot_its, sweeps, l; in NonlinearGS() local 532 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in NonlinearGS() [all …]
|
| H A D | ex55.c | 34 PetscInt i, j, Mx, My, xs, ys, xm, ym; in FormInitialGuess() local 39 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormInitialGuess() 43 hy = 1.0 / (PetscReal)(My - 1); in FormInitialGuess() 67 temp = (PetscReal)(PetscMin(j, My - j - 1)) * hy; in FormInitialGuess() 69 if (i == 0 || j == 0 || i == Mx - 1 || j == My - 1) { in FormInitialGuess() 410 PetscInt Mx, My; in FormFunctionMatlab() local 422 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormFunctionMatlab() 426 hy = 1.0 / (PetscReal)(My - 1); in FormFunctionMatlab() 461 PetscInt i, j, k, Mx, My, xs, ys, xm, ym, its, tot_its, sweeps, l; in NonlinearGS() local 476 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in NonlinearGS() [all …]
|
| H A D | ex35.c | 247 PetscInt i, j, Mx, My, xs, ys, xm, ym, its, l; in NonlinearGS() local 257 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in NonlinearGS() 260 hy = 1.0 / (PetscReal)(My - 1); in NonlinearGS() 288 if (i == 0 || j == 0 || i == Mx - 1 || j == My - 1) { in NonlinearGS()
|
| H A D | ex15.c | 286 PetscInt i, j, Mx, My, xs, ys, xm, ym; in FormInitialGuess() local 291 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormInitialGuess() 294 hy = 1.0 / (PetscReal)(My - 1); in FormInitialGuess() 318 temp = (PetscReal)(PetscMin(j, My - j - 1)) * hy; in FormInitialGuess() 320 if (i == 0 || j == 0 || i == Mx - 1 || j == My - 1) { in FormInitialGuess() 330 … const PetscReal xx = 2 * (PetscReal)i / (Mx - 1) - 1, yy = 2 * (PetscReal)j / (My - 1) - 1; in FormInitialGuess() 336 … const PetscReal xx = 2 * (PetscReal)i / (Mx - 1) - 1, yy = 2 * (PetscReal)j / (My - 1) - 1; in FormInitialGuess() 367 PetscInt i, j, Mx, My, xs, ys, xm, ym; in FormRHS() local 372 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in FormRHS() 375 hy = 1.0 / (PetscReal)(My - 1); in FormRHS() [all …]
|
| /petsc/src/ts/tests/ |
| H A D | ex24.c | 20 PetscInt i, j, Mx, My, xs, ys, xm, ym; in RHSJacobian() local 31 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in RHSJacobian() 35 hy = 2.50 / (PetscReal)My; in RHSJacobian() 142 PetscInt i, j, xs, ys, xm, ym, Mx, My; in InitialConditions() local 147 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in InitialConditions() 150 hy = 2.5 / (PetscReal)My; in InitialConditions()
|
| /petsc/src/ts/tutorials/autodiff/ |
| H A D | adr_ex5adj.cxx | 296 PetscInt i, j, xs, ys, xm, ym, Mx, My; in InitialConditions() local 301 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in InitialConditions() 304 hy = 2.5 / (PetscReal)My; in InitialConditions() 340 PetscInt i, j, Mx, My, xs, ys, xm, ym; in InitializeLambda() local 344 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in InitializeLambda() 347 j = (PetscInt)(y * (My - 1)); in InitializeLambda() 530 PetscInt i, j, xs, ys, xm, ym, Mx, My; in RHSFunctionPassive() local 538 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in RHSFunctionPassive() 541 hy = 2.50 / (PetscReal)My; in RHSFunctionPassive() 610 PetscInt i, j, xs, ys, xm, ym, gxs, gys, gxm, gym, Mx, My; in RHSFunctionActive() local [all …]
|
| H A D | adr_ex5adj_mf.cxx | 184 PetscInt i, j, xs, ys, xm, ym, Mx, My; in InitialConditions() local 189 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in InitialConditions() 192 hy = 2.5 / (PetscReal)My; in InitialConditions() 228 PetscInt i, j, Mx, My, xs, ys, xm, ym; in InitializeLambda() local 232 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, &My, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_… in InitializeLambda() 235 j = (PetscInt)(y * (My - 1)); in InitializeLambda()
|