Searched refs:x_tot (Results 1 – 2 of 2) sorted by relevance
10 PetscReal x_tot = 0; in project_function() local13 for (PetscInt d = 0; d < dim; d++) x_tot += x[d]; in project_function()15 PetscScalar value = c % 2 ? PetscSinReal(2 * M_PI * x_tot) : PetscCosReal(2 * M_PI * x_tot); in project_function()
11 PetscReal x_tot = 0; in project_function() local14 for (PetscInt d = 0; d < dim; d++) x_tot += x[d]; in project_function()15 for (PetscInt c = 0; c < Nc; c++) u[c] = sin(2 * M_PI * x_tot); in project_function()