Ignore:
Timestamp:
Mar 12, 2007, 12:09:53 PM (18 years ago)
Author:
duncan
Message:

refinements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/okushiri_2005/run_okushiri_parallel.py

    r4022 r4299  
    2121"""
    2222
     23# To know quickly if pypar can be imported
     24import imp
     25print " imp.find_module('pypar')", imp.find_module('pypar')
     26import  pypar
     27
    2328# Module imports
    2429from anuga.shallow_water import Domain
     
    2732from anuga.abstract_2d_finite_volumes.util import file_function
    2833
    29 # from anuga_parallel.parallel_api import myid, numprocs, distribute   
     34from anuga_parallel.parallel_api import myid, numprocs, distribute   
    3035
    3136import project
    3237
    33 
     38use_cache = True
    3439#-------------------------
    3540# Create Domain from mesh
    3641#-------------------------
    37 domain = Domain(project.mesh_filename, use_cache=True, verbose=True)
     42domain = Domain(project.mesh_filename, use_cache=use_cache, verbose=True)
    3843print domain.statistics()
    3944
     
    4853                    alpha=0.02,                   
    4954                    verbose=True,
    50                     use_cache=True)
     55                    use_cache=use_cache)
    5156
    5257
Note: See TracChangeset for help on using the changeset viewer.