ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/SHAPES/SphereHarm.hpp
Revision: 1292
Committed: Wed Jun 23 23:19:43 2004 UTC (20 years ago) by chrisfen
File size: 1046 byte(s)
Log Message:
Spherical harmonic tranformations are fully integrated and working

File Contents

# User Rev Content
1 chrisfen 1287 #ifndef __SPHEREHARM_HPP__
2     #define __SPHEREHARM_HPP__
3    
4     #include <errno.h>
5     #include <math.h>
6     #include <stdio.h>
7     #include <stdlib.h>
8     #include <string.h>
9     #include <vector>
10     #include <iostream>
11     #include <fstream>
12    
13     #include "fftw3.h"
14 chrisfen 1289 #include "cospmls.h"
15     #include "makeweights.h"
16     #include "FST_semi_memo.h"
17 chrisfen 1287
18     using namespace std;
19    
20     class SphereHarm{
21    
22     public:
23     SphereHarm( int bandWidth );
24     virtual ~SphereHarm();
25     void doTransforms(vector<double> gridData);
26 chrisfen 1292 void printShapesFileStart(char name[200], char particle[80], double mass,
27 chrisfen 1287 double momInert[3][3]);
28     void printToShapesFile(char name[200], int index);
29    
30     protected:
31     int l, m;
32     int dummy1, dummy2, nfuncs;
33    
34     int bw, size;
35     int cutoff, order;
36     int rank, howmany_rank;
37     double *rdata, *idata;
38     double *rcoeffs, *icoeffs;
39     double *weights;
40     double *seminaive_naive_tablespace, *workspace;
41     double **seminaive_naive_table;
42     double tstart, tstop;
43     double biggest, cm, sm;
44     fftw_plan dctPlan, fftPlan;
45     fftw_iodim dims[1], howmany_dims[1];
46    
47     };
48    
49 chrisfen 1288 #endif