#NEWLINE# def _add_unconnected_var( self , pathname , meta ) : #NEWLINE# #INDENT# '\n        Add an entry to this vecwrapper for the given unconnected variable so the\n        component can access its value through the vecwrapper.\n        ' #NEWLINE# if ( 'val' in meta ) : #NEWLINE# #INDENT# val = meta [ 'val' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'shape' in meta ) : #NEWLINE# #INDENT# shape = meta [ 'shape' ] #NEWLINE# val = numpy . zeros ( shape ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise RuntimeError ( ( "Unconnected param '%s' has no specified val or shape" % pathname ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . _dat [ self . _sysdata . _scoped_abs_name ( pathname ) ] = Accessor ( self , None , val , meta , self . _probdata , False , dangling = True )