Changeset 8823
- Timestamp:
- Apr 14, 2013, 5:37:22 PM (12 years ago)
- Location:
- trunk/anuga_core/source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/config.py
r8810 r8823 220 220 221 221 # Determine if we can read/write large NetCDF files 222 netcdf_mode_w = 'w l'223 netcdf_mode_a = ' r+'222 netcdf_mode_w = 'w' 223 netcdf_mode_a = 'a' 224 224 netcdf_mode_r = 'r' 225 225 -
trunk/anuga_core/source/anuga/file/netcdf.py
r8814 r8823 41 41 42 42 """ 43 44 43 45 44 46 45 try: 47 46 from Scientific.IO.NetCDF import NetCDFFile 48 47 return NetCDFFile(file_name, netcdf_mode) 49 except: 48 except: 50 49 from netCDF4 import Dataset 51 50 if netcdf_mode == 'wl' : … … 53 52 else: 54 53 return Dataset(file_name, netcdf_mode, format='NETCDF3_64BIT') 54 55 55 56 56 # from netCDF4 import Dataset -
trunk/anuga_core/source/anuga/geospatial_data/geospatial_data.py
r8819 r8823 707 707 if self.verbose is True: 708 708 log.critical('Geospatial_data: Reading %d points (in ~%d blocks) from file %s. ' 709 % (self.number_of_points, self.number_of_blocks ,709 % (self.number_of_points, self.number_of_blocks+1, 710 710 self.file_name)) 711 711 log.critical('Geospatial_data: Each block consists of %d data points' -
trunk/anuga_core/source/anuga_parallel/run_parallel_sw_merimbula.py
r8763 r8823 30 30 from anuga import Time_boundary 31 31 from anuga import Transmissive_boundary 32 from anuga import Transmissive_n_momentum_zero_t_momentum_set_stage_boundary 32 33 33 34 from anuga import rectangular_cross … … 84 85 if myid == 0: 85 86 domain = create_domain_from_file(mesh_filename) 86 domain.set_quantity('stage', Set_Stage(x0, x1, 1.0)) 87 #domain.set_quantity('stage', Set_Stage(x0, x1, 1.0)) 88 domain.set_quantity('stage', 0.0) 87 89 #domain.set_datadir('.') 88 90 domain.set_name('merimbula_new') … … 148 150 Br = Reflective_boundary(domain) # Solid reflective wall 149 151 150 domain.set_boundary({'outflow' :Br, 'inflow' :Br, 'inner' :Br, 'exterior' :Br, 'open' :Br}) 152 from math import sin 153 Bts = Transmissive_n_momentum_zero_t_momentum_set_stage_boundary(domain, lambda t: 10*sin(t/60)) 154 155 domain.set_boundary({'outflow' :Br, 'inflow' :Br, 'inner' :Br, 'exterior' :Br, 'open' :Bts}) 156 157 158 bdy_ids = domain.tag_boundary_cells['open'] 159 vol_ids = domain.boundary_cells[bdy_ids] 160 edge_ids = domain.boundary_edges[bdy_ids] 161 162 print domain.mesh.edge_midpoint_coordinates[3*vol_ids+edge_ids] 163 164 151 165 152 166 #------------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.