Home
last modified time | relevance | path

Searched refs:solutioncoefficients (Results 1 – 1 of 1) sorted by relevance

/petsc/src/tao/unconstrained/tutorials/
H A Dspectraladjointassimilation.c88 PetscReal *solutioncoefficients; member
264 PetscCall(PetscFree(appctx.solutioncoefficients)); in main()
299 PetscCall(PetscMalloc1(appctx->ncoeff, &appctx->solutioncoefficients)); in ComputeSolutionCoefficients()
302 …0; i < appctx->ncoeff; i++) PetscCall(PetscRandomGetValue(rand, &appctx->solutioncoefficients[i])); in ComputeSolutionCoefficients()
373 …for (j = 0; j < appctx->ncoeff; j++) s[i] += appctx->solutioncoefficients[j] * PetscSinScalar(2 * … in TrueSolution()
406 …s[i] += appctx->solutioncoefficients[j] * PetscSinScalar(2 * (j + 1) * PETSC_PI * (xg[i] + appctx-… in ComputeReference()