Changeset 3178


Ignore:
Timestamp:
Jun 19, 2006, 12:28:45 PM (18 years ago)
Author:
duncan
Message:

formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • development/dam_2006/run_dam.py

    r3145 r3178  
    1212
    1313
    14 #-------------------------------------------------------------------------------# Import necessary modules
    15 #-------------------------------------------------------------------------------
     14#----------------------------------------------------------------------------
     15# Import necessary modules
     16#----------------------------------------------------------------------------
    1617
    1718# Standard modules
     
    3233
    3334
    34 #-------------------------------------------------------------------------------                                 
     35#-----------------------------------------------------------------------------
    3536# Setup archiving of simulations
    36 #-------------------------------------------------------------------------------   
     37#-----------------------------------------------------------------------------
    3738
    3839copy (project.codedirname, project.outputtimedir + 'project.py')
    3940copy (project.codedir + 'run_dam.py', project.outputtimedir + 'run_dam.py')
    40 copy (project.codedir + 'create_mesh.py', project.outputtimedir + 'create_mesh.py')
     41copy (project.codedir + 'create_mesh.py',
     42      project.outputtimedir + 'create_mesh.py')
    4143print'output dir', project.outputtimedir
    4244
     
    4547screen_error_name = project.outputtimedir + "screen_error.txt"
    4648
    47 #-------------------------------------------------------------------------------                                 
     49#-----------------------------------------------------------------------------
    4850# Create the triangular mesh
    49 #-------------------------------------------------------------------------------
     51#-----------------------------------------------------------------------------
    5052
    5153create_mesh.generate() # this creates the mesh
    5254
    53 #-------------------------------------------------------------------------------                                 
     55#-----------------------------------------------------------------------------
    5456# Setup computational domain
    55 #-------------------------------------------------------------------------------                                 
     57#-----------------------------------------------------------------------------
    5658domain = Domain(project.mesh_filename, use_cache = False, verbose = True)
    5759   
     
    6567domain.set_quantities_to_be_stored(['stage', 'xmomentum', 'ymomentum'])
    6668
    67 #-------------------------------------------------------------------------------                                 
     69#-----------------------------------------------------------------------------
    6870# Setup initial conditions
    69 #-------------------------------------------------------------------------------
     71#-----------------------------------------------------------------------------
    7072
    7173tide = 0.0
     
    8890domain.set_boundary( {'wall': Br, 'wave': Br} )
    8991
    90 #-------------------------------------------------------------------------------                                 
     92#-----------------------------------------------------------------------------
    9193# Evolve system through time
    92 #-------------------------------------------------------------------------------
     94#-----------------------------------------------------------------------------
    9395import time
    9496t0 = time.time()
Note: See TracChangeset for help on using the changeset viewer.