00001 #ifndef _H_MACROS_H_
00002 #define _H_MACROS_H_ 1
00003
00004
00005
00006
00007
00008
00009 #define H_H1D_E(h, name, nx, x1, x2) \
00010 h( name, h::Partition_Type(nx, x1, x2) )
00011
00012
00013
00014
00015
00016
00017 #define H_H1D_U(h, name, v) \
00018 h( name, h::Partition_Type(v) )
00019
00020
00021
00022
00023
00024
00025
00026
00027 #define H_H2D_E(h, name, nx, x1, x2, ny, y1, y2) \
00028 h( name, h::Partition_X_Type(nx, x1, x2) \
00029 , h::Partition_Y_Type(ny, y1, y2) )
00030
00031
00032
00033
00034
00035
00036
00037 #define H_H2D_U(h, name, vx, vy) \
00038 h( name, h::Partition_X_Type(vx), h::Partition_Y_Type(vy) )
00039
00040
00041
00042
00043 #define H_H1D_E_EP(h, name, nx, x1, x2, ep) \
00044 h( name, h::Partition_Type(nx, x1, x2, ep) )
00045
00046 #define H_H1D_U_EP(h, name, v, ep) \
00047 h( name, h::Partition_Type(v, ep) )
00048
00049 #define H_H2D_E_EP(h, name, nx, x1, x2, epx, ny, y1, y2, epy) \
00050 h( name, h::Partition_X_Type(nx, x1, x2, epx) \
00051 , h::Partition_Y_Type(ny, y1, y2, epy) )
00052
00053 #define H_H2D_U_EP(h, name, vx, epx, vy, epy ) \
00054 h( name, h::Partition_X_Type(vx, epx), h::Partition_Y_Type(vy, epy) )
00055
00056
00057
00058 #define H_H3D_E_EP(h, name, nx, x1, x2, epx, ny, y1, y2, epy, \
00059 nz, z1, z2, epz) \
00060 h( name, h::Partition_X_Type(nx, x1, x2, epx) \
00061 , h::Partition_Y_Type(ny, y1, y2, epy) \
00062 , h::Partition_Z_Type(nz, z1, z2, epz) )
00063
00064 #define H_H3D_U_EP(h, name, vx, epx, vy, epy , vz , epz) \
00065 h( name, h::Partition_X_Type(vx, epx), \
00066 h::Partition_Y_Type(vy, epy), \
00067 h::Partition_Z_Type(vz, epz) )
00068
00069 #endif // _H_MACROS_H_
00070