ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/interface_implementation/Globals.cpp
(Generate patch)

Comparing trunk/mdtools/interface_implementation/Globals.cpp (file contents):
Revision 118 by chuckv, Wed Sep 25 22:51:14 2002 UTC vs.
Revision 178 by mmeineke, Mon Nov 18 21:24:02 2002 UTC

# Line 3 | Line 3
3   #include <cstring>
4  
5   #include "Globals.hpp"
6 + #include "simError.h"
7 + #ifdef IS_MPI
8 + #include "mpiBASS.h"
9 + #endif // is_mpi
10  
11   /*
12   * The following section lists all of the defined tokens for the
# Line 793 | Line 797 | int Globals::hash( char* text ){
797  
798      // if the key is less than zero, we've had an overflow error
799  
800 <    fprintf( stderr,
800 >    sprintf( painCave.errMsg,
801               "There has been an overflow error in the Globals' hash key.");
802 <    exit(0);
802 >    painCave.isFatal = 1;
803 >    simError();
804 > #ifdef IS_MPI
805 >    if( painCave.isEventLoop ){
806 >      if( worldRank == 0 ) mpiInterfaceExit();
807 >    }
808 > #endif //is_mpi
809    }
810    
811    return key;
# Line 812 | Line 822 | void Globals::addHash( char* text, int token ){
822    key = hash( text );
823    the_element->setNext( command_table[key] );
824    command_table[key] = the_element;
825 < };
825 > }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines