Lines Matching full:temp
427 PetscReal **temp; in RHSMatrixLaplaciangllDM() local
437 …ntLaplacianCreate(appctx->SEMop.gll.n, appctx->SEMop.gll.nodes, appctx->SEMop.gll.weights, &temp)); in RHSMatrixLaplaciangllDM()
444 for (j = 0; j < appctx->param.N; j++) temp[i][j] = temp[i][j] * vv; in RHSMatrixLaplaciangllDM()
459 …PetscCall(MatSetValuesLocal(A, appctx->param.N, rowsDM, appctx->param.N, rowsDM, &temp[0][0], ADD_… in RHSMatrixLaplaciangllDM()
468 …tLaplacianDestroy(appctx->SEMop.gll.n, appctx->SEMop.gll.nodes, appctx->SEMop.gll.weights, &temp)); in RHSMatrixLaplaciangllDM()
489 PetscReal **temp; in RHSMatrixAdvectiongllDM() local
498 …ntAdvectionCreate(appctx->SEMop.gll.n, appctx->SEMop.gll.nodes, appctx->SEMop.gll.weights, &temp)); in RHSMatrixAdvectiongllDM()
509 …PetscCall(MatSetValuesLocal(A, appctx->param.N, rowsDM, appctx->param.N, rowsDM, &temp[0][0], ADD_… in RHSMatrixAdvectiongllDM()
518 …tAdvectionDestroy(appctx->SEMop.gll.n, appctx->SEMop.gll.nodes, appctx->SEMop.gll.weights, &temp)); in RHSMatrixAdvectiongllDM()
559 Vec temp; in FormFunctionGradient() local
577 PetscCall(VecDuplicate(G, &temp)); in FormFunctionGradient()
578 PetscCall(VecPointwiseMult(temp, G, G)); in FormFunctionGradient()
579 PetscCall(VecDot(temp, appctx->SEMop.mass, f)); in FormFunctionGradient()
582 PetscCall(VecWAXPY(temp, -1.0, appctx->dat.ic, appctx->dat.true_solution)); in FormFunctionGradient()
583 PetscCall(VecPointwiseMult(temp, temp, temp)); in FormFunctionGradient()
585 PetscCall(VecDot(temp, appctx->SEMop.mass, &errex)); in FormFunctionGradient()
586 PetscCall(VecDestroy(&temp)); in FormFunctionGradient()
606 Vec temp; in MonitorError() local
610 PetscCall(VecDuplicate(appctx->dat.ic, &temp)); in MonitorError()
611 PetscCall(VecWAXPY(temp, -1.0, appctx->dat.ic, appctx->dat.true_solution)); in MonitorError()
612 PetscCall(VecPointwiseMult(temp, temp, temp)); in MonitorError()
613 PetscCall(VecDot(temp, appctx->SEMop.mass, &nrm)); in MonitorError()
614 PetscCall(VecDestroy(&temp)); in MonitorError()