| /petsc/src/tao/unconstrained/tutorials/output/ |
| H A D | rosenbrock1_20.out | 4 stx: 0., fx: 1., dgx: -2. 7 stx: 0., fx: 1., dgx: -2. 12 stx: 0., fx: 0.773446, dgx: -0.154432 17 stx: 0., fx: 0.648599, dgx: -0.340628 20 stx: 0., fx: 0.648599, dgx: -0.340628 25 stx: 0., fx: 0.560405, dgx: -0.260357 30 stx: 0., fx: 0.379185, dgx: -0.125226 35 stx: 0., fx: 0.280758, dgx: -0.17334 40 stx: 0., fx: 0.187322, dgx: -0.878193 43 stx: 0., fx: 0.187322, dgx: -0.878193 [all …]
|
| H A D | rosenbrock1_20_alt.out | 4 stx: 0., fx: 1., dgx: -2. 7 stx: 0., fx: 1., dgx: -2. 12 stx: 0., fx: 0.773446, dgx: -0.154432 17 stx: 0., fx: 0.648599, dgx: -0.340628 20 stx: 0., fx: 0.648599, dgx: -0.340628 25 stx: 0., fx: 0.560405, dgx: -0.260357 30 stx: 0., fx: 0.379185, dgx: -0.125226 35 stx: 0., fx: 0.280758, dgx: -0.173338 40 stx: 0., fx: 0.187321, dgx: -0.878193 43 stx: 0., fx: 0.187321, dgx: -0.878193 [all …]
|
| /petsc/src/tao/linesearch/impls/morethuente/ |
| H A D | morethuente.c | 10 static PetscErrorCode Tao_mcstep(TaoLineSearch ls, PetscReal *stx, PetscReal *fx, PetscReal *dx, Pe… 28 …rintf(ls->viewer, "stx: %g, fx: %g, dgx: %g\n", (double)mt->stx, (double)mt->fx, (double)mt->dgx)); in TaoLineSearchMonitor_MT() 38 PetscReal dgx, dgy, dg, dg2, fx, fy, stx, sty, dgtest; in TaoLineSearchApply_MT() local 106 fx = finit; in TaoLineSearchApply_MT() 161 mt->fx = fx; in TaoLineSearchApply_MT() 227 if (stage1 && *f <= fx && *f > ftest1) { in TaoLineSearchApply_MT() 229 fxm = fx - stx * dgtest; /* and derivatives */ in TaoLineSearchApply_MT() 239 fx = fxm + stx * dgtest; /* Reset the function and */ in TaoLineSearchApply_MT() 245 PetscCall(Tao_mcstep(ls, &stx, &fx, &dgx, &sty, &fy, &dgy, &ls->step, f, &dg)); in TaoLineSearchApply_MT() 363 static PetscErrorCode Tao_mcstep(TaoLineSearch ls, PetscReal *stx, PetscReal *fx, PetscReal *dx, Pe… in Tao_mcstep() argument [all …]
|
| H A D | morethuente.h | 10 PetscReal stx, fx, dgx; member
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex43.c | 73 PetscScalar fx[GAUSS_POINTS]; member 458 …art(_coefficients[j][i].eta[p]), (double)PetscRealPart(_coefficients[j][i].fx[p]), (double)PetscRe… in DMDAViewCoefficientsGnuplot2d() 661 static void FormMomentumRhsQ1(PetscScalar Fe[], PetscScalar coords[], PetscScalar fx[], PetscScalar… in FormMomentumRhsQ1() argument 682 Fe[NSD * i] += fac * Ni_p[i] * fx[p]; in FormMomentumRhsQ1() 897 prop_fx = props[ej][ei].fx; in AssembleF_Stokes() 1253 element_props[j][i].fx[p] = 0.0; in solve_stokes_2d_coupled() 1278 element_props[j][i].fx[p] = 0.0; in solve_stokes_2d_coupled() 1284 element_props[j][i].fx[p] = 0.0; in solve_stokes_2d_coupled() 1309 element_props[j][i].fx[p] = 0.0; in solve_stokes_2d_coupled() 1315 element_props[j][i].fx[p] = 0.0; in solve_stokes_2d_coupled() [all …]
|
| H A D | ex49.c | 84 PetscScalar E, nu, fx, fy; member 92 PetscScalar fx[GAUSS_POINTS]; member 405 …(double)PetscRealPart(_coefficients[j][i].nu[p]), (double)PetscRealPart(_coefficients[j][i].fx[p]), in DMDAViewCoefficientsGnuplot2d() 481 static void FormMomentumRhsQ1(PetscScalar Fe[], PetscScalar coords[], PetscScalar fx[], PetscScalar… in FormMomentumRhsQ1() argument 502 Fe[NSD * i] += fac * Ni_p[i] * fx[p]; in FormMomentumRhsQ1() 677 prop_fx = props[ej][ei].fx; in AssembleF_Elasticity() 845 element_props[j][i].fx[p] = 0.0; in solve_elasticity_2d() 876 element_props[j][i].fx[p] = 0.0; in solve_elasticity_2d()
|
| H A D | ex42.c | 28 PetscScalar fx[GAUSS_POINTS]; member 823 static void FormMomentumRhsQ13D(PetscScalar Fe[], PetscScalar coords[], PetscScalar fx[], PetscScal… in FormMomentumRhsQ13D() argument 844 Fe[NSD * i] -= fac * Ni_p[i] * fx[p]; in FormMomentumRhsQ13D() 1106 prop_fx = props->fx; in AssembleF_Stokes() 1875 cell->fx[p] = 0.0 * coord_x; in solve_stokes_3d_coupled() 1905 cell->fx[p] = Fm[0]; in solve_stokes_3d_coupled() 1929 cell->fx[p] = 0.0; in solve_stokes_3d_coupled() 1952 cell->fx[p] = 0.0; in solve_stokes_3d_coupled() 1994 cell->fx[p] = 0.0; in solve_stokes_3d_coupled()
|
| H A D | ex70.c | 301 static void LForm_MomentumRHS(PetscScalar Fe[], PetscScalar coords[], PetscScalar fx[], PetscScalar… in LForm_MomentumRHS() argument
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexcreate.c | 1570 PetscInt c, f, fx, fy, fz, e, ex, ey, ez; in DMPlexCreateCubeMesh_Internal() local 1580 for (fx = 0; fx < numXEdges; ++fx) { in DMPlexCreateCubeMesh_Internal() 1581 PetscInt cell = (fz * numYEdges + fy) * numXEdges + fx; in DMPlexCreateCubeMesh_Internal() 1582 PetscInt faceB = firstZFace + (fy * numXEdges + fx) * numZVertices + fz; in DMPlexCreateCubeMesh_Internal() 1583 … PetscInt faceT = firstZFace + (fy * numXEdges + fx) * numZVertices + ((fz + 1) % numZVertices); in DMPlexCreateCubeMesh_Internal() 1584 PetscInt faceF = firstYFace + (fz * numXEdges + fx) * numYVertices + fy; in DMPlexCreateCubeMesh_Internal() 1585 … PetscInt faceK = firstYFace + (fz * numXEdges + fx) * numYVertices + ((fy + 1) % numYVertices); in DMPlexCreateCubeMesh_Internal() 1586 PetscInt faceL = firstXFace + (fz * numYEdges + fy) * numXVertices + fx; in DMPlexCreateCubeMesh_Internal() 1587 … PetscInt faceR = firstXFace + (fz * numYEdges + fy) * numXVertices + ((fx + 1) % numXVertices); in DMPlexCreateCubeMesh_Internal() 1601 …if (bdX != DM_BOUNDARY_NONE && fx == numXEdges - 1 && cutLabel) PetscCall(DMLabelSetValue(cutLabel… in DMPlexCreateCubeMesh_Internal() [all …]
|
| H A D | plexfem.c | 1046 PetscScalar *x, *fx; in DMPlexInsertBoundaryValuesRiemann() local 1070 PetscCall(DMGetWorkArray(dm, pdim, MPIU_SCALAR, &fx)); in DMPlexInsertBoundaryValuesRiemann() 1103 for (d = 0; d < pdim; ++d) fx[d] = cx[d] + DMPlex_DotD_Internal(dim, &cgrad[d * dim], dx); in DMPlexInsertBoundaryValuesRiemann() 1104 PetscCall((*func)(time, fg->centroid, fg->normal, fx, xG, ctx)); in DMPlexInsertBoundaryValuesRiemann() 1125 PetscCall(DMRestoreWorkArray(dm, pdim, MPIU_SCALAR, &fx)); in DMPlexInsertBoundaryValuesRiemann()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex18.c | 886 PetscScalar **fx; in MonitorFunctionals() local 895 PetscCall(PetscMalloc3(fcount, &fdm, fcount, &fv, fcount, &fx)); in MonitorFunctionals() 914 PetscCall(VecGetArray(fv[f], &fx[f])); in MonitorFunctionals() 931 PetscCall(DMPlexPointGlobalFieldRef(dm, c, 1, fx[f], &fxc)); in MonitorFunctionals() 984 PetscCall(VecRestoreArray(fv[f], &fx[f])); in MonitorFunctionals() 996 PetscCall(PetscFree3(fdm, fv, fx)); in MonitorFunctionals()
|
| /petsc/src/dm/impls/stag/tutorials/ |
| H A D | ex2.c | 63 static PetscScalar fx(PetscScalar x, PetscScalar y) in fx() function 474 valRhs = fx(cArrX[ex][iprev], cArrY[ey][icenter]); in CreateSystem()
|
| H A D | ex3.c | 88 static PetscScalar fx(PetscScalar x, PetscScalar y, PetscScalar z) in fx() function 724 …valRhs = fx(arrCoord[ez][ey][ex][icux[0]], arrCoord[ez][ey][ex][icux[1]], arrCoord[ez][ey][ex][icu… in CreateSystem()
|
| /petsc/src/dm/impls/stag/tests/ |
| H A D | ex18.c | 65 static PetscScalar fx(PetscScalar x, PetscScalar y) in fx() function 615 valRhs = dv * fx(cArrX[ex][iprev], cArrY[ey][icenter]); in CreateSystem()
|