| /petsc/src/dm/tests/ |
| H A D | ex48.c | 28 const PetscScalar Lx = 1.0, Ly = 1.0, Lz = 1.0; in test_3d() local 41 PetscCall(DMDASetUniformCoordinates(da, 0.0, Lx, 0.0, Ly, 0.0, Lz)); in test_3d() 50 const PetscScalar z = (Lz * k) / P; in test_3d() 51 … 0.5 * Lx, 2) + PetscPowScalarInt(y - 0.5 * Ly, 2) + PetscPowScalarInt(z - 0.5 * Lz, 2) + 10.0 * c; in test_3d() 71 const PetscScalar Lx = 1.0, Ly = 1.0, Lz = 1.0; in test_2d() local 83 PetscCall(DMDASetUniformCoordinates(da, 0.0, Lx, 0.0, Ly, 0.0, Lz)); in test_2d() 110 const PetscScalar Lx = 1.0, Ly = 1.0, Lz = 1.0; in test_3d_compat() local 123 PetscCall(DMDASetUniformCoordinates(da, 0.0, Lx, 0.0, Ly, 0.0, Lz)); in test_3d_compat() 136 const PetscScalar z = (Lz * k) / P; in test_3d_compat() 137 …alarInt(x - 0.5 * Lx, 2) + PetscPowScalarInt(y - 0.5 * Ly, 2) + PetscPowScalarInt(z - 0.5 * Lz, 2); in test_3d_compat() [all …]
|
| H A D | ex47.c | 14 const PetscScalar Lx = 1.0, Ly = 1.0, Lz = 1.0; in test_3d() local 26 PetscCall(DMDASetUniformCoordinates(da, 0.0, Lx, 0.0, Ly, 0.0, Lz)); in test_3d() 35 PetscScalar z = (Lz * k) / P; in test_3d() 36 …alarInt(x - 0.5 * Lx, 2) + PetscPowScalarInt(y - 0.5 * Ly, 2) + PetscPowScalarInt(z - 0.5 * Lz, 2); in test_3d() 57 const PetscScalar Lx = 1.0, Ly = 1.0, Lz = 1.0; in test_2d() local 68 PetscCall(DMDASetUniformCoordinates(da, 0.0, Lx, 0.0, Ly, 0.0, Lz)); in test_2d() 134 const PetscScalar Lx = 1.0, Ly = 1.0, Lz = 1.0; in test_3d_nocoord() local 154 PetscScalar z = (Lz * k) / P; in test_3d_nocoord() 155 …alarInt(x - 0.5 * Lx, 2) + PetscPowScalarInt(y - 0.5 * Ly, 2) + PetscPowScalarInt(z - 0.5 * Lz, 2); in test_3d_nocoord()
|
| H A D | ex42.c | 16 const PetscScalar Lx = 1.0, Ly = 1.0, Lz = 1.0; in test_3d() local 28 PetscCall(DMDASetUniformCoordinates(da, 0.0, Lx, 0.0, Ly, 0.0, Lz)); in test_3d() 37 PetscScalar z = (Lz * k) / P; in test_3d() 38 …alarInt(x - 0.5 * Lx, 2) + PetscPowScalarInt(y - 0.5 * Ly, 2) + PetscPowScalarInt(z - 0.5 * Lz, 2); in test_3d() 59 const PetscScalar Lx = 1.0, Ly = 1.0, Lz = 1.0; in test_2d() local 70 PetscCall(DMDASetUniformCoordinates(da, 0.0, Lx, 0.0, Ly, 0.0, Lz)); in test_2d() 136 const PetscScalar Lx = 1.0, Ly = 1.0, Lz = 1.0; in test_3d_nocoord() local 156 PetscScalar z = (Lz * k) / P; in test_3d_nocoord() 157 …alarInt(x - 0.5 * Lx, 2) + PetscPowScalarInt(y - 0.5 * Ly, 2) + PetscPowScalarInt(z - 0.5 * Lz, 2); in test_3d_nocoord()
|
| /petsc/src/snes/tutorials/ |
| H A D | ex48.c | 255 PetscReal Lx, Ly, Lz; /* Model domain */ member 462 thi->Lz = 1000; in THICreate() 478 PetscCall(PetscOptionsReal("-thi_Lz", "Z Domain size (m)", "", thi->Lz, &thi->Lz, NULL)); in THICreate() 544 thi->Lz *= units->meter; in THICreate() 557 …g, driving stress %8.2g\n", (double)thi->Lx, (double)thi->Ly, (double)thi->Lz, (double)(rho * grav… in THICreate() 604 …PetscReal Lx = thi->Lx / thi->units->meter, Ly = thi->Ly / thi->units->meter, Lz = thi->Lz / thi->… in THISetUpDM() local 608 …t_FMT "), size (m) %g x %g x %g\n", level, (double)Lx, (double)Ly, (double)Lz, Mx, My, Mz, Mx * My… in THISetUpDM()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex14.c | 241 PetscReal Lx, Ly, Lz; /* Model domain */ member 526 thi->Lz = 1000; in THICreate() 548 PetscCall(PetscOptionsReal("-thi_Lz", "Z Domain size (m)", "", thi->Lz, &thi->Lz, NULL)); in THICreate() 623 thi->Lz *= units->meter; in THICreate() 636 …g, driving stress %8.2g\n", (double)thi->Lx, (double)thi->Ly, (double)thi->Lz, (double)(rho * grav… in THICreate() 1560 …PetscReal Lx = thi->Lx / thi->units->meter, Ly = thi->Ly / thi->units->meter, Lz = thi->Lz / thi->… in main() local 1564 …, num elements %3d x %3d x %3d (%8d), size (m) %g x %g x %g\n", i, Lx, Ly, Lz, Mx, My, Mz, Mx * My… in main()
|