Changeset 4f9fe2 for pcp


Ignore:
Timestamp:
Apr 23, 2008, 4:05:59 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
51af4a
Parents:
d3482a
Message:

changed all small, already inlined, functions to using HAVE_INLINE (and if not they won't be inline)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pcp/src/perturbed.c

    rd3482a r4f9fe2  
    15671567 * \sa crossed() - is the same but vice versa, return value must be specified, \a i is returned.
    15681568 */
     1569#ifdef HAVE_INLINE
    15691570inline int cross(int i, int j)
     1571#else
     1572int cross(int i, int j)
     1573#endif
    15701574{
    15711575  const int matrix[NDIM*4] = {1,2,2,1,2,0,0,2,0,1,1,0};
     
    15851589 * \sa cross() - is the same but vice versa, return value must be specified, \a i is returned.
    15861590 */
     1591#ifdef HAVE_INLINE
    15871592inline int crossed(int i, int j)
     1593#else
     1594int crossed(int i, int j)
     1595#endif
    15881596{
    15891597  const int matrix[NDIM*4] = {1,2,2,1,2,0,0,2,0,1,1,0};
     
    16161624 * \param index component index for Lattice#RealBasisSQ
    16171625 */
     1626#ifdef HAVE_INLINE
    16181627inline double sawtooth(struct Lattice *Lat, double L[NDIM], const int index)
     1628#else
     1629double sawtooth(struct Lattice *Lat, double L[NDIM], const int index)
     1630#endif
    16191631{
    16201632  double axis = sqrt(Lat->RealBasisSQ[index]);
     
    16461658 * \note Continuous Set of Damped Gauge Transformations according to Keith and Bader
    16471659 */
     1660#ifdef HAVE_INLINE
    16481661inline double ShiftGaugeOrigin(struct Problem *P, double r[NDIM], const int index)
     1662#else
     1663double ShiftGaugeOrigin(struct Problem *P, double r[NDIM], const int index)
     1664#endif
    16491665{
    16501666  struct Ions *I = &P->Ion;
     
    16981714 * \param result[] return vector
    16991715 */
     1716#ifdef HAVE_INLINE
    17001717inline void MinImageConv(struct Lattice *Lat, const double R[NDIM], const double r[NDIM], double *result)
     1718#else
     1719void MinImageConv(struct Lattice *Lat, const double R[NDIM], const double r[NDIM], double *result)
     1720#endif
    17011721{
    17021722  //double axis = Lat->RealBasisQ[index];
Note: See TracChangeset for help on using the changeset viewer.