/*************************************************************************** zeta_main.cpp - description ------------------- begin : Mon Mar 17 05:35:56 2003 copyright : (C) 2002 by Cavalli Andrea email : cavalli@bioc.unizh.ch **************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef ALM_MPI #include Almost::MPI * Almost::MPI::mpi_ = NULL; #endif using namespace std; extern int interactive_mode; extern int check_mode; extern FILE * zeta_in; extern ZArgs args_; extern "C" void restart(); extern int interrupt; //extern stack file_name; //extern YY_BUFFER_STATE *include_stack; extern "C" { void init_(); void init_modules(); void zeta_parse(); void finalize_(); void push_file_name(const char * name); void pop_file_name(); } void zeta_term_(int){ Almost::aout<>> "<= 0) available = (int) *((int *) &nbytes); if(available==0){ cerr<<"Connection reset by peer\n"; exit(0); } char *buff = new char[available+1]; int nread = 0; nread = read(clientfd,buff,available); if(nread==0) break; buff[nread] = '\0'; // Almost::aout<> Starting MPI version"<> Rank "<