def test_instantiate():

    g = satzone_darcy_layers.satzone_component()
    g.CCA = False
    g.DEBUG = False

    #-----------------------------------------
    # This function adjusts for the platform
    # and can be changed in "tf_utils.py".
    #-----------------------------------------
    cfg_directory = tf_utils.TF_Test_Directory()
    cfg_prefix = tf_utils.TF_Test_Case_Prefix()
    g.site_prefix = 'Treynor'  #############

    g.run_model(cfg_directory=cfg_directory, cfg_prefix=cfg_prefix)

    ##    g.initialize( cfg_prefix=cfg_prefix, mode="driver" )

    print 'nx =', g.nx
    print 'ny =', g.ny
def test_instantiate():

    g = satzone_darcy_layers.satzone_component()
    g.CCA   = False
    g.DEBUG = False
    
    #-----------------------------------------
    # This function adjusts for the platform
    # and can be changed in "tf_utils.py".
    #-----------------------------------------
    cfg_directory = tf_utils.TF_Test_Directory()
    cfg_prefix    = tf_utils.TF_Test_Case_Prefix()
    g.site_prefix = 'Treynor'  #############  
  
    g.run_model( cfg_directory=cfg_directory,
                 cfg_prefix=cfg_prefix )
    
##    g.initialize( cfg_prefix=cfg_prefix, mode="driver" )
    
    print 'nx =', g.nx
    print 'ny =', g.ny
Exemplo n.º 3
0
infil.SM = 0
infil.h_table = 1
infil.initialize(cfg_file="cfg/Treynor_infil_smith_parlange.cfg")

infil.elev = 10
infil.update()

infil.finalize()



##################################################################################

from topoflow.components import satzone_darcy_layers

sat = satzone_darcy_layers.satzone_component()

sat.initialize(cfg_file="cfg/Treynor_satzone_darcy_layers.cfg")

sat.Rg = 1
sat.update()

sat.finalize()



##################################################################################

from topoflow.components import soil_base
# just functions called by infil_richards_1D