Code Monkey home page Code Monkey logo

linslipinv's Introduction

#LinSlipInv

Linear multi time-window earthquake slip inversion with k-2 smoothing

Suite of codes for linear slip inversions and resolution analysis.

####Capabilities of the codes:

  • Inversion of provided data for a given (possibly segmented) fault geometry
  • Resolution analysis by means of synthetic tests with prescribed target rupture model or slip-rate pulse model
  • Inversion in-depth analysis by means of spectral analysis of the forward matrix G
  • Can take advantage of Intel MKL library and/or CULA (GPU) for faster performance
  • Plotting the results

####Possible data types for inversions:

  • Seismic waveforms including processed HR-GPS
  • Static GPS vectors

####Implemented regularizations of the inversion:

  • Truncated SVD
  • Spatial k-2 prior covariance function
  • Positivity constraint on the slip rate functions

####Included codes for evaluation of Green's functions:

  • Axitra (full-wavefield in 1D layered media)
  • Okada (static displacements in homogeneous halfspace)

###Content of directories:

  • src - Inversion codes
  • src-stations - Converts stations locations from lat,long to X,Y (X points towards north, Y towards east)
  • src-dwn - Axitra code for Green's function calculations
  • src-graphics - Codes for generating graphics (requires Gnuplot)
  • examples - Several examples for testing the code
  • papers - Papers related to the inversion codes, explaining basics of the SVD and NNLS approaches, resolution analysis, etc.

linslipinv's People

Contributors

fgallovic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

linslipinv's Issues

No MKL fails

When running SlipInvNNLS without the MKL option, there seems to be a missing part of the code. I have ran the example for L'Aquila, but the program stops in the following part saying there is no code for the non-MKL option.

%SlipInvNNLS
Reading parameters...
(Warning! Assumig order epicL, epicW in input.dat!)
(Using mu values from file crustal.dat)
(reading observed data from files)
Creating matrix H...
(Correcting GFs for artifical time delay by 30.000000000000000 sec.)
Creating vector u...
Creating matrix G and vector d...
(constraint on M0 applied)
(smoothing by model covariance matrix applied)
(Preparing the covariance matrix ...)
(k^-2 in space and f^0 in time)
!!!!!!!!!!!!!!!!!!!!!!!Not yet coded!!!!!!!!!!!!!!!!!!!!!!!

The problem seems to be in the file CreateGandD.f90 right here,

#ifdef MKL
call dpotrf('U',Nseis,CD,Nseis,i) ! Upper triangle of CD becomes U
if (i>0) then
print ,' the matrix is not positive definite!'
stop
endif
call dpotri('U',Nseis,CD,Nseis,i) ! Inverse of CD
call dpotrf('U',Nseis,CD,Nseis,i) ! Upper triangle of CD becomes U
do i=1,Nseis-1 ! Transpose and clear upper triangle
! CD(i+1:Nseis,i)=CD(i,i+1:Nseis)
! CD(i,i+1:Nseis)=0.d0
CD(i+1:Nseis,i)=0.d0 ! Clear lower triangle
enddo
continue
#else
write(
,*)'!!!!!!!!!!!!!!!!!!!!!!!Not yet coded!!!!!!!!!!!!!!!!!!!!!!!'
stop
! CDinv=CD
! CALL cholsl(Nseis,CDinv,CD)
#endif

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.