Changeset 5352


Ignore:
Timestamp:
May 21, 2008, 3:00:47 PM (16 years ago)
Author:
ole
Message:

Moved default smoothing parameter from fit to config.
Removed print statements in data_manager.

Location:
anuga_core/source/anuga
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/config.py

    r5315 r5352  
    77epsilon = 1.0e-12 # Smallest number - used for safe division
    88max_float = 1.0e36 # Largest number - used to initialise (max, min) ranges
    9 
     9default_smoothing_parameter = 0.001 # Default alpha for penalised
     10                                    # least squares fitting
    1011
    1112#-------------------------------------------
  • anuga_core/source/anuga/fit_interpolate/fit.py

    r5349 r5352  
    4141from anuga.utilities.cg_solve import conjugate_gradient
    4242from anuga.utilities.numerical_tools import ensure_numeric, gradient
     43from anuga.config import default_smoothing_parameter as DEFAULT_ALPHA
    4344
    4445import exceptions
     
    4647class VertsWithNoTrianglesError(exceptions.Exception): pass
    4748
    48 DEFAULT_ALPHA = 0.001
     49#DEFAULT_ALPHA = 0.001
    4950
    5051
     
    9495        # Initialise variabels
    9596        if alpha is None:
    96 
    9797            self.alpha = DEFAULT_ALPHA
    9898        else:   
  • anuga_core/source/anuga/shallow_water/data_manager.py

    r5347 r5352  
    39193919    assert allclose(sort(longitudes), longitudes)
    39203920
    3921     print latitudes[0],longitudes[0]
    3922     print len(latitudes),len(longitudes)
    3923     print latitudes[len(latitudes)-1],longitudes[len(longitudes)-1]
     3921    #print latitudes[0],longitudes[0]
     3922    #print len(latitudes),len(longitudes)
     3923    #print latitudes[len(latitudes)-1],longitudes[len(longitudes)-1]
    39243924   
    39253925    lat_ascending = True
Note: See TracChangeset for help on using the changeset viewer.