Skip to content
Snippets Groups Projects
Select Git revision
  • 0a789359ee0e0db7e3d6b287d95fefc4c533f73d
  • master default protected
  • steplayer
  • bl
  • pluginMeshQuality
  • fixBugsAmaury
  • hierarchical-basis
  • alphashapes
  • relaying
  • new_export_boris
  • oras_vs_osm
  • reassign_partitions
  • distributed_fwi
  • rename-classes
  • fix/fortran-api-example-t4
  • robust_partitions
  • reducing_files
  • fix_overlaps
  • 3115-issue-fix
  • 3023-Fillet2D-Update
  • convert_fdivs
  • gmsh_4_14_0
  • gmsh_4_13_1
  • gmsh_4_13_0
  • gmsh_4_12_2
  • gmsh_4_12_1
  • gmsh_4_12_0
  • gmsh_4_11_1
  • gmsh_4_11_0
  • gmsh_4_10_5
  • gmsh_4_10_4
  • gmsh_4_10_3
  • gmsh_4_10_2
  • gmsh_4_10_1
  • gmsh_4_10_0
  • gmsh_4_9_5
  • gmsh_4_9_4
  • gmsh_4_9_3
  • gmsh_4_9_2
  • gmsh_4_9_1
  • gmsh_4_9_0
41 results

opts.cpp

Blame
  • Bessel.h 1.41 KiB
    // GetDP - Copyright (C) 1997-2014 P. Dular and C. Geuzaine, University of Liege
    //
    // See the LICENSE.txt file for license information. Please report all
    // bugs and problems to the public mailing list <getdp@geuz.org>.
    
    #ifndef _BESSEL_H_
    #define _BESSEL_H_
    
    #include <math.h>
    #include <complex>
    
    #define BESSEL_ERROR_INPUT     1
    #define BESSEL_OVERFLOW        2
    #define BESSEL_HALF_ACCURACY   3
    #define BESSEL_NO_ACCURACY     4
    #define BESSEL_NO_CONVERGENCE  5
    
    // These routines provide a C++ interface to the Fortran Bessel
    // functions from Donald E. Amos (Sandia National Laboratories)
    
    int BesselJn(double n, int num, double x, double *val);
    int BesselSphericalJn(double n, int num, double x, double *val);
    int BesselAltSphericalJn(double n, int num, double x, double *val);
    
    int BesselYn(double n, int num, double x, double *val);
    int BesselSphericalYn(double n, int num, double x, double *val);
    int BesselAltSphericalYn(double n, int num, double x, double *val);
    
    int BesselHn(int type, double n, int num, double x, std::complex<double> *val);
    int BesselSphericalHn(int type, double n, int num, double x, std::complex<double> *val);
    int BesselAltSphericalHn(int type, double n, int num, double x, std::complex<double> *val);
    
    // Utilities for backward compatibility
    
    double Spherical_j_n(int n, double x);
    double AltSpherical_j_n(int n, double x);
    double Spherical_y_n(int n, double x);
    double AltSpherical_y_n(int n, double x);
    
    #endif