setprob.f.html | |
Source file: setprob.f | |
Directory: /Users/rjl/Dropbox/ggsss/claw-apps/acoustics-1d-1 | |
Converted: Tue Jul 24 2012 at 21:38:50 using clawcode2html | |
This documentation file will not reflect any later changes in the source file. |
subroutine setprob implicit double precision (a-h,o-z) character*25 fname common /cparam/ rho,bulk,cc,zz common /cqinit/ pl,pr,ul,ur c c # Set the material parameters for the acoustic equations c # Passed to the Riemann solver rp1.f in a common block c iunit = 7 fname = 'setprob.data' c # open the unit with new routine from Clawpack 4.4 to skip over c # comment lines starting with #: call opendatafile(iunit, fname) c # density: read(7,*) rho c # bulk modulus: read(7,*) bulk c # sound speed: cc = dsqrt(bulk/rho) c # impedance: zz = cc*rho c # left and right state for initial conditions: read(7,*) pl read(7,*) pr read(7,*) ul read(7,*) ur return end