Python Interface to MAPL: Difference between revisions

Line 107: Line 107:
     Implements the GEOSgcs component by subclassing MAPL.GridComp.
     Implements the GEOSgcs component by subclassing MAPL.GridComp.
     """
     """
 
     def SetServices(self):
     def SetServices(self):
         """
         """
         SetServices for a composite component.
         SetServices for a composite component.
         """
         """
 
 
  #      Instantiate Children component
  #      Instantiate Children component
  #      ------------------------------
  #      ------------------------------
         ana = GEOSana()
         ana = GEOSana()
         gcm = GEOSgcm()
         gcm = GEOSgcm()
 
  #      Adopt children
  #      Adopt children
  #      --------------
  #      --------------
Line 143: Line 143:
  #      -------------------------
  #      -------------------------
         MAPL.GridComp.__Run__(self)
         MAPL.GridComp.__Run__(self)
 
  #      Retrieve some data from a state
  #      Retrieve some data from a state
  #      -------------------------------
  #      -------------------------------
         uwnd, vwnd, = self.Export.GetPointer(['UWND', 'VWND'])
         uwnd, vwnd, = self.Export.GetPointer(['UWND', 'VWND'])
 
  #      Just print it
  #      Just print it
  #      -------------
  #      -------------
         print "u-wind = ", uwnd.min(), uwnd.max()
         print "u-wind = ", uwnd.min(), uwnd.max()
         print "v-wind = ", vwnd.min(), vwnd.max()
         print "v-wind = ", vwnd.min(), vwnd.max()