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

Comparing trunk/mdtools/interface_implementation/BASS_interface.cpp (file contents):
Revision 139 by chuckv, Wed Oct 16 21:07:16 2002 UTC vs.
Revision 160 by mmeineke, Wed Oct 30 22:38:22 2002 UTC

# Line 6 | Line 6
6   #include "SimSetup.hpp"
7   #include "Globals.hpp"
8   #include "BASS_interface.h"
9 + #include "simError.h"
10  
11   #ifdef IS_MPI
12   #include "mpiBASS.h"
# Line 262 | Line 263 | void incr_block( block_type new_block ){
263    block_stack_ptr++;
264    
265    if( block_stack_ptr >= MAX_NEST ){
266 <    fprintf( stderr, "Event blocks nested too deeply\n" );
267 < #ifdef IS_MPI
268 <    mpiInterfaceExit();
269 < #endif
269 <    exit(1);
266 >    sprintf( painCave.errMsg,
267 >             "Event blocks nested too deeply\n" );
268 >    painCave.isFatal = 1;
269 >    simError();
270    }
271  
272    else current_block = new_block;
# Line 279 | Line 279 | void decr_block( void ){
279  
280    if( block_stack_ptr < 0 ){
281      
282 <    fprintf( stderr, "Too many event blocks closed\n" );
283 < #ifdef IS_MPI
284 <    mpiInterfaceExit();
285 < #endif
286 <    exit(1);
282 >    sprintf( painCave.errMsg,
283 >             "Too many event blocks closed\n" );
284 >    painCave.isFatal = 1;
285 >    simError();
286    }
287    
288    else current_block = block_stack[block_stack_ptr];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines