00001 #ifndef WGENERAL
00002 #define WGENERAL
00003
00004
00005 #include<fstream>
00006 #include <blitz/array.h>
00007 #include <blitz/array/stencil-et.h>
00008 #include <blitz/timer.h>
00009
00010 BZ_USING_NAMESPACE(blitz)
00011 BZ_USING_NAMESPACE(blitz::tensor)
00012
00013
00014 using namespace blitz;
00015 using namespace std;
00016
00017 typedef Array<double,2> Array2D;
00018 typedef Array<double,1> Array1D;
00019
00020
00021 #include "wmaskgrid.h"
00022 #include "wspr.h"
00023
00024 #include "wplot.h"
00025 #include "wmaxwell.h"
00026
00027 BZ_DECLARE_STENCIL3(derive14,A,dA,h)
00028 dA = central14n(A) / h;
00029 BZ_END_STENCIL
00030
00031 BZ_DECLARE_STENCIL3(derive12,A,dA,h)
00032 dA = central12n(A) / h;
00033 BZ_END_STENCIL
00034
00035 #endif