Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

SPACE.H

Go to the documentation of this file.
00001 #ifndef CH_SPACE_H
00002 #define CH_SPACE_H
00003 
00004 #ifdef CH_LANG_CC
00005 /* _______              __
00006   / ___/ /  ___  __ _  / /  ___
00007  / /__/ _ \/ _ \/  ' \/ _ \/ _ \
00008  \___/_//_/\___/_/_/_/_.__/\___/ 
00009 */
00010 //
00011 // This software is copyright (C) by the Lawrence Berkeley
00012 // National Laboratory.  Permission is granted to reproduce
00013 // this software for non-commercial purposes provided that
00014 // this notice is left intact.
00015 // 
00016 // It is acknowledged that the U.S. Government has rights to
00017 // this software under Contract DE-AC03-765F00098 between
00018 // the U.S.  Department of Energy and the University of
00019 // California.
00020 //
00021 // This software is provided as a professional and academic
00022 // contribution for joint exchange. Thus it is experimental,
00023 // is provided ``as is'', with no warranties of any kind
00024 // whatsoever, no support, no promise of updates, or printed
00025 // documentation. By using this software, you acknowledge
00026 // that the Lawrence Berkeley National Laboratory and
00027 // Regents of the University of California shall have no
00028 // liability with respect to the infringement of other
00029 // copyrights by any part of this software.
00030 //
00031 
00032 //
00033 // $Id: SPACE.H,v 1.4 2003/07/29 23:04:41 bvs Exp $
00034 //
00035 #endif
00036 
00037 #ifdef DOXYGEN
00038 
00046 #define CH_SPACEDIM
00047 #undef  CH_SPACEDIM
00048 #define CH_SPACEDIM 3
00049 #endif
00050 
00051 #if ! defined(CH_SPACEDIM)
00052 #error CH_SPACEDIM must be defined
00053 #endif
00054 
00055 #if (CH_SPACEDIM != 1 && CH_SPACEDIM !=2 && CH_SPACEDIM != 3)
00056 #error CH_SPACEDIM must be either 1, 2, or 3
00057 #endif
00058 
00059 #if !defined(CH_LANG_FORT) || defined(CH_LANG_CC)
00060 
00071    const int SpaceDim = CH_SPACEDIM;
00072 #endif
00073 
00074 #if CH_SPACEDIM==1
00075 
00076 #  define D_EXPR(a,b,c) ((void)((a),0))
00077 
00078 #  define D_DECL(a,b,c) a
00079 
00080 #  define D_TERM(a,b,c) a
00081 #elif CH_SPACEDIM==2
00082 #  define D_EXPR(a,b,c) ((void)((a),(b),0))
00083 #  define D_DECL(a,b,c) a,b
00084 #  define D_TERM(a,b,c) a b
00085 #elif CH_SPACEDIM==3
00086 
00112 #  define D_EXPR(a,b,c) ((void)((a),(b),(c),0))
00113 
00114 
00138 #  define D_DECL(a,b,c) a,b,c
00139 
00140 
00159 #  define D_TERM(a,b,c) a b c
00160 #endif
00161 
00162 #ifdef DOXYGEN
00163 #undef CH_SPACEDIM
00164 #endif
00165 
00166 #endif /*CH_SPACE_H*/

Generated on Wed Jun 2 13:53:35 2004 for Chombo&INSwithParticles by doxygen 1.3.2