Changeset 2133


Ignore:
Timestamp:
Dec 8, 2005, 9:08:25 AM (18 years ago)
Author:
duncan
Message:

the order of imports is important

File:
1 edited

Legend:

Unmodified
Added
Removed
  • production/gippsland_2005/run_gippsland.py

    r2121 r2133  
    88from pyvolution.pmesh2domain import pmesh_to_domain_instance
    99from caching import cache
    10 import project
    1110from create_mesh import create_mesh
    1211from pyvolution.shallow_water import Domain, Reflective_boundary,\
    1312     File_boundary, Dirichlet_boundary, Time_boundary, Transmissive_boundary
    1413from pyvolution.least_squares import fit_to_mesh_file, DEFAULT_ALPHA
     14
     15# Import this last!  It stuffs up the loading of c extensions otherwise.
     16import project
    1517
    1618#Data preparation
     
    5658#Create the mesh without elevation data
    5759# 100000 very course
    58 meshname, triagle_count = cache(create_mesh,(5000),
     60meshname, triagle_count = cache(create_mesh,(100000),
    5961                      {'mesh_file':meshname,
    6062                       'triangles_in_name':True}
     
    127129t0 = time.time()
    128130
    129 for t in domain.evolve(yieldstep = 60, finaltime = 3000):
     131#for t in domain.evolve(yieldstep = 60, finaltime = 3000):
     132for t in domain.evolve(yieldstep = 10, finaltime = 30):
    130133#                       skip_initial_step = True):
    131134    domain.write_time()
Note: See TracChangeset for help on using the changeset viewer.