[Dock-fans] Fwd: parameters
Francesco Pietra
chiendarret at gmail.com
Sat Apr 25 15:46:52 PDT 2009
Please disregard this message (faulty questions). I am opening another
thread on compilation problems
francesco
---------- Forwarded message ----------
From: Francesco Pietra <chiendarret at gmail.com>
Date: Sat, Apr 25, 2009 at 9:12 PM
Subject: parameters
To: dock-fans <dock-fans at docking.org>
Following a series of hardware and software problems, now (dock 6.2,
compiled intel/mkl)
chemical_definition_file /opt/dock-4.0.1/parameter/chem.defn
points incorrectly.
Thus, /src/grid/define.h (between ====)
===============
/* */
/* Copyright UCSF, 1997 */
/* */
/*
Written by Todd Ewing
5/97
*/
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <limits.h>
#include <float.h>
/* Preprocessor constants, strings, and macros */
#define DOCK_VERSION "4.0.1"
#define RELEASING_DATE "May 17, 1998"
#define PARAMETER_PATH "/opt/dock-4.0.1/parameter/"
#define TRUE 1
#define FALSE 0
#define NEITHER -1
#define INITIAL_SCORE 1000
#define DISTANCE_MIN 0.3
#define PI 3.141592654
#define PRINTVAR(var, fmt) printf (#var " = " #fmt "\n", var)
#define SQR(x) ((x)*(x))
#define CUBE(x) ((x)*(x)*(x))
#define ABS(x) ((x) >= 0 ? (x) : -(x))
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#define MAX(x, y) ((x) > (y) ? (x) : (y))
#define NINT(x) (int) ((x) > 0 ? ((x) + 0.5) : ((x) - 0.5))
#define SIGN(x) ((x) < 0 ? -1 : 1)
#define NON_ZERO(x) (ABS (x) < 0.00001 ? FALSE : TRUE)
#define POWER(b, e, p) \
{ \
int word; \
float run; \
POWER_CORE(b, e, p) \
}
#define POWER_CORE(base, exponent, product) \
word = exponent; product = 1.0; run = base; \
while (word) \
{ \
if (word & 1) \
product *= run; \
run *= run; \
word >>= 1; \
}
/* String variable types */
typedef char STRING5[6];
typedef char STRING10[11];
typedef char STRING20[21];
typedef char STRING40[41];
typedef char STRING50[51];
typedef char STRING60[61];
typedef char STRING80[81];
typedef char STRING100[101];
typedef char STRING200[201];
typedef STRING80 FILE_NAME;
typedef float X;
typedef float XYZ[3];
typedef unsigned long MASK;
#define MASK_LENGTH 32
typedef struct sort_int
{
int id;
int value;
} SORT_INT;
int compare_int_descend (SORT_INT *a, SORT_INT *b);
int compare_int_ascend (SORT_INT *a, SORT_INT *b);
typedef struct singly_linked_integer
{
int value;
struct singly_linked_integer *next;
} SLINT;
typedef struct singly_linked_integer_pair
{
int i, j;
struct singly_linked_integer_pair *next;
} SLINT2;
typedef struct singly_linked_float
{
int value;
struct singly_linked_float *next;
} SLFLT;
=================
needs correction at
#define PARAMETER_PATH "/opt/dock-4.0.1/parameter/"
before recompiling dock.
A naive doubt:
(1) Concerning # preceding "define".
A perhaps less naive one:
(2) Is it correct that the definition of ions "leaprc.dock.ions",
which is placed in
..../parameters/leap/cmd
does not appear in define.h?
thanks
francesco pietra
More information about the Dock-fans
mailing list