Changeset 2554


Ignore:
Timestamp:
Mar 17, 2006, 9:07:42 AM (19 years ago)
Author:
ole
Message:

cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • production/onslow_2006/run_onslow.py

    r2543 r2554  
    1212
    1313
    14 #-------------------------------------------------------------------------------# Import necessary modules
    15 #-------------------------------------------------------------------------------
     14#------------------------------------------------------------------------------
     15# Import necessary modules
     16#------------------------------------------------------------------------------
    1617
    1718# Standard modules
     
    3132
    3233
    33 #-------------------------------------------------------------------------------
     34#------------------------------------------------------------------------------
    3435# Preparation of topographic data
    3536#
     
    3738# Do for coarse and fine data
    3839# Fine pts file to be clipped to area of interest
    39 #-------------------------------------------------------------------------------
     40#------------------------------------------------------------------------------
    4041
    4142# filenames
     
    6465
    6566# combining the coarse and fine data
    66 combine_rectangular_points_files(
    67                                  project.coarsedemname + '.pts',
     67combine_rectangular_points_files(project.coarsedemname + '.pts',
    6868                                 project.onshore_dem_name + '.pts',
    6969                                 project.combineddemname + '.pts')
    7070
    7171
    72 #-------------------------------------------------------------------------------                                 
     72#------------------------------------------------------------------------------
    7373# Create the triangular mesh based on overall clipping polygon with a tagged
    7474# boundary and interior regions defined in project.py along with
    7575# resolutions (maximal area of per triangle) for each polygon
    76 #-------------------------------------------------------------------------------
    77 
     76#------------------------------------------------------------------------------
    7877from pmesh.mesh_interface import create_mesh_from_regions
    7978
     
    9897
    9998
    100 #-------------------------------------------------------------------------------                                 
     99#------------------------------------------------------------------------------
    101100# Setup computational domain
    102 #-------------------------------------------------------------------------------                                 
     101#------------------------------------------------------------------------------
    103102
    104103domain = pmesh_to_domain_instance(meshname, Domain,
     
    115114
    116115
    117 #-------------------------------------------------------------------------------
     116#------------------------------------------------------------------------------
    118117# Set up scenario (tsunami_source is a callable object used with set_quantity)
    119 #-------------------------------------------------------------------------------
     118#------------------------------------------------------------------------------
    120119'''
    121120tsunami_source = slump_tsunami(length=30000.0,
     
    131130
    132131'''
    133 #-------------------------------------------------------------------------------                                 
     132#------------------------------------------------------------------------------
    134133# Setup initial conditions
    135 #-------------------------------------------------------------------------------
     134#------------------------------------------------------------------------------
    136135
    137136tide = 0.
     
    150149
    151150
    152 #-------------------------------------------------------------------------------                                 
     151#------------------------------------------------------------------------------
    153152# Setup boundary conditions (all reflective)
    154 #-------------------------------------------------------------------------------
     153#------------------------------------------------------------------------------
    155154
    156155from pyvolution.data_manager import ferret2sww
     
    200199
    201200
    202 #-------------------------------------------------------------------------------                                 
     201#------------------------------------------------------------------------------
    203202# Evolve system through time
    204 #-------------------------------------------------------------------------------
     203#------------------------------------------------------------------------------
    205204
    206205import time
Note: See TracChangeset for help on using the changeset viewer.