https://github.com/teuben/nemo
Revision d0f673bdaeabe8dffa77528c13d81063a20d29f6 authored by Peter Teuben on 03 April 2024, 01:39:10 UTC, committed by Peter Teuben on 03 April 2024, 01:39:10 UTC
1 parent 0615225
Raw File
Tip revision: d0f673bdaeabe8dffa77528c13d81063a20d29f6 authored by Peter Teuben on 03 April 2024, 01:39:10 UTC
format
Tip revision: d0f673b
potential.h
/*
 *  POTENTIAL: 
 *	interfaces to aid in dynamically loading potentials
 *
 *	jul 1987:	original implementation
 *	sep 2001:	added C++ support, including const'ing 
 */

#ifndef _potential_h
#define _potential_h


typedef struct a_potential {
    string name;
    string pars;
    string file;
    struct a_potential *next;
} a_potential;

typedef void (*potproc_double)(const int *, const double *, double *, double *, const double *);
typedef void (*potproc_float) (const int *, const float *,  float *,  float *,  const float *);
#ifdef SINGLEPREC
typedef potproc_float potproc_real;
#else
typedef potproc_double potproc_real;
#endif

#if defined(__cplusplus)
extern "C" {
#endif


potproc_real   get_potential        (const string, const string, const string);
potproc_float  get_potential_float  (const string, const string, const string);
potproc_double get_potential_double (const string, const string, const string);
proc           get_inipotential     (void);
real           get_pattern          (void);
void           set_pattern          (real);

#if defined(__cplusplus)
}
#endif


#endif
back to top