Advertisement
Guest User

Untitled

a guest
Jun 29th, 2015
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #ifndef _GAUSS_H_
  2. #define _GAUSS_H_
  3. #include <petscksp.h>
  4.  
  5. // Gaussian evaluation points - x-component for gauss5
  6. static const PetscScalar GAUSS_5_X[7] = {
  7. 0.33333333333333,
  8. 0.47014206410511,
  9. 0.47014206410511,
  10. 0.05971587178977,
  11. 0.10128650732346,
  12. 0.10128650732346,
  13. 0.79742698535309};
  14.  
  15. // Gaussian evaluation points - y-component for gauss5
  16. static const PetscScalar GAUSS_5_Y[7] = {
  17. 0.33333333333333,
  18. 0.47014206410511,
  19. 0.05971587178977,
  20. 0.47014206410511,
  21. 0.10128650732346,
  22. 0.79742698535309,
  23. 0.10128650732346};
  24.  
  25. // Gaussian weights for gauss5
  26. static const PetscScalar GAUSS_5_W[7] = {
  27. 0.22500000000000,
  28. 0.13239415278851,
  29. 0.13239415278851,
  30. 0.13239415278851,
  31. 0.12593918054483,
  32. 0.12593918054483,
  33. 0.12593918054483};
  34.  
  35. // number of evaluation points for gauss5
  36. #define GAUSS_5_NG 7
  37. PetscScalar gauss5(PetscScalar (*f)(PetscScalar x, PetscScalar y));
  38.  
  39. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement