43 #define SYNC cudaThreadSynchronize()
44 using namespace swarm;
48 int main(
int argc,
char* argv[]){
91 integ->set_ensemble( ens, device_ens );
100 const double integration_time = 5 * 2 * M_PI ;
101 const double begin_time = ens.
time_ranges().median ;
102 const double destination_time = begin_time + integration_time;
103 integ->set_destination_time ( destination_time );
111 for(
int i= 0; i < 10; i++ ){
112 integ->core_integrate();
118 device_ens.copyTo( ens );
125 std::cout <<
"Max Energy Conservation Error = " << max_deltaE << std::endl;