Working Version with Population update and T+ interactions.

This commit is contained in:
Christian
2019-05-08 13:03:10 +02:00
parent 2f764c4812
commit 0f2a5625a2
63 changed files with 1353 additions and 646 deletions
+4 -4
View File
@@ -9,16 +9,15 @@
#ifndef kinematics_h
#define kinematics_h
#include <sstream>
#include <blitz/tinyvec2.h>
#include "constants.h"
#include "error_types.h"
#include <blitz/tinyvec2.h>
#include <sstream>
typedef blitz::TinyVector<double,3> vec3;
inline double vec3Abs(const vec3 &vec) {
return( sqrt( pow(vec[0],2) + pow(vec[1],2) + pow(vec[2],2)) );
}
@@ -125,4 +124,5 @@ inline vec3 calc_newDirection(const vec3 &direction_old, const double &theta_cha
return(vec3(sin(theta_new)*cos(phi_new) , sin(theta_new)*sin(phi_new) , cos(theta_new)));
}
#endif /* kinematics_h */