Searched refs:c21 (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/ksp/ksp/tutorials/network/ |
| H A D | ex1_nest.c | 153 Mat e11, c12, c21, v22; in FormOperator() local 167 c21 = mats[1][0]; /* couplings */ in FormOperator() 203 PetscCall(MatSetValuesLocal(c21, 1, row, 1, col, val, INSERT_VALUES)); in FormOperator() 213 PetscCall(MatSetValuesLocal(c21, 1, row, 1, col, val, INSERT_VALUES)); in FormOperator()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex20fwd.c | 3 #define c21 2.0 macro 46 f[1] = c21 * (xdot[0] - x[1]) + xdot[1] - user->mu * ((1.0 - x[0] * x[0]) * x[1] - x[0]); in IFunction() 64 J[1][0] = c21 * a + user->mu * (1.0 + 2.0 * x[0] * x[1]); in IJacobian() 65 J[1][1] = -c21 + a - user->mu * (1.0 - x[0] * x[0]); in IJacobian()
|