Index: ../trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp
===================================================================
--- ../trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp	(revision 18902)
+++ ../trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp	(revision 18903)
@@ -456,7 +456,7 @@
 		//Computing continuum function to apply to transfer term, transfer is null only if
 		// epl_head>sediment_head AND sediment_head>h_max
 		continuum=((1.0/(1.0+exp(-20.0*(sediment_head-epl_head)))))+(1.0/(1.0+exp(-20.0*(hmax-sediment_head))));
-		factor=max(continuum,1.0);
+		factor=min(continuum,1.0);
 		transfer=leakage*factor;
 		break;
 	default:
@@ -498,7 +498,7 @@
 		//Computing continuum function to apply to transfer term, transfer is null only if
 		// epl_head>sediment_head AND sediment_head>h_max
 		continuum=((1.0/(1.0+exp(-20.0*(sediment_head-epl_head)))))+(1.0/(1.0+exp(-20.0*(hmax-sediment_head))));
-		factor=max(continuum,1.0);
+		factor=min(continuum,1.0);
 		transfer=sediment_head*leakage*factor;
 
 		break;
Index: ../trunk-jpl/src/c/analyses/HydrologyDCInefficientAnalysis.cpp
===================================================================
--- ../trunk-jpl/src/c/analyses/HydrologyDCInefficientAnalysis.cpp	(revision 18902)
+++ ../trunk-jpl/src/c/analyses/HydrologyDCInefficientAnalysis.cpp	(revision 18903)
@@ -615,7 +615,7 @@
 		//Computing continuum function to apply to transfer term, transfer is null only if
 		//epl_head>sediment_head AND sediment_head>h_max
 		continuum=((1.0/(1.0+exp(-20.0*(sediment_head-epl_head)))))+(1.0/(1.0+exp(-20.0*(hmax-sediment_head))));
-		factor=max(continuum,1.0);
+		factor=min(continuum,1.0);
 		transfer=leakage*factor;
 
 		break;
@@ -654,7 +654,7 @@
 		//Computing continuum function to apply to transfer term, transfer is null only if
 		//epl_head>sediment_head AND sediment_head>h_max
 		continuum=((1.0/(1.0+exp(-20.0*(sediment_head-epl_head)))))+(1.0/(1.0+exp(-20.0*(hmax-sediment_head))));
-		factor=max(continuum,1.0);
+		factor=min(continuum,1.0);
 		transfer=epl_head*leakage*factor;
 		break;
 	default:
