fix potential bug

segmentation fault appears in the case of very large dataset, there will be problem if the nonzeros of G matrix exceed the range of INTEGER, now change maxnar = spfra*dall*nx*ny*nz, remember order matters.
also show the lat and lon when station outside the inverted region
This commit is contained in:
Hongjian Fang
2016-05-09 21:22:58 +02:00
parent c6b0e7e562
commit 851eb3418f
4 changed files with 60 additions and 96 deletions

View File

@@ -8,9 +8,9 @@ import numpy as np
#start
nx=18
ny=18
nz=9
minvel=0.9
velgrad=0.6
nz=8
minvel=0.8
velgrad=0.5
dep1=np.array([0,0.2,0.4,0.6,0.8,1.1,1.4,1.8,2.5])
#end
vs1=np.zeros(nz)