Searched refs:ftmp (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/ts/tutorials/ |
| H A D | ex18.c | 887 PetscReal *fmin, *fmax, *fint, *ftmp, t; in MonitorFunctionals() local 894 PetscCall(PetscMalloc4(fcount, &fmin, fcount, &fmax, fcount, &fint, fcount, &ftmp)); in MonitorFunctionals() 933 PetscCall((*func->func)(dm, time, cg->centroid, cx, ftmp, func->ctx)); in MonitorFunctionals() 934 fxc[0] = ftmp[user->monitorFuncs[f]->offset]; in MonitorFunctionals() 937 fmin[f] = PetscMin(fmin[f], ftmp[f]); in MonitorFunctionals() 938 fmax[f] = PetscMax(fmax[f], ftmp[f]); in MonitorFunctionals() 939 fint[f] += cg->volume * ftmp[f]; in MonitorFunctionals() 995 PetscCall(PetscFree4(fmin, fmax, fint, ftmp)); in MonitorFunctionals()
|
| H A D | ex11.c | 974 PetscReal *fmin, *fmax, *fintegral, *ftmp; in MonitorVTK() local 979 PetscCall(PetscMalloc4(fcount, &fmin, fcount, &fmax, fcount, &fintegral, fcount, &ftmp)); in MonitorVTK() 1003 PetscCall((*flink->func)(mod, time, cg->centroid, cx, ftmp, flink->ctx)); in MonitorVTK() 1006 fmin[i] = PetscMin(fmin[i], ftmp[i]); in MonitorVTK() 1007 fmax[i] = PetscMax(fmax[i], ftmp[i]); in MonitorVTK() 1008 fintegral[i] += cg->volume * ftmp[i]; in MonitorVTK() 1051 PetscCall(PetscFree4(fmin, fmax, fintegral, ftmp)); in MonitorVTK()
|