Changeset 8694
- Timestamp:
- Feb 14, 2013, 7:43:48 AM (12 years ago)
- Location:
- trunk/anuga_core
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/fit_interpolate/fit.py
r8690 r8694 81 81 alpha=None, 82 82 verbose=False, 83 cg_precon=' None',83 cg_precon='Jacobi', 84 84 use_c_cg=True): 85 85 … … 479 479 attribute_name=None, 480 480 use_cache=False, 481 cg_precon=' None',482 use_c_cg= False):481 cg_precon='Jacobi', 482 use_c_cg=True): 483 483 """Wrapper around internal function _fit_to_mesh for use with caching. 484 484 """ … … 533 533 max_read_lines=None, 534 534 attribute_name=None, 535 cg_precon=' None',536 use_c_cg= False):535 cg_precon='Jacobi', 536 use_c_cg=True): 537 537 """ 538 538 Fit a smooth surface to a triangulation, -
trunk/anuga_core/source/anuga/load_mesh/loadASCII.py
r8150 r8694 580 580 #IntType = Int 581 581 582 #print 'mesh vertices',mesh['vertices'].shape 583 584 582 585 #the triangulation 583 586 mesh['vertices'] = num.array(mesh['vertices'], num.float) 587 mesh['vertex_attribute_titles'] = \ 588 num.array(string_to_char(mesh['vertex_attribute_titles']), num.character) 589 590 num_attributes = len(mesh['vertex_attribute_titles']) 591 num_vertices = mesh['vertices'].shape[0] 592 #print 'num_attrib ',num_attributes 584 593 if mesh['vertex_attributes'] != None: 585 594 mesh['vertex_attributes'] = \ 586 595 num.array(mesh['vertex_attributes'], num.float) 587 mesh['vertex_attribute_titles'] = \ 588 num.array(string_to_char(mesh['vertex_attribute_titles']), num.character) 596 597 if num_attributes > 0 : 598 mesh['vertex_attributes'] = \ 599 num.reshape(mesh['vertex_attributes'],(num_vertices,-1)) 600 601 602 589 603 mesh['segments'] = num.array(mesh['segments'], IntType) 590 604 mesh['segment_tags'] = num.array(string_to_char(mesh['segment_tags']), … … 635 649 'num_of_dimensions')) 636 650 outfile.variables['vertices'][:] = mesh['vertices'] 651 652 #print 'mesh vertex attributes', mesh['vertex_attributes'].shape 653 637 654 if (mesh['vertex_attributes'] != None and 638 655 (mesh['vertex_attributes'].shape[0] > 0 and -
trunk/anuga_core/source/anuga/utilities/compile.py
r8690 r8694 283 283 284 284 # adding open mp support just for now 285 s += ' -fopenmp -g'285 s += ' -fopenmp ' 286 286 287 287 if verbose: -
trunk/anuga_core/validation_tests/Tests/Case_studies/Okushiri/create_okushiri.py
r8676 r8694 27 27 #-------------------------------------------------------------------------- 28 28 29 base_resolution = 0.01 # triangles 30 base_resolution = 0.02 # 1,972,289 triangles 31 base_resolution = 0.04 # 989,669 triangles 32 base_resolution = 0.1 # 397,456 triangles 33 base_resolution = 0.6 # 68162 triangles 34 base_resolution = 2.0 # 21214 triangles 35 base_resolution = 4.0 # 11069 triangles 29 36 30 base_resolution = 0.25 # Use this to coarsen or refine entire mesh. 37 print base_resolution 31 38 32 39 # Basic geometry and bounding polygon … … 87 94 88 95 # Interior regions and creation of mesh 89 interior_regions = [[rhs_region, 0.0005 ],96 interior_regions = [[rhs_region, 0.0005*base_resolution], 90 97 [island, 0.0003*base_resolution], 91 98 [gulleys, 0.00003*base_resolution]] … … 172 179 #------------------------------------------------------------- 173 180 if __name__ == "__main__": 181 182 print 'create mesh' 174 183 create_mesh(elevation_in_mesh=True) 175 184 -
trunk/anuga_core/validation_tests/Tests/Case_studies/Okushiri/run_okushiri.py
r8693 r8694 104 104 #------------------------------------------------------------- 105 105 if __name__ == "__main__": 106 main(elevation_in_mesh= True)106 main(elevation_in_mesh=False)
Note: See TracChangeset
for help on using the changeset viewer.