Ignore:
Timestamp:
10/11/19 00:25:20 (5 years ago)
Author:
bdef
Message:

CHG: syntax cahnge to meet most of Pep8 requirement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/mesh/roundmesh.py

    r24115 r24213  
    55from triangle import triangle
    66
     7
    78def roundmesh(md, radius, resolution):
    89    """
     
    1011
    1112       This script will generate a structured round mesh
    12        - radius     : specifies the radius of the circle in meters
    13        - resolution : specifies the resolution in meters
     13 - radius     : specifies the radius of the circle in meters
     14 - resolution : specifies the resolution in meters
    1415
    1516       Usage:
    16           md=roundmesh(md,radius,resolution)
     17          md = roundmesh(md, radius, resolution)
    1718    """
    1819
     
    2021
    2122    #Get number of points on the circle
    22     pointsonedge = np.floor((2. * np.pi * radius) / resolution) + 1  #+1 to close the outline
     23    pointsonedge = np.floor((2. * np.pi * radius) / resolution) + 1  # + 1 to close the outline
    2324
    2425    #Calculate the cartesians coordinates of the points
     
    3031    A['y'] = [y_list]
    3132    A['density'] = 1.
    32     print('now writing mesh')
    3333    expwrite(A, 'RoundDomainOutline.exp')
    3434
    3535    #Call Bamg
    36     print('now meshing')
    3736    md = triangle(md, 'RoundDomainOutline.exp', resolution)
    38     #md = bamg(md,'domain','RoundDomainOutline.exp','hmin',resolution)
     37    #md = bamg(md, 'domain', 'RoundDomainOutline.exp', 'hmin', resolution)
    3938
    4039    #move the closest node to the center
Note: See TracChangeset for help on using the changeset viewer.