Skip to content

Commit 7934da4

Browse files
author
billyburgoa
committed
setting s=log(-1) when AmplificationProxyValue == -1
1 parent dc76577 commit 7934da4

File tree

7 files changed

+551
-180
lines changed

7 files changed

+551
-180
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
**/.DS_Store
2+
/nbproject/private/
Binary file not shown.

lib/nblibraries.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ libs.CommonsLang.src=\
88
libs.CopyLibs.classpath=\
99
${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
1010
libs.CopyLibs.displayName=CopyLibs Task
11-
libs.CopyLibs.prop-version=2.0
11+
libs.CopyLibs.prop-version=3.0
1212
libs.Gozirra.classpath=\
1313
${base}/gozirra/gozirra-client-0.4.1.jar
1414
libs.Gozirra.src=\

nbproject/build-impl.xml

Lines changed: 530 additions & 170 deletions
Large diffs are not rendered by default.

nbproject/genfiles.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ [email protected]
44
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
55
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
66
nbproject/build-impl.xml.data.CRC32=bf23cbc1
7-
nbproject/build-impl.xml.script.CRC32=f7470203
8-
nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48
7+
nbproject/build-impl.xml.script.CRC32=eaddba06
8+
nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48

nbproject/project.properties

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ build.test.results.dir=${build.dir}/test/results
2020
#debug.transport=dt_socket
2121
debug.classpath=\
2222
${run.classpath}
23+
debug.modulepath=\
24+
${run.modulepath}
2325
debug.test.classpath=\
2426
${run.test.classpath}
27+
debug.test.modulepath=\
28+
${run.test.modulepath}
2529
# Files in build.classes.dir which should be excluded from distribution jar
2630
dist.archive.excludes=
2731
# This directory is removed when the project is cleaned:
@@ -43,13 +47,17 @@ javac.classpath=\
4347
# Space-separated list of extra javac options
4448
javac.compilerargs=
4549
javac.deprecation=false
50+
javac.modulepath=
51+
javac.processormodulepath=
4652
javac.processorpath=\
4753
${javac.classpath}
4854
javac.source=1.7
4955
javac.target=1.7
5056
javac.test.classpath=\
5157
${javac.classpath}:\
5258
${build.classes.dir}
59+
javac.test.modulepath=\
60+
${javac.modulepath}
5361
javac.test.processorpath=\
5462
${javac.test.classpath}
5563
javadoc.additionalparam=
@@ -75,8 +83,12 @@ run.classpath=\
7583
# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
7684
# To set system properties for unit tests define test-sys-prop.name=value:
7785
run.jvmargs=
86+
run.modulepath=\
87+
${javac.modulepath}
7888
run.test.classpath=\
7989
${javac.test.classpath}:\
8090
${build.test.classes.dir}
91+
run.test.modulepath=\
92+
${javac.test.modulepath}
8193
source.encoding=UTF-8
8294
src.dir=${file.reference.ew-viewer-src}

src/org/reakteu/eewd/gmpe/impl/SCH2014.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,9 @@ public Shaking getPGA(double magnitude, double sourceLat, double sourceLon,
158158
}
159159

160160
if (amplificationProxyValueSI == -1) {
161-
//S II firm or steady soil
162161
//
163-
S = 0;
164-
H = 1;
162+
S = log(-1);
163+
H = 0;
165164
}
166165

167166
double depthKm = sourceDepthM / 1000.; // Depth in km
@@ -268,11 +267,10 @@ public Shaking getPSA(double magnitude, double sourceLat, double sourceLon,
268267
H = 0;
269268
}
270269

271-
if (amplificationProxyValueSI == -1) {
272-
//S II firm or steady soil
270+
if (amplificationProxyValueSI == -1) {
273271
//
274-
S = 0;
275-
H = 1;
272+
S = log(-1);
273+
H = 0;
276274
}
277275

278276
double depthKm = sourceDepthM / 1000.0; //depth in km

0 commit comments

Comments
 (0)