Changeset 479


Ignore:
Timestamp:
Nov 1, 2004, 9:22:46 PM (20 years ago)
Author:
steve
Message:

problem with netherland.py

Location:
inundation/ga/storm_surge/pyvolution
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/compile.py

    r196 r479  
    114114      compiler = CC
    115115    else: 
    116       compiler = 'gcc'
     116      compiler = 'gcc -O3'
    117117    if LD:
    118118      loader = LD
  • inundation/ga/storm_surge/pyvolution/data_manager.py

    r341 r479  
    110110           
    111111    FN = check_dir(data_dir) + filename + '_size%d' %size
    112        
     112
     113    print FN
     114    print filename
    113115    if time is not None:
    114116        FN += '_time%.2f' %time
    115117       
    116118    FN += '.' + format
    117        
     119
     120    print FN
     121   
    118122    return FN
    119123   
  • inundation/ga/storm_surge/pyvolution/least_squares.py

    r467 r479  
    413413        #return sparse.solve(self.B,Atz)
    414414
    415         return conjugate_gradient(self.B, Atz, Atz)
     415        return conjugate_gradient(self.B, Atz, Atz,imax=2*len(Atz) )
    416416        #FIXME: Should we store the result here for later use? (ON)       
    417417   
  • inundation/ga/storm_surge/pyvolution/netherlands.py

    r451 r479  
    9595#N = 150
    9696N = 110
    97 #N = 60
     97N = 60
    9898
    9999print 'Creating domain'
     
    120120    domain.format = 'sww'   #Native netcdf visualisation format
    121121    import sys, os
    122     root, ext = os.path.splitext(sys.argv[0])
     122    #FIXME: This was os.path.splitext but caused weird filenames based on root
     123    base = os.path.basename(sys.argv[0])
    123124    if domain.smooth is True:
    124125        s = 'smooth'
    125126    else:
    126127        s = 'nonsmooth'       
    127     domain.filename = root + '_py3_' + s
     128    domain.filename = base + '_py3_' + s
    128129else:
    129130    domain.visualise = True
  • inundation/ga/storm_surge/pyvolution/run_profile.py

    r272 r479  
    2020#
    2121
    22 N = 16
     22N = 32
    2323
    2424print 'Creating domain'
  • inundation/ga/storm_surge/pyvolution/test_sparse.py

    r474 r479  
    3434        """
    3535       
    36         A = Sparse(3,3)
     36        A = Sparse(4,3)
    3737        A[1,1] = 4
    3838        A[2,0] = 6
     
    4949                   
    5050    def test_dense(self):
    51         A = Sparse(3,3)
     51        A = Sparse(4,3)
    5252        A[1,1] = 4       
    5353                     
    54         assert allclose(A.todense(), [[0,0,0], [0,4,0], [0,0,0]])
     54        assert allclose(A.todense(), [[0,0,0], [0,4,0], [0,0,0], [0,0,0]])
    5555
    5656
Note: See TracChangeset for help on using the changeset viewer.