Index: ../trunk-jpl/src/c/analyses/LevelsetAnalysis.cpp
===================================================================
--- ../trunk-jpl/src/c/analyses/LevelsetAnalysis.cpp	(revision 18807)
+++ ../trunk-jpl/src/c/analyses/LevelsetAnalysis.cpp	(revision 18808)
@@ -38,17 +38,22 @@
 	iomodel->FetchDataToInput(elements,VyEnum);
 
 	/*Get calving parameters*/
-	int calvinglaw;
-	iomodel->Constant(&calvinglaw,CalvingLawEnum);
-	switch(calvinglaw){
-		case DefaultCalvingEnum:
-			iomodel->FetchDataToInput(elements,CalvingCalvingrateEnum);
-			break;
-		case CalvingLevermannEnum:
-			iomodel->FetchDataToInput(elements,CalvinglevermannCoeffEnum);
-			break;
-		default:
-			_error_("Calving law "<<EnumToStringx(calvinglaw)<<" not supported yet");
+	bool iscalving;
+	int  calvinglaw;
+	iomodel->Constant(&iscalving,TransientIscalvingEnum);
+	if(iscalving){
+		iomodel->Constant(&calvinglaw,CalvingLawEnum);
+		iomodel->Constant(&iscalving,TransientIscalvingEnum);
+		switch(calvinglaw){
+			case DefaultCalvingEnum:
+				iomodel->FetchDataToInput(elements,CalvingCalvingrateEnum);
+				break;
+			case CalvingLevermannEnum:
+				iomodel->FetchDataToInput(elements,CalvinglevermannCoeffEnum);
+				break;
+			default:
+				_error_("Calving law "<<EnumToStringx(calvinglaw)<<" not supported yet");
+		}
 	}
 }
 /*}}}*/
