Ignore:
Timestamp:
Aug 29, 2006, 11:30:14 AM (18 years ago)
Author:
duncan
Message:

change imports so reflect the new structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • development/dam_2006/run_dam.py

    r3533 r3535  
    2626# Application specific imports
    2727import project                 # Definition of file names and polygons
     28
    2829
    2930def main():
     
    7172    domain.set_quantities_to_be_stored(['stage', 'xmomentum', 'ymomentum'])
    7273    domain.set_minimum_sww_depth(0.01)
     74    domain.set_store_vertices_uniquely(True)  # for writting to sww
    7375
    7476    #-------------------------------------------------------------------------
     
    8890    domain.set_region('dam','stage',0.2,
    8991                                 location = 'unique vertices')
    90     domain.set_region(Set_region('dam','stage',0.2,
    91                                  location = 'unique vertices'))
    92     domain.set_store_vertices_uniquely(True)  # for writting to sww
     92    #domain.set_region(Set_region('dam','stage',0.2,
     93    #                             location = 'unique vertices'))
    9394
    9495    Br = Reflective_boundary(domain)
    95     Bd = Dirichlet_boundary([0,0,0])
     96    Bd = Dirichlet_boundary([0,0,0])  # to drain the water out.
    9697    domain.set_boundary( {'wall': Br, 'edge': Bd} )
    9798
     
    116117
    117118    #-------------------------------------------------------------------------
    118     # Calc gauge info
     119    # Calculate gauge info
    119120    #-------------------------------------------------------------------------
    120121    interpolate_sww2csv(project.outputtimedir + project.basename +".sww",
Note: See TracChangeset for help on using the changeset viewer.