Changeset 9675
- Timestamp:
- Feb 16, 2015, 3:49:51 PM (9 years ago)
- Location:
- trunk/anuga_core
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/examples/cairns/runParallelCairns.py
r9395 r9675 49 49 50 50 # Create DEM from asc data 51 anuga.asc2dem(project.name_stem+'.asc', use_cache=project.cache, verbose=project.verbose) 51 anuga.asc2dem(project.name_stem+'.asc', use_cache=project.cache, 52 verbose=project.verbose) 52 53 53 54 # Create pts file for onshore DEM 54 anuga.dem2pts(project.name_stem+'.dem', use_cache=project.cache, verbose=project.verbose) 55 anuga.dem2pts(project.name_stem+'.dem', use_cache=project.cache, 56 verbose=project.verbose) 55 57 56 58 #------------------------------------------------------------------------------ -
trunk/anuga_core/examples/cairns/runcairns.py
r9396 r9675 37 37 38 38 # Create DEM from asc data 39 anuga.asc2dem(project.name_stem+'.asc', use_cache=project.cache, verbose=project.verbose) 39 anuga.asc2dem(project.name_stem+'.asc', use_cache=project.cache, 40 verbose=project.verbose) 40 41 41 42 # Create pts file for onshore DEM 42 anuga.dem2pts(project.name_stem+'.dem', use_cache=project.cache, verbose=project.verbose) 43 anuga.dem2pts(project.name_stem+'.dem', use_cache=project.cache, 44 verbose=project.verbose) 43 45 44 46 #------------------------------------------------------------------------------ -
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.