Changeset 24250


Ignore:
Timestamp:
10/17/19 16:59:02 (5 years ago)
Author:
jdquinn
Message:

BUG: Extra spaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py

    r24213 r24250  
    88
    99def gmshplanet(* varargin):
    10     #GMSHPLANET - mesh generation for a sphere. Very specific code for gmsh. From demo / sphere.geo
     10    #GMSHPLANET - mesh generation for a sphere. Very specific code for gmsh. From demo/sphere.geo
    1111    #
    12     #   Available options (for more details see ISSM website http: / / issm.jpl.nasa.gov / ):
     12    #   Available options (for more details see ISSM website http://issm.jpl.nasa.gov/):
    1313    #
    1414    # - radius:             radius of the planet in km
     
    4949    fid.write('Point(3) = {0, radius, 0.0, resolution};\n')
    5050    fid.write('Circle(1) = {2, 1, 3};\n')
    51     fid.write('Point(4) = { - radius, 0, 0.0, resolution};\n')
    52     fid.write('Point(5) = {0, - radius, 0.0, resolution};\n')
     51    fid.write('Point(4) = { -radius, 0, 0.0, resolution};\n')
     52    fid.write('Point(5) = {0, -radius, 0.0, resolution};\n')
    5353    fid.write('Circle(2) = {3, 1, 4};\n')
    5454    fid.write('Circle(3) = {4, 1, 5};\n')
    5555    fid.write('Circle(4) = {5, 1, 2};\n')
    56     fid.write('Point(6) = {0, 0, - radius, resolution};\n')
     56    fid.write('Point(6) = {0, 0, -radius, resolution};\n')
    5757    fid.write('Point(7) = {0, 0, radius, resolution};\n')
    5858    fid.write('Circle(5) = {3, 1, 6};\n')
     
    6464    fid.write('Circle(11) = {4, 1, 6};\n')
    6565    fid.write('Circle(12) = {6, 1, 2};\n')
    66     fid.write('Line Loop(13) = {2, 8, - 10};\n')
     66    fid.write('Line Loop(13) = {2, 8, -10};\n')
    6767    fid.write('Surface(14) = {13};\n')
    6868    fid.write('Line Loop(15) = {10, 3, 7};\n')
    6969    fid.write('Surface(16) = {15};\n')
    70     fid.write('Line Loop(17) = { - 8, - 9, 1};\n')
     70    fid.write('Line Loop(17) = { -8, -9, 1};\n')
    7171    fid.write('Surface(18) = {17};\n')
    72     fid.write('Line Loop(19) = { - 11, - 2, 5};\n')
     72    fid.write('Line Loop(19) = { -11, -2, 5};\n')
    7373    fid.write('Surface(20) = {19};\n')
    74     fid.write('Line Loop(21) = { - 5, - 12, - 1};\n')
     74    fid.write('Line Loop(21) = { -5, -12, -1};\n')
    7575    fid.write('Surface(22) = {21};\n')
    76     fid.write('Line Loop(23) = { - 3, 11, 6};\n')
     76    fid.write('Line Loop(23) = { -3, 11, 6};\n')
    7777    fid.write('Surface(24) = {23};\n')
    78     fid.write('Line Loop(25) = { - 7, 4, 9};\n')
     78    fid.write('Line Loop(25) = { -7, 4, 9};\n')
    7979    fid.write('Surface(26) = {25};\n')
    80     fid.write('Line Loop(27) = { - 4, 12, - 6};\n')
     80    fid.write('Line Loop(27) = { -4, 12, -6};\n')
    8181    fid.write('Surface(28) = {27};\n')
    8282    fid.write('Surface Loop(29) = {28, 26, 16, 14, 20, 24, 22, 18};\n')
     
    107107    #call gmsh
    108108    if options.exist('refine'):
    109         subprocess.call('gmsh - tol 1e-8 - 2 sphere.geo - bgm sphere.pos', shell=True)
     109        subprocess.call('gmsh -tol 1e-8 -2 sphere.geo -bgm sphere.pos', shell=True)
    110110    else:
    111111        #call gmsh
    112         subprocess.call('gmsh - tol 1e-8 - 2 sphere.geo', shell=True)
     112        subprocess.call('gmsh -tol 1e-8 -2 sphere.geo', shell=True)
    113113
    114114    #import mesh:  {{{
Note: See TracChangeset for help on using the changeset viewer.