Changeset 8694


Ignore:
Timestamp:
Feb 14, 2013, 7:43:48 AM (12 years ago)
Author:
steve
Message:

Okushiri seems t obe running now.

Location:
trunk/anuga_core
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/fit_interpolate/fit.py

    r8690 r8694  
    8181                 alpha=None,
    8282                 verbose=False,
    83                  cg_precon='None',
     83                 cg_precon='Jacobi',
    8484                 use_c_cg=True):
    8585
     
    479479                attribute_name=None,
    480480                use_cache=False,
    481                 cg_precon='None',
    482                 use_c_cg=False):
     481                cg_precon='Jacobi',
     482                use_c_cg=True):
    483483    """Wrapper around internal function _fit_to_mesh for use with caching.
    484484    """
     
    533533                 max_read_lines=None,
    534534                 attribute_name=None,
    535                  cg_precon='None',
    536                  use_c_cg=False):
     535                 cg_precon='Jacobi',
     536                 use_c_cg=True):
    537537    """
    538538    Fit a smooth surface to a triangulation,
  • trunk/anuga_core/source/anuga/load_mesh/loadASCII.py

    r8150 r8694  
    580580    #IntType = Int
    581581
     582    #print 'mesh vertices',mesh['vertices'].shape
     583
     584
    582585    #the triangulation
    583586    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
    584593    if mesh['vertex_attributes'] != None:
    585594        mesh['vertex_attributes'] = \
    586595            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
    589603    mesh['segments'] = num.array(mesh['segments'], IntType)
    590604    mesh['segment_tags'] = num.array(string_to_char(mesh['segment_tags']),
     
    635649                                                          'num_of_dimensions'))
    636650        outfile.variables['vertices'][:] = mesh['vertices']
     651
     652        #print 'mesh vertex attributes', mesh['vertex_attributes'].shape
     653       
    637654        if (mesh['vertex_attributes'] != None and
    638655            (mesh['vertex_attributes'].shape[0] > 0 and
  • trunk/anuga_core/source/anuga/utilities/compile.py

    r8690 r8694  
    283283     
    284284    # adding open mp support just for now
    285     s += ' -fopenmp -g'
     285    s += ' -fopenmp '
    286286
    287287    if verbose:
  • trunk/anuga_core/validation_tests/Tests/Case_studies/Okushiri/create_okushiri.py

    r8676 r8694  
    2727#--------------------------------------------------------------------------
    2828
     29base_resolution = 0.01 #  triangles
     30base_resolution = 0.02 # 1,972,289 triangles
     31base_resolution = 0.04 # 989,669 triangles
     32base_resolution = 0.1 # 397,456 triangles
     33base_resolution = 0.6 # 68162 triangles
     34base_resolution = 2.0 # 21214 triangles
     35base_resolution = 4.0 # 11069 triangles
    2936
    30 base_resolution = 0.25 # Use this to coarsen or refine entire mesh.
     37print base_resolution
    3138
    3239# Basic geometry and bounding polygon
     
    8794
    8895# Interior regions and creation of mesh
    89 interior_regions = [[rhs_region, 0.0005],
     96interior_regions = [[rhs_region, 0.0005*base_resolution],
    9097                    [island, 0.0003*base_resolution],
    9198                    [gulleys, 0.00003*base_resolution]]   
     
    172179#-------------------------------------------------------------
    173180if __name__ == "__main__":
     181
     182    print 'create mesh'
    174183    create_mesh(elevation_in_mesh=True)
    175184
  • trunk/anuga_core/validation_tests/Tests/Case_studies/Okushiri/run_okushiri.py

    r8693 r8694  
    104104#-------------------------------------------------------------
    105105if __name__ == "__main__":
    106     main(elevation_in_mesh=True)
     106    main(elevation_in_mesh=False)
Note: See TracChangeset for help on using the changeset viewer.