Changeset 9363


Ignore:
Timestamp:
Nov 5, 2014, 6:55:34 PM (10 years ago)
Author:
steve
Message:

Added some extra comments to checkpointing example

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/demos/checkpointing/runCheckpoint.py

    r9269 r9363  
    7575
    7676#------------------------------------------------------------------------------
    77 # Try to read in previous checkpoint file and if not possible
    78 # just go ahead as normal and produce domain as usual
     77# Use a try statement to read in previous checkpoint file and if not possible
     78# just go ahead as normal and produce domain as usual.
     79#
     80# Though in the part of the code where you create the domain as normal,
     81# remember to turn on checkpointing via domain.set_checkpointing(checkpoint_time = 5)
     82# (see code below)
    7983#------------------------------------------------------------------------------
    8084try:
     
    8690except:
    8791    #--------------------------------------------------------------------------
    88     # Setup Domain only on processor 0
     92    # Normal Setup of Domain on processor 0
    8993    #--------------------------------------------------------------------------
    9094    if myid == 0:
     
    171175#--------------------------------------------------
    172176# Merge the individual sww files into one file
     177# But don't delete the sub domain sww files
    173178#--------------------------------------------------
    174179domain.sww_merge()
    175180
    176181
    177 #domain.dump_triangulation()
    178 
    179182finalize()
Note: See TracChangeset for help on using the changeset viewer.