Skip to content

Commit 1ee7b81

Browse files
committed
Added the case for the WaterDepth class, and changed the type of myModel to ClosureEquation.
1 parent 73be5f6 commit 1ee7b81

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/it/geoframe/blogspot/closureequation/closureequation/SoilWaterRetentionCurveFactory.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
public class SoilWaterRetentionCurveFactory {
2828

2929

30-
public SoilWaterRetentionCurve create(String model) {
30+
public ClosureEquation create(String model) {
3131

32-
SoilWaterRetentionCurve myModel = null;
32+
ClosureEquation myModel = null;
3333

3434
if(model.equalsIgnoreCase("Van Genuchten") || model.equalsIgnoreCase("VanGenuchten") || model.equalsIgnoreCase("VG")) {
3535
myModel = new SWRCVanGenuchten();
@@ -39,6 +39,8 @@ public SoilWaterRetentionCurve create(String model) {
3939
myModel = new SWRCKosugi();
4040
}else if(model.equalsIgnoreCase("Romano")) {
4141
myModel = new SWRCRomano();
42+
}else if(model.equalsIgnoreCase("Water Depth") || model.equalsIgnoreCase("WaterDepth")) {
43+
myModel = new WaterDepth();
4244
}else {
4345
System.out.println("\n\n\tERROR: please check swrcModel name.");
4446
}

0 commit comments

Comments
 (0)