Python Interface to MAPL

From GEOS-5
Revision as of 12:58, 14 August 2008 by Dasilva (talk | contribs) (New page: Here is a very high level example of a MAPL ocean/atmosphere couple model in Python: import MAPL atm = MAPL.GridComp(rc='atm.rc') ocn = MAPL.GridComp(rc='ocn.rc') atm.initialize() ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Here is a very high level example of a MAPL ocean/atmosphere couple model in Python:

import MAPL
atm = MAPL.GridComp(rc='atm.rc')
ocn = MAPL.GridComp(rc='ocn.rc')
atm.initialize()
ocn.initialize()
for t in clock.tick():
   atm.run()
   ocn.run()
 atm.finalize()
 ocn.finalize()