Skip to content

Commit

Permalink
added support of GMPEs that don't make use of tectonic region type
Browse files Browse the repository at this point in the history
  • Loading branch information
angri committed Nov 22, 2011
1 parent 24e073e commit 7ada782
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions java/org/opensha/sha/calc/HazardCurveCalculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,7 @@ public DiscretizedFuncAPI getHazardCurve(DiscretizedFuncAPI hazFunction,
// set the IMR according to the tectonic region of the source (if
// there is more than one)
TectonicRegionType trt = source.getTectonicRegionType();
ScalarIntensityMeasureRelationshipAPI imr =
TRTUtils.getIMRForTRT(imrMap, trt);
ScalarIntensityMeasureRelationshipAPI imr = imrMap.get(trt);

// compute the source's distance from the site and skip if it's too
// far away
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,7 @@ public boolean disaggregate(double iml, Site site,
// set the IMR according to the tectonic region of the source (if
// there is more than one)
TectonicRegionType trt = source.getTectonicRegionType();
ScalarIntensityMeasureRelationshipAPI imr =
TRTUtils.getIMRForTRT(imrMap, trt);
ScalarIntensityMeasureRelationshipAPI imr = imrMap.get(trt);

// if (numSourcesToShow > 0)
// sourceDissaggMap.put(sourceName, new ArrayList());
Expand Down

0 comments on commit 7ada782

Please sign in to comment.