Changeset 9675 for trunk/anuga_core/examples/checkpointing
- Timestamp:
- Feb 16, 2015, 3:49:51 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/examples/checkpointing/runCheckpoint.py
r9394 r9675 81 81 # 82 82 # Though in the part of the code where you create the domain as normal, 83 # remember to turn on checkpointing via domain.set_checkpointing(checkpoint_time = 5)84 # (see code below)83 # remember to turn on checkpointing via 84 # domain.set_checkpointing(checkpoint_time = 5) (see code below) 85 85 #------------------------------------------------------------------------------ 86 86 try: … … 88 88 from anuga import load_checkpoint_file 89 89 90 domain = load_checkpoint_file(domain_name = domain_name, checkpoint_dir = checkpoint_dir) 90 domain = load_checkpoint_file(domain_name = domain_name, 91 checkpoint_dir = checkpoint_dir) 91 92 92 93 except: … … 134 135 Bts = Transmissive_n_momentum_zero_t_momentum_set_stage_boundary(domain, wave) 135 136 136 domain.set_boundary({'outflow' :Br, 'inflow' :Br, 'inner' :Br, 'exterior' :Br, 'open' :Bts}) 137 domain.set_boundary({'outflow' :Br, 'inflow' :Br, 'inner' :Br, 138 'exterior' :Br, 'open' :Bts}) 137 139 138 140 … … 167 169 print 'That took %.2f seconds' %(time.time()-t0) 168 170 print 'Communication time %.2f seconds'%domain.communication_time 169 print 'Reduction Communication time %.2f seconds'%domain.communication_reduce_time 171 print 'Reduction Communication time %.2f seconds' \ 172 %domain.communication_reduce_time 170 173 print 'Broadcast time %.2f seconds'%domain.communication_broadcast_time 171 174 else:
Note: See TracChangeset
for help on using the changeset viewer.