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 |
|
|
|
15 |
|
|
using namespace std; |
16 |
|
|
|
17 |
|
|
class SphereHarm{ |
18 |
|
|
|
19 |
|
|
public: |
20 |
|
|
SphereHarm( int bandWidth ); |
21 |
|
|
virtual ~SphereHarm(); |
22 |
|
|
void doTransforms(vector<double> gridData); |
23 |
|
|
void printShapesFileStart(char name[200], string particle, double mass, |
24 |
|
|
double momInert[3][3]); |
25 |
|
|
void printToShapesFile(char name[200], int index); |
26 |
|
|
|
27 |
|
|
protected: |
28 |
|
|
int l, m; |
29 |
|
|
int dummy1, dummy2, nfuncs; |
30 |
|
|
|
31 |
|
|
int bw, size; |
32 |
|
|
int cutoff, order; |
33 |
|
|
int rank, howmany_rank; |
34 |
|
|
double *rdata, *idata; |
35 |
|
|
double *rcoeffs, *icoeffs; |
36 |
|
|
double *weights; |
37 |
|
|
double *seminaive_naive_tablespace, *workspace; |
38 |
|
|
double **seminaive_naive_table; |
39 |
|
|
double tstart, tstop; |
40 |
|
|
double biggest, cm, sm; |
41 |
|
|
fftw_plan dctPlan, fftPlan; |
42 |
|
|
fftw_iodim dims[1], howmany_dims[1]; |
43 |
|
|
|
44 |
|
|
}; |
45 |
|
|
|
46 |
chrisfen |
1288 |
#endif |