typedefs.h
上传用户:chinafayin
上传日期:2022-04-05
资源大小:153k
文件大小:3k
源码类别:

并行计算

开发平台:

Visual C++

  1. /*
  2.  $Id: typedefs.h,v 1.8 2009/05/08 23:02:18 rhuey Exp $
  3.  AutoDock  
  4. Copyright (C) 2009 The Scripps Research Institute. All rights reserved.
  5.  AutoDock is a Trade Mark of The Scripps Research Institute.
  6.  This program is free software; you can redistribute it and/or
  7.  modify it under the terms of the GNU General Public License
  8.  as published by the Free Software Foundation; either version 2
  9.  of the License, or (at your option) any later version.
  10.  This program is distributed in the hope that it will be useful,
  11.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  GNU General Public License for more details.
  14.  You should have received a copy of the GNU General Public License
  15.  along with this program; if not, write to the Free Software
  16.  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  17.  */
  18. #ifndef _TYPEDEFS_H
  19. #define _TYPEDEFS_H
  20. /******************************************************************************
  21.  *      Name: typedefs.h                                                      *
  22.  *  Function: Defines types used in Molecular Applications.                   *
  23.  *Copyright (C) 2009 The Scripps Research Institute. All rights reserved.
  24.  *----------------------------------------------------------------------------*
  25.  *    Author: Garrett Matthew Morris, The Scripps Research Institute          *
  26.  *      Date: JAN/18/2003                                                     *
  27.  *----------------------------------------------------------------------------*
  28.  *    Inputs: none                                                            *
  29.  *   Returns: nothing                                                         *
  30.  *   Globals: none                                                            *
  31.  *----------------------------------------------------------------------------*
  32.  * Modification Record                                                        *
  33.  * Date     Inits   Comments                                                  *
  34.  * 01/18/03 GMM     This header added                                         *
  35.  ******************************************************************************/
  36. #ifdef USE_INT_AS_LONG
  37.     typedef int  FourByteLong;
  38.     typedef unsigned int UnsignedFourByteLong;
  39. #else
  40.     typedef long FourByteLong;
  41.     typedef unsigned long UnsignedFourByteLong;
  42. #endif
  43. #ifdef USE_DOUBLE
  44.     typedef double Real;
  45. #   define FDFMT "%lf"
  46. #else
  47.     typedef float Real;
  48. #   define FDFMT "%f"
  49. #endif
  50. #define FDFMT2 FDFMT " " FDFMT
  51. #define FDFMT3 FDFMT " " FDFMT " " FDFMT
  52. typedef float MapType; //the grid map type can be changed independent of other 'Real's
  53. #   define MAPFMT "%f"
  54. #ifdef USE_VELOCITY_ENGINE
  55. typedef union
  56. {
  57. vector float vec;
  58. float  elements[4];
  59. } Float4;
  60. #endif
  61. #endif
  62. /* EOF */