Opened 12 years ago

Closed 12 years ago

#325 closed defect (fixed)

EqkRupture incorrectly cast to ProbEqkRupture in deterministic hazard calculations

Reported by: paiboon.n@… Owned by: Peter Powers
Priority: major Milestone: OpenSHA 1.3
Component: sha Version: 1.2.0
Keywords: GCIM_HazardCurve Cc:


Steps to reproduce: (PLEASE FILL IN)

Other info: (PLEASE FILL IN)

Application: GCIM_HazardCurve
Version: 1.2.0
Bulid Type: Production
Java Version: 1.6.0_26 (Sun Microsystems Inc.)
Operating System: Windows XP (arch: x86, version: 5.1)


java.lang.ClassCastException: org.opensha.sha.earthquake.EqkRupture cannot be cast to org.opensha.sha.earthquake.ProbEqkRupture
	at org.opensha.sha.gcim.ui.GCIM_HazardCurveApp.computeHazardCurve(
	at Source)


Cacluation Type = Deterministic

IMR Param List:

DistanceRup? = 22632.87547386285; (distRup-distJB)/distRup = 0.0; Vs30 = 300.0; Depth 2.5 km/sec = 1.0; Magnitude = 7.4; Fault Type = Strike-Slip; Rupture Top Depth = 0.0; Dip = 90.0; Component = Average Horizontal (GMRotI50); Std Dev Type = Total; Gaussian Truncation = None; Truncation Level = 2.0; Exceed. Prob. = 0.5; PGA = 0.0 ]

Site Param List:

Longitude = 99.66; Latitude = 7.42; Vs30 = 300.0; Depth 2.5 km/sec = 1.0

IMT Param List:


Forecast Param List:

Eqk Rup Forecast = USGS/CGS 1996 Adj. Cal. ERF; Fault Model = Frankel's; GR Fraction on B Faults = 0.5; Rupture Offset = 10.0; Background Seismicity = Exclude

TimeSpan? Param List:

Duration = 50.0

Calculation Settings:

Maximum Distance = 200.0; Num Event Sets = 1; Use Mag-Distance Filter? = false;

Change History (2)

comment:1 Changed 12 years ago by paiboon.n@…

Can not set hypocenter location for custom earthquake

comment:2 Changed 12 years ago by Kevin Milner

Milestone: OpenSHA 1.3
Resolution: fixed
Status: newclosed
Summary: Bug in GCIM_HazardCurveEqkRupture incorrectly cast to ProbEqkRupture in deterministic hazard calculations

The comment doesn't relate to the bug above, but the exception above is a real bug. I've fixed this in [8057] for both the normal and GCIM hazard curve applications. Basically, Earthquake Ruptures were being to cast to Probabilistic Earthquakes Ruptures in deterministic calculations, which isn't necessary (and in this case, causes a ClassCastException?). I'm going to merge this fix to the release branch and build an incremental bug fix release.

Peter, please let me know if there are any other bugs that should be included in the maintenance release.

Note: See TracTickets for help on using tickets.