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

Comparing trunk/mdtools/BASS_parse/BASS_parse.c (file contents):
Revision 117 by mmeineke, Tue Sep 24 22:10:55 2002 UTC vs.
Revision 133 by chuckv, Fri Oct 11 15:09:01 2002 UTC

# Line 4 | Line 4
4  
5   #include "BASS_parse.h"
6  
7 + #ifdef IS_MPI
8 + #define __is_lex__
9 + #include "../headers/mpiInterface.h"
10 + #endif
11 +
12   #define HASH_SIZE 211 // the size of the hash table
13   #define SHIFT 4 // the bit shift for the hash index calculation
14  
# Line 180 | Line 185 | char* get_definition( char* defined ){
185    // search failed, therefore there is an error
186  
187    fprintf( stderr, "%s was not found in the defined list\n", defined );
188 <  exit(1);
188 > #ifdef IS_MPI
189 >  mpiInterfaceExit();
190 > #endif
191 >  exit(0);
192 >  return NULL;
193   }
194  
195   /*
# Line 263 | Line 272 | int hash ( char* text ){
272  
273      fprintf( stderr,
274               "There has been an overflow error in the hash key.");
275 + #ifdef IS_MPI
276 +    mpiInterfaceExit();
277 + #endif
278      exit(0);
279    }
280    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines