libkernels.cpp 1.2 KB

123456789101112131415161718192021222324252627
  1. #include <kernels.h>
  2. #include <template-kernels.hpp>
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. void helm3d_f_(const int32_t* nd, const float* zk, const float* sources, const float* charge, const int32_t* ns, const float* ztarg, const int32_t* nt, float* pot, const float* thresh) {
  7. helm3d<float>(nd, zk, sources, charge, ns, ztarg, nt, pot, thresh);
  8. }
  9. void helm3d_vec_f_(const int32_t* nd, const float* zk, const float* sources, const float* charge, const int32_t* ns, const float* ztarg, const int32_t* nt, float* pot, const float* thresh) {
  10. helm3d_vec<float,4>(nd, zk, sources, charge, ns, ztarg, nt, pot, thresh);
  11. }
  12. void helm3d_d_(const int32_t* nd, const double* zk, const double* sources, const double* charge, const int32_t* ns, const double* ztarg, const int32_t* nt, double* pot, const double* thresh) {
  13. helm3d<double>(nd, zk, sources, charge, ns, ztarg, nt, pot, thresh);
  14. }
  15. void helm3d_vec_d_(const int32_t* nd, const double* zk, const double* sources, const double* charge, const int32_t* ns, const double* ztarg, const int32_t* nt, double* pot, const double* thresh) {
  16. helm3d_vec<double,4>(nd, zk, sources, charge, ns, ztarg, nt, pot, thresh);
  17. }
  18. #ifdef __cplusplus
  19. }
  20. #endif