Lines Matching refs:gamma
174 PetscScalar *x, *f, *r, *min, *alpha, *gamma; in FVRHSFunction() local
190 PetscCall(PetscMalloc4(dof, &r, dof, &min, dof, &alpha, dof, &gamma)); in FVRHSFunction()
207 gamma[0] = 1.0 / 3.0; in FVRHSFunction()
211 …u[j] = x[(i - 1) * dof + j] + PetscMax(0, PetscMin(min[j], alpha[0] + gamma[0] * r[j])) * (x[(i … in FVRHSFunction()
224 gamma[0] = hs * (hs + hs) / (hs + hf) / (hs + hs + hf); in FVRHSFunction()
228 …u[j] = x[(i - 1) * dof + j] + PetscMax(0, PetscMin(min[j], alpha[0] + gamma[0] * r[j])) * (x[(i … in FVRHSFunction()
240 gamma[0] = hf * (hs + hf) / (hf + hf) / (hs + hf + hf); in FVRHSFunction()
244 …u[j] = x[(i - 1) * dof + j] + PetscMax(0, PetscMin(min[j], alpha[0] + gamma[0] * r[j])) * (x[(i … in FVRHSFunction()
256 gamma[0] = 1.0 / 3.0; in FVRHSFunction()
260 …u[j] = x[(i - 1) * dof + j] + PetscMax(0, PetscMin(min[j], alpha[0] + gamma[0] * r[j])) * (x[(i … in FVRHSFunction()
272 gamma[0] = hf * (hf + hf) / (hf + hs) / (hf + hf + hs); in FVRHSFunction()
276 …u[j] = x[(i - 1) * dof + j] + PetscMax(0, PetscMin(min[j], alpha[0] + gamma[0] * r[j])) * (x[(i … in FVRHSFunction()
288 gamma[0] = hs * (hf + hs) / (hs + hs) / (hf + hs + hs); in FVRHSFunction()
292 …u[j] = x[(i - 1) * dof + j] + PetscMax(0, PetscMin(min[j], alpha[0] + gamma[0] * r[j])) * (x[(i … in FVRHSFunction()
314 PetscCall(PetscFree4(r, min, alpha, gamma)); in FVRHSFunction()
323 PetscScalar *x, *f, *r, *min, *alpha, *gamma; in FVRHSFunctionslow() local
339 PetscCall(PetscMalloc4(dof, &r, dof, &min, dof, &alpha, dof, &gamma)); in FVRHSFunctionslow()
356 gamma[0] = 1.0 / 3.0; in FVRHSFunctionslow()
360 …u[j] = x[(i - 1) * dof + j] + PetscMax(0, PetscMin(min[j], alpha[0] + gamma[0] * r[j])) * (x[(i … in FVRHSFunctionslow()
373 gamma[0] = hs * (hs + hs) / (hs + hf) / (hs + hs + hf); in FVRHSFunctionslow()
377 …u[j] = x[(i - 1) * dof + j] + PetscMax(0, PetscMin(min[j], alpha[0] + gamma[0] * r[j])) * (x[(i … in FVRHSFunctionslow()
386 gamma[0] = hf * (hf + hf) / (hf + hs) / (hf + hf + hs); in FVRHSFunctionslow()
390 …u[j] = x[(i - 1) * dof + j] + PetscMax(0, PetscMin(min[j], alpha[0] + gamma[0] * r[j])) * (x[(i … in FVRHSFunctionslow()
400 gamma[0] = hs * (hf + hs) / (hs + hs) / (hf + hs + hs); in FVRHSFunctionslow()
404 …u[j] = x[(i - 1) * dof + j] + PetscMax(0, PetscMin(min[j], alpha[0] + gamma[0] * r[j])) * (x[(i … in FVRHSFunctionslow()
417 gamma[0] = 1.0 / 3.0; in FVRHSFunctionslow()
421 …u[j] = x[(i - 1) * dof + j] + PetscMax(0, PetscMin(min[j], alpha[0] + gamma[0] * r[j])) * (x[(i … in FVRHSFunctionslow()
436 PetscCall(PetscFree4(r, min, alpha, gamma)); in FVRHSFunctionslow()
445 PetscScalar *x, *f, *r, *min, *alpha, *gamma; in FVRHSFunctionfast() local
461 PetscCall(PetscMalloc4(dof, &r, dof, &min, dof, &alpha, dof, &gamma)); in FVRHSFunctionfast()
478 gamma[0] = hs * (hs + hs) / (hs + hf) / (hs + hs + hf); in FVRHSFunctionfast()
482 …u[j] = x[(i - 1) * dof + j] + PetscMax(0, PetscMin(min[j], alpha[0] + gamma[0] * r[j])) * (x[(i … in FVRHSFunctionfast()
492 gamma[0] = hf * (hs + hf) / (hf + hf) / (hs + hf + hf); in FVRHSFunctionfast()
496 …u[j] = x[(i - 1) * dof + j] + PetscMax(0, PetscMin(min[j], alpha[0] + gamma[0] * r[j])) * (x[(i … in FVRHSFunctionfast()
509 gamma[0] = 1.0 / 3.0; in FVRHSFunctionfast()
513 …u[j] = x[(i - 1) * dof + j] + PetscMax(0, PetscMin(min[j], alpha[0] + gamma[0] * r[j])) * (x[(i … in FVRHSFunctionfast()
526 gamma[0] = hf * (hf + hf) / (hf + hs) / (hf + hf + hs); in FVRHSFunctionfast()
530 …u[j] = x[(i - 1) * dof + j] + PetscMax(0, PetscMin(min[j], alpha[0] + gamma[0] * r[j])) * (x[(i … in FVRHSFunctionfast()
541 PetscCall(PetscFree4(r, min, alpha, gamma)); in FVRHSFunctionfast()