Changeset 9363
- Timestamp:
- Nov 5, 2014, 6:55:34 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/demos/checkpointing/runCheckpoint.py
r9269 r9363 75 75 76 76 #------------------------------------------------------------------------------ 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) 79 83 #------------------------------------------------------------------------------ 80 84 try: … … 86 90 except: 87 91 #-------------------------------------------------------------------------- 88 # Setup Domain onlyon processor 092 # Normal Setup of Domain on processor 0 89 93 #-------------------------------------------------------------------------- 90 94 if myid == 0: … … 171 175 #-------------------------------------------------- 172 176 # Merge the individual sww files into one file 177 # But don't delete the sub domain sww files 173 178 #-------------------------------------------------- 174 179 domain.sww_merge() 175 180 176 181 177 #domain.dump_triangulation()178 179 182 finalize()
Note: See TracChangeset
for help on using the changeset viewer.