/** * @file biom.h * @ingroup global_gamer * @brief Some parameter/datatype definitions * @author Zeyun Yu (zeyun.yu@gmail.com) * @note None * @version $Id: biom.i,v 1.1 2010/12/08 04:54:20 fetk Exp $ * * @attention * @verbatim * * GAMER = < Geometry-preserving Adaptive MeshER > * Copyright (C) 1994-- Michael Holst and Zeyun Yu * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * @endverbatim */ // critical parameters for mesh generation /** @brief Isovalue used in the Marching Cube method */ #define IsoValue 2.5 /** @brief Blurring blobyness used in conversion from PDB/PQR to 3D volumes */ #define BLOBBYNESS -0.2f /** @brief Discretization rate of 3D volumes */ #define DIM_SCALE 1.99 /** @brief Coarsening Rate in surface post-processing */ #define CoarsenRate 0.1666 /** @brief The minimal volumes (in voxels) of islands to be removed */ #define MIN_VOLUME 333333 /** @brief The size of the bounding sphere (= object size X the following rate) */ #define SphereRatio 40 #define MaxVal 999999 #define MaxAtom 10 // Other definitions and data structures /** @brief Other definition */ #define PIE 3.14159265358979f /** @brief Other definition */ #define IndexVect(i,j,k) ((k)*xdim*ydim + (j)*xdim + (i)) #define IndexVect1(i,j,k) ((k)*xdim1*ydim1 + (j)*xdim1 + (i)) /** @brief Other definition */ #define max(x, y) ((x>y) ? (x):(y)) /** @brief Other definition */ #define min(x, y) ((x