00001 00007 #include <iostream> 00008 #include <libxml/xmlmemory.h> 00009 #include <libxml/parser.h> 00010 #include <math.h> 00011 using namespace std; 00012 #include "def.h" 00013 //#include "io.h" 00014 #include "run.h" 00015 #include "list.h" 00016 #include "collection.h" 00017 #include "grid.h" 00018 #include "container.h" 00019 #include "model.h" 00020 #include "species.h" 00021 using namespace Species; 00022 #include "domain.h" 00023 #include "gui.h" 00024 00025 void usage() { 00026 cout <<"Usage:\n\tFirst run:\n"<<Run::programname<<"\nSubsequent runs:\n"<<Run::programname<<" restart_file\n"; 00027 } 00029 int main(int argc, char *argv[]) { 00030 Run::init(argc,argv); 00031 //- if(Run::inputfile[0]=='\0') { 00032 //- cerr<<"No input file specified\n"; 00033 //- usage(); 00034 //- exit(1); 00035 //- } 00036 Domain domain(Run::inputfile); 00037 Gui::init(argc,argv,&domain); 00038 Gui::run(); 00039 return 0; 00040 }