Skip to content

Commit

Permalink
now sets corner freq to NaN if not supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmilner committed Dec 13, 2023
1 parent 2e4cc49 commit 116dd71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/scratch/kevin/bbp/BBP_SourceFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public static BBP_SourceFile readFile(File file) throws IOException {
double hypoDownDip = Double.parseDouble(vals.get("HYPO_DOWN_DIP"));
double dWid = Double.parseDouble(vals.get("DWID"));
double dLen = Double.parseDouble(vals.get("DLEN"));
double cornerFreq = Double.parseDouble(vals.get("CORNER_FREQ"));
double cornerFreq = vals.containsKey("CORNER_FREQ") ? Double.parseDouble(vals.get("CORNER_FREQ")) : Double.NaN;
int seed = Integer.parseInt(vals.get("SEED"));

BBP_PlanarSurface surface = new BBP_PlanarSurface(topCenter, length, width, mech);
Expand Down

0 comments on commit 116dd71

Please sign in to comment.