Toolkit Tutorial: Programming


  /* The atom stream is invalid when an atom is added to the reaction. */
 
dt_mod_on ( reaction );
 
dt_addcomponent ( reaction , molecule1 , DX_ROLE_AGENT );
 
dt_mod_off ( reaction );
 
if ( dt_invalid ( container ) == 1 )
   
printf ( "The container is invalid.\n" );