Changeset 8712


Ignore:
Timestamp:
Feb 22, 2013, 10:37:34 AM (12 years ago)
Author:
steve
Message:

Just added priject.cache and verbose to project in cairns

Location:
trunk/anuga_core/documentation/user_manual/demos/cairns
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/documentation/user_manual/demos/cairns/project.py

    r8592 r8712  
    44
    55import anuga
     6
     7
     8#------------------------------------------------------------------------------
     9# Runtime parameters
     10#------------------------------------------------------------------------------
     11cache = False
     12verbose = True
    613
    714#------------------------------------------------------------------------------
     
    5158# bigger base_scale == less triangles
    5259base_scale = 100000
    53 base_scale = 1000000
     60base_scale = 100000
    5461default_res = 100 * base_scale   # Background resolution
    5562islands_res = base_scale
  • trunk/anuga_core/documentation/user_manual/demos/cairns/runcairns.py

    r8592 r8712  
    3131#------------------------------------------------------------------------------
    3232# Create DEM from asc data
    33 anuga.asc2dem(project.name_stem+'.asc', use_cache=True, verbose=True)
     33anuga.asc2dem(project.name_stem+'.asc', use_cache=project.cache, verbose=project.verbose)
    3434
    3535# Create pts file for onshore DEM
    36 anuga.dem2pts(project.name_stem+'.dem', use_cache=True, verbose=True)
     36anuga.dem2pts(project.name_stem+'.dem', use_cache=project.cache, verbose=project.verbose)
    3737
    3838#------------------------------------------------------------------------------
     
    4949                                    mesh_filename=project.meshname,
    5050                                    interior_regions=project.interior_regions,
    51                                     use_cache=True,
    52                                     verbose=True)
     51                                    use_cache=project.cache,
     52                                    verbose=project.verbose)
    5353
    5454# Print some stats about mesh and domain
     
    7575domain.set_quantity('elevation',
    7676                    filename=project.name_stem + '.pts',
    77                     use_cache=True,
    78                     verbose=True,
     77                    use_cache=project.cache,
     78                    verbose=project.verbose,
    7979                    alpha=0.1)
    8080
     
    9292                                   alpha=0.0,
    9393                                   domain=domain,
    94                                    verbose=True)
     94                                   verbose=project.verbose)
    9595
    9696#------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.