Ignore:
Timestamp:
Jun 18, 2010, 5:49:57 PM (12 years ago)
Author:
steve
Message:

Continuing to numpy the for loops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/2010-projects/anuga_1d/config.py

    r7839 r7860  
    22"""
    33
    4 epsilon = 1.0e-12
    5 h0 = 1.0e-12
     4epsilon = 1.0e-6
     5h0 = 1.0e-6
    66
    77default_boundary_tag = 'exterior'
     
    3333
    3434
    35 v_max = 100 #For use in domain_ext.c
    36 sound_speed = 500
    37 
    3835
    3936max_smallsteps = 50  #Max number of degenerate steps allowed b4 trying first order
     
    4744
    4845
    49 eta_w = 3.0e-3 #Wind stress coefficient
    50 rho_a = 1.2e-3 #Atmospheric density
    51 rho_w = 1023   #Fluid density [kg/m^3] (rho_w = 1023 for salt water)
    5246
    5347
    54 #Betas [0;1] control the allowed steepness of gradient for second order
    55 #extrapolations. Values of 1 allow the steepes gradients while
    56 #lower values are more conservative. Values of 0 correspond to
    57 #1'st order extrapolations.
    58 #
    59 # Large values of beta_h may cause simulations to require more timesteps
    60 # as surface will 'hug' closer to the bed.
    61 # Small values of beta_h will make code faster, but one may experience
    62 # artificial momenta caused by discontinuities in water depths in
    63 # the presence of steep slopes. One example of this would be
    64 # stationary water 'lapping' upwards to a higher point on the coast.
    65 #
    66 #
    67 #
    68 #There are separate betas for the w-limiter and the h-limiter
    69 #
    70 #
    71 #
    72 #
    73 #Good values are:
    74 #beta_w = 0.9
    75 #beta_h = 0.2
    76 
    77 
    78 
    79 beta_w = 1.5
    80 beta_h = 0.2
    81 timestepping_method = 'euler'
     48beta_w = 1.0
     49beta_h = 1.0
     50timestepping_method = 'rk2'
    8251
    8352CFL = 1.0  #FIXME (ole): Is this in use yet??
     
    9968
    10069
    101 use_extensions = True    #Try to use C-extensions
    102 #use_extensions = False   #Do not use C-extensions
    103 
    104 use_psyco = True  #Use psyco optimisations
    105 #use_psyco = False  #Do not use psyco optimisations
    106 
    107 
    108 optimised_gradient_limiter = True #Use hardwired gradient limiter
     70#use_extensions = True    #Try to use C-extensions
     71##use_extensions = False   #Do not use C-extensions
     72#
     73#use_psyco = True  #Use psyco optimisations
     74##use_psyco = False  #Do not use psyco optimisations
     75#
     76#
     77#optimised_gradient_limiter = True #Use hardwired gradient limiter
    10978
    11079#Specific to shallow water W.E.
Note: See TracChangeset for help on using the changeset viewer.