Home
last modified time | relevance | path

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

/petsc/src/ksp/ksp/tutorials/
H A Dex51.c31 PetscScalar *Ke1D, *Ke2D, *Me1D, *Me2D; in main() local
77 PetscCall(PetscMalloc1(num2Dnodes * num2Dnodes, &Ke2D)); in main()
89 PetscCall(Form2DElementStiffness(p, Ke1D, Me1D, Ke2D)); in main()
97 PetscCall(MatSetValues(A, num2Dnodes, idx, num2Dnodes, idx, Ke2D, ADD_VALUES)); in main()
108 PetscCall(PetscFree(Ke2D)); in main()
287 …rorCode Form2DElementStiffness(PetscInt P, PetscScalar *Ke1D, PetscScalar *Me1D, PetscScalar *Ke2D) in Form2DElementStiffness() argument
300 Ke2D[indx3] = Ke1D[indx1] * Me1D[indx2] + Me1D[indx1] * Ke1D[indx2]; in Form2DElementStiffness()