Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. void CorrDimExperimentBehaviour::trans_process(AllData * ad, PropagateBehavior * pb) const
  2. {
  3. ConfigParam * cp = ad->cp;
  4.  
  5. int num_trajectories = cp->qj_num_trajectories;
  6.  
  7. int is_evo_dump_sep = int(cp->params.find("is_evo_dump_sep")->second);
  8. int is_evo_dump_avg = int(cp->params.find("is_evo_dump_avg")->second);
  9.  
  10. #pragma omp parallel for
  11. for (int tr_id = 0; tr_id < num_trajectories; tr_id++)
  12. {
  13. int thread_id = omp_get_thread_num();
  14. trans_process_single_cd(ad, pb, tr_id, thread_id);
  15. }
  16.  
  17. #pragma omp parallel for
  18. for (int tr_id = 0; tr_id < num_trajectories; tr_id++)
  19. {
  20. resresh_times(ad, tr_id);
  21.  
  22. calc_chars_start_std(ad, tr_id);
  23.  
  24. evo_chars_std(ad, tr_id, 0);
  25.  
  26. if (is_evo_dump_sep == 1)
  27. {
  28. dump_adr_single(ad, tr_id, false);
  29. }
  30. }
  31.  
  32. if (is_evo_dump_avg == 1)
  33. {
  34. dump_adr_avg(ad, false);
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement