Index: /issm/trunk-jpl/src/m/boundaryconditions/SetIceShelfBC.js
===================================================================
--- /issm/trunk-jpl/src/m/boundaryconditions/SetIceShelfBC.js	(revision 19836)
+++ /issm/trunk-jpl/src/m/boundaryconditions/SetIceShelfBC.js	(revision 19837)
@@ -18,5 +18,5 @@
 	if (arguments.length==2){
 		icefront=arguments[1];
-		nodeinsideicefront=ContourToMesh(md.mesh.elements,md.mesh.x,md.mesh.y,icefrontfile,'node',2);
+		nodeinsideicefront=ContourToMesh(md.mesh.elements,md.mesh.x,md.mesh.y,icefront,'node',2);
 		nodeonicefront=ArrayAnd(md.mesh.vertexonboundary,nodeinsideicefront);
 	}
@@ -52,5 +52,4 @@
 	if((md.inversion.vx_obs.length == md.mesh.numberofvertices) & (md.inversion.vy_obs.length==md.mesh.numberofvertices))obs=true;
 
-
 	if(obs==true){
 		console.log('      boundary conditions for stressbalance model: setting spc as observed velocities');
@@ -62,5 +61,5 @@
 		var sum=0;
 		for (var j=0;j<numbernodesfront;j++) sum+=md.mask.ice_levelset[md.mesh.segments[i][j]-1];
-		if(sum!=numbernodesfront){
+		if(sum!=0){
 			for (var j=0;j<numbernodesfront;j++){
 				if(obs==false){
