Blame view

main.cpp 923 Bytes
3f56f1f9   dmayerich   initial commit
1
  #include "sphere.h"
d6f53e68   dmayerich   rts organization
2
  #include "rts/optics/material.h"
3f56f1f9   dmayerich   initial commit
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  #include <vector>
  //#include "rts/complex.h"
  
  #include "nearfield.h"
  //nearfieldStruct* NF;
  
  #include "microscope.h"
  microscopeStruct* SCOPE;
  
  #include "fieldslice.h"
  
  #include "fileout.h"
  #include "options.h"
  #include "montecarlo.h"
d6f53e68   dmayerich   rts organization
17
18
19
20
  #include "rts/math/point.h"
  #include "rts/math/spherical_bessel.h"
  #include "rts/math/matrix.h"
  #include "rts/math/quaternion.h"
3f56f1f9   dmayerich   initial commit
21
  
d6f53e68   dmayerich   rts organization
22
  #include "rts/envi/envi.h"
3f56f1f9   dmayerich   initial commit
23
24
25
26
  
  #include "warnings.h"
  
  fileoutStruct gFileOut;
51b6469a   dmayerich   added look-up tables
27
  bool verbose = false;
3f56f1f9   dmayerich   initial commit
28
29
30
31
32
33
34
  using namespace std;
  
  int cbessjyva(double v,complex<double> z,double &vm,complex<double>*cjv,

      complex<double>*cyv,complex<double>*cjvp,complex<double>*cyvp);
  
  int main(int argc, char *argv[])
  {
3f56f1f9   dmayerich   initial commit
35
36
37
  
  	SCOPE = new microscopeStruct();
  
3f56f1f9   dmayerich   initial commit
38
39
      LoadParameters(argc, argv);
  
3f56f1f9   dmayerich   initial commit
40
41
42
  	//initialize GPU memory for fields
  	SCOPE->init();
  
3f56f1f9   dmayerich   initial commit
43
44
  	gFileOut.Save(SCOPE);
  
51b6469a   dmayerich   added look-up tables
45
46
47
  	if(verbose)
          OutputOptions();
  
3f56f1f9   dmayerich   initial commit
48
49
50
  	SCOPE->destroy();
  
  
7d43100a   dmayerich   allow appending t...
51
  
3f56f1f9   dmayerich   initial commit
52
53
  
  }