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 176 by mmeineke, Thu Nov 14 22:00:44 2002 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines