Changes between Version 2 and Version 3 of LayoutObjects


Ignore:
Timestamp:
04/23/12 14:42:59 (13 years ago)
Author:
Jonathan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • LayoutObjects

    v2 v3  
    4848
    4949{{{
    50 CALL CreateLayout(GmGlobal, layout)
    51 CALL LoadLayout(layout, data, 'ISO512')
    52 layout%level = 2
    53 layout%mB(:,1:nDim,:)=layout%mB(:,1:nDim,:)+256 !Shift everything by 256 level 3 cells = 1/4 of the grid
    54 CALL UnloadFieldFromLayout(layout, data, FieldID, lHydroPeriodic, levels(n)%gmbc(1))
    55 CALL DestroyLayout(layout)
    56 DEALLOCATE(data)
     50 CALL CreateLayout(GmGlobal, layout)
     51 CALL LoadLayout(layout, data, 'ISO512')
     52 layout%level = 2
     53 layout%mB(:,1:nDim,:)=layout%mB(:,1:nDim,:)+256 !Shift everything by 256 level 3 cells = 1/4 of the grid
     54 CALL UnloadFieldFromLayout(layout, data, FieldID, lHydroPeriodic, levels(n)%gmbc(1))
     55 CALL DestroyLayout(layout)
     56 DEALLOCATE(data)
     57}}}
    5758
    58 
    59 }}}
     59 The only caveat is that we must use the same number of processors for the saving and the loading.  But once we reload and dump a chombo file - we could restart the simulation with a different number of processors.
    6060
    6161 * For more information on the Field sub-object's properties see ProcessingFields