00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00057
00058 #include "hdyn.h"
00059
00060 #ifdef TOOLBOX
00061
00062 #include "../evolve/kira_grape_include.C"
00063
00064
00065
00066
00067
00068 main(int argc, char **argv)
00069 {
00070 check_help();
00071
00072 bool binaries, long_binary_output, B_flag, verbose, out, n_sq, calc_e;
00073 int which_lagr;
00074
00075
00076
00077 if (!parse_sys_stats_main(argc, argv,
00078 which_lagr,
00079 binaries, long_binary_output, B_flag,
00080 calc_e, n_sq, out, verbose)) {
00081 get_help();
00082 exit(1);
00083 }
00084
00085 if (!n_sq) {
00086
00087 #ifndef USE_GRAPE
00088 calc_e = false;
00089 #endif
00090
00091 }
00092
00093
00094
00095 hdyn *b;
00096 int i = 0;
00097
00098 while (b = get_hdyn(cin)) {
00099
00100 check_addstar(b);
00101 check_set_external(b, true);
00102 cerr << endl;
00103
00104 if (B_flag || check_kira_flag(b, "kira_evolve_binaries"))
00105 b->set_use_dstar(true);
00106
00107 if (i++ > 0) cerr << endl;
00108
00109
00110
00111
00112 sys_stats(b,
00113 0.5,
00114 verbose,
00115 binaries,
00116 long_binary_output,
00117 which_lagr,
00118 true,
00119 calc_e,
00120 n_sq,
00121 kira_calculate_energies,
00122 print_dstar_params,
00123 print_dstar_stats);
00124
00125 if (out) {
00126 b->log_history(argc, argv);
00127 put_node(cout, *b);
00128 }
00129
00130 rmtree(b);
00131 }
00132 }
00133
00134 #endif