SlowDown Algorithmic Regularization (SDAR)
Algorithmic Regularization with slowdown method for integrating few-body motions
Hermite/profile.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace H4{
4  class Profile{
5  public:
6  typedef long long unsigned int UInt64;
7  UInt64 hermite_single_step_count; // number of integration steps of hermite single
8  UInt64 hermite_group_step_count; // number of integration steps of hermite groups
9  UInt64 ar_step_count; // number of integration steps of ar
10  UInt64 ar_step_count_tsyn; // number of integration steps of ar
11  UInt64 break_group_count; // times of break groups
12  UInt64 new_group_count; // times of new groups
13 
14  Profile() {clear();}
15 
16  void clear() {
20  new_group_count = 0;
21  }
22 
24 
28  void printColumnTitle(std::ostream & _fout, const int _width=20) {
29  _fout<<std::setw(_width)<<"H4_step_single"
30  <<std::setw(_width)<<"H4_step_group"
31  <<std::setw(_width)<<"AR_step"
32  <<std::setw(_width)<<"AR_step_tsyn"
33  <<std::setw(_width)<<"break_group"
34  <<std::setw(_width)<<"new_group";
35  }
36 
38 
42  void printColumn(std::ostream & _fout, const int _width=20){
43  _fout<<std::setw(_width)<<hermite_single_step_count
44  <<std::setw(_width)<<hermite_group_step_count
45  <<std::setw(_width)<<ar_step_count
46  <<std::setw(_width)<<ar_step_count_tsyn
47  <<std::setw(_width)<<break_group_count
48  <<std::setw(_width)<<new_group_count;
49  }
50 
51  };
52 }
H4::Profile
Definition: Hermite/profile.h:4
H4::Profile::hermite_single_step_count
UInt64 hermite_single_step_count
Definition: Hermite/profile.h:7
H4::Profile::Profile
Profile()
Definition: Hermite/profile.h:14
H4::Profile::hermite_group_step_count
UInt64 hermite_group_step_count
Definition: Hermite/profile.h:8
H4::Profile::UInt64
long long unsigned int UInt64
Definition: Hermite/profile.h:6
H4::Profile::printColumn
void printColumn(std::ostream &_fout, const int _width=20)
print data of class members using column style
Definition: Hermite/profile.h:42
H4::Profile::printColumnTitle
void printColumnTitle(std::ostream &_fout, const int _width=20)
print titles of class members using column style
Definition: Hermite/profile.h:28
H4::Profile::ar_step_count
UInt64 ar_step_count
Definition: Hermite/profile.h:9
H4::Profile::new_group_count
UInt64 new_group_count
Definition: Hermite/profile.h:12
H4::Profile::ar_step_count_tsyn
UInt64 ar_step_count_tsyn
Definition: Hermite/profile.h:10
H4
Definition: ar_information.h:9
H4::Profile::clear
void clear()
Definition: Hermite/profile.h:16
H4::Profile::break_group_count
UInt64 break_group_count
Definition: Hermite/profile.h:11