~max-mcginley/third-order-lie-map/generator

« back to all changes in this revision

Viewing changes to tests/FourthOrderHamiltonian_unittest.cc

  • Committer: Max McGinley
  • Date: 2015-08-18 17:13:46 UTC
  • Revision ID: max.mcginley@stfc.ac.uk-20150818171346-ou729otm1b9zmnvo
RK4 method added to integrated interaction 4th order hamiltonian. Relative error around 5e-4 for 10mm x,y and 1Mev px, py. Added missing global and particle generation header files. 2 lattices uploaded for use in tests etc. Documentation to follow.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
                {2,2,2,3},
98
98
                {1,1,1,1},
99
99
                {1,1,2,2},
100
 
                {2,2,2,2}};
 
100
                {2,2,2,2},
 
101
                {2,2},
 
102
                {3,3},
 
103
                {0,4},
 
104
                {1,2},
 
105
                {0,0},
 
106
                {1,1}};
101
107
        std::vector<int> powers;
102
108
        for (int i = 0; i < sizeof(data)/sizeof(data[0]); i++) {
103
109
                const int* a = data[i];