Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

scale_grape.C

Go to the documentation of this file.
00001 
00002        //=======================================================//    _\|/_
00003       //  __  _____           ___                    ___       //      /|\
00004      //  /      |      ^     |   \  |         ^     |   \     //          _\|/_
00005     //   \__    |     / \    |___/  |        / \    |___/    //            /|\
00006    //       \   |    /___\   |  \   |       /___\   |   \   // _\|/_
00007   //     ___/   |   /     \  |   \  |____  /     \  |___/  //   /|\     
00008  //                                                       //            _\|/_
00009 //=======================================================//              /|\
00010 
00016 
00017 //  Steve McMillan, July 2000; revised July 2001
00018 
00019 #ifdef TOOLBOX
00020 
00021 #include "hdyn.h"
00022 
00023 #define USE_GRAPE
00024 #include "../evolve/kira_grape_include.C"       // GRAPE-specific functions:
00025                                                 // invoke by setting USE_GRAPE
00026 
00027 // Code is identical to the  main program in dyn/util/scale.C, except
00028 // that get_top_level_energies() is replaced by kira_top_level_energies(),
00029 // which uses GRAPE if possible.
00030 
00031 main(int argc, char ** argv)
00032 {
00033     real m = 0, q = -1, e = 0, r = 0;
00034     real eps = 0;
00035 
00036     bool debug = false;
00037     bool c_flag = false;
00038     bool e_flag = false;
00039     bool m_flag = false;
00040     bool q_flag = false;
00041     bool r_flag = false;
00042 
00043     if (!parse_scale_main(argc, argv, eps,
00044                           c_flag,
00045                           e_flag, e, m_flag, m,
00046                           q_flag, q, r_flag, r,
00047                           debug)) {
00048         get_help();
00049         exit(1);
00050     }
00051 
00052     hdyn *b = get_hdyn(cin);
00053     b->log_history(argc, argv);
00054 
00055     scale(b, eps, c_flag, e_flag, e, m_flag, m, q_flag, q, r_flag, r,
00056           debug, kira_top_level_energies);
00057 
00058     put_node(cout, *b);
00059 }
00060 
00061 #endif

Generated at Sun Feb 24 09:57:14 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001