A Multiblock framework program consists of several subroutines: init, driver,finalize, and external boundary condition subroutines.
init and finalize are called by the Multiblock framework only on the first processor - these routines typically do specialized I/O, startup and shutdown tasks.
A separate driver subroutine runs for each block, and does the main work of the program. Because there may be several blocks per processor, several driver routines may be executing as threads simultaniously.
The boundary condition subroutines are called by the framework after a request from driver.
February 12, 2012
MBlock Homepage
Charm Homepage