--- trunk/OOPSE/src/oopse.cpp 2003/12/22 21:27:04 892 +++ trunk/OOPSE/src/oopse.cpp 2004/05/12 20:14:21 1173 @@ -17,6 +17,7 @@ #include "Integrator.hpp" #include "Thermo.hpp" #include "ReadWrite.hpp" +#include "OOPSEMinimizer.hpp" char* program_name; using namespace std; @@ -26,8 +27,7 @@ int main(int argc,char* argv[]){ char* in_name; SimSetup* startMe; SimInfo* entry_plug; - - + // first things first, all of the initializations MPI_Init( &argc, &argv ); // the MPI communicators @@ -44,6 +44,17 @@ int main(int argc,char* argv[]){ program_name = argv[0]; // save the program name in case we need it if( worldRank == 0 ){ + std::cerr << + "+--------------------------------------------------------------------+\n" << + "| ____ ____ ____ _____ ______ The OpenSource, Object-oriented |\n" << + "| / __ \\/ __ \\/ __ \\/ ___// ____/ Parallel Simulation Engine. |\n" << + "| / / / / / / / /_/ /\\__ \\/ __/ |\n" << + "| / /_/ / /_/ / ____/___/ / /___ Copyright 2004 by the |\n" << + "| \\____/\\____/_/ /____/_____/ University of Notre Dame. |\n" << + "| http://maul.chem.nd.edu/OOPSE |\n" << + "+--------------------------------------------------------------------+\n" << + "\n"; + if( argc < 2 ){ strcpy( painCave.errMsg, "Error, bass file is needed to run.\n" ); painCave.isFatal = 1; @@ -55,8 +66,7 @@ int main(int argc,char* argv[]){ strcpy( checkPointMsg, "Successful number of arguments" ); MPIcheckPoint(); - - + // create the simulation objects, and get the show on the road entry_plug = new SimInfo; @@ -72,9 +82,11 @@ int main(int argc,char* argv[]){ delete startMe; + if (!entry_plug->has_minimizer) + entry_plug->the_integrator->integrate(); + else + entry_plug->the_minimizer->minimize(); - entry_plug->the_integrator->integrate(); - #ifdef PROFILE writeProfiles(); #endif //profile