--- trunk/mdtools/interface_implementation/MakeStamps.cpp 2002/11/07 17:53:34 166 +++ trunk/mdtools/interface_implementation/MakeStamps.cpp 2002/11/14 22:00:44 176 @@ -111,17 +111,17 @@ int MakeStamps::moleculeAssign( event* the_event ){ switch( the_event->evt.asmt.asmt_type ){ case STRING: - return current_mol->assignString( the_event->evt.asmt.lhs, + the_event->err_msg = current_mol->assignString( the_event->evt.asmt.lhs, the_event->evt.asmt.rhs.sval ); break; case DOUBLE: - return current_mol->assignDouble( the_event->evt.asmt.lhs, + the_event->err_msg = current_mol->assignDouble( the_event->evt.asmt.lhs, the_event->evt.asmt.rhs.dval ); break; case INT: - return current_mol->assignInt( the_event->evt.asmt.lhs, + the_event->err_msg = current_mol->assignInt( the_event->evt.asmt.lhs, the_event->evt.asmt.rhs.ival ); break; @@ -131,7 +131,8 @@ int MakeStamps::moleculeAssign( event* the_event ){ return 0; break; } - return 0; + if( the_event->err_msg != NULL ) return 0; + return 1; } int MakeStamps::moleculeEnd( event* the_event ){ @@ -176,22 +177,25 @@ int MakeStamps::atomAssign( event* the_event ){ switch( the_event->evt.asmt.asmt_type ){ case STRING: - the_event->err_msg = current_atom->assignString( the_event->evt.asmt.lhs, - the_event->evt.asmt.rhs.sval ); + the_event->err_msg = + current_atom->assignString( the_event->evt.asmt.lhs, + the_event->evt.asmt.rhs.sval ); if( the_event->err_msg != NULL ) return 0; return 1; break; case DOUBLE: - the_event->err_msg = current_atom->assignDouble( the_event->evt.asmt.lhs, - the_event->evt.asmt.rhs.dval ); + the_event->err_msg = + current_atom->assignDouble( the_event->evt.asmt.lhs, + the_event->evt.asmt.rhs.dval ); if( the_event->err_msg != NULL ) return 0; return 1; break; case INT: - the_event->err_msg = current_atom->assignInt( the_event->evt.asmt.lhs, - the_event->evt.asmt.rhs.ival ); + the_event->err_msg = + current_atom->assignInt( the_event->evt.asmt.lhs, + the_event->evt.asmt.rhs.ival ); if( the_event->err_msg != NULL ) return 0; return 1; break;