Index: /issm/trunk/src/mex/KMLMeshWrite/KMLMeshWrite.cpp
===================================================================
--- /issm/trunk/src/mex/KMLMeshWrite/KMLMeshWrite.cpp	(revision 8061)
+++ /issm/trunk/src/mex/KMLMeshWrite/KMLMeshWrite.cpp	(revision 8062)
@@ -109,4 +109,5 @@
 	if (verbose) printf("Parsing options:\n");
 	options=new Options(NRHS,nrhs,prhs);
+//	if (options->Size()) for(i=0;i<options->Size();i++) ((Option*)options->GetObjectByOffset(i))->DeepEcho();
 
 	/*some checks*/
@@ -171,26 +172,26 @@
 void KMLMeshWriteUsage(void)
 {
-	_printf_(true,"INTERFROMMESHTOMESH2D - interpolation from a 2d triangular mesh onto a list of point\n");
+	_printf_(true,"KMLMeshWrite - KML mesh writer module:\n");
 	_printf_(true,"\n");
-	_printf_(true,"   This function is a multi-threaded mex file that interpolates a field\n");
-	_printf_(true,"   defined on a triangular mesh onto a list of point\n");
+	_printf_(true,"   This module writes the mesh of a model as KML polygons into the specified KML file.\n");
 	_printf_(true,"\n");
 	_printf_(true,"   Usage:\n");
-	_printf_(true,"         data_interp=InterpFromMeshToMesh2d(index,x,y,data,x_interp,y_interp);\n");
-	_printf_(true,"      or data_interp=InterpFromMeshToMesh2d(index,x,y,data,x_interp,y_interp,default_value,contourname);\n");
+	_printf_(true,"      ierror=KMLMeshWrite(name,notes,elem,nodecon,lat,long,part,data,cmap,kmlfile);\n");
 	_printf_(true,"\n");
-	_printf_(true,"      index: index of the mesh where data is defined\n");
-	_printf_(true,"      x,y: coordinates of the nodes where data is defined\n");
-	_printf_(true,"      data: matrix holding the data to be interpolated onto the mesh. (one column per field)\n");
-	_printf_(true,"      x_interp,y_interp: coordinates of the points onto which we interpolate.\n");
-	_printf_(true,"      if default_value and contourname not specified: linear interpolation will happen on all x_interp,y_interp.\n");
-	_printf_(true,"      if (default_value,contourname) specified: linear interpolation will happen on all x_interp,y_interp inside the contour, default value will be adopted on the rest of the mesh.\n");
-	_printf_(true,"      note that default_value is either a scalar, or a vector of size  length(x_interp)\n");
-	_printf_(true,"      data_interp: vector of mesh interpolated data.\n");
+	_printf_(true,"      name       model name (string, may be empty)\n");
+	_printf_(true,"      notes      model notes (string or cell array of strings, may be empty)\n");
+	_printf_(true,"      elem       elements (double array)\n");
+	_printf_(true,"      nodecon    nodal connectivity array (double array, may be empty)\n");
+	_printf_(true,"      lat        nodal latititudes (double vector)\n");
+	_printf_(true,"      long       nodal longitudes (double vector)\n");
+	_printf_(true,"      part       nodal partitions (double vector, may be empty)\n");
+	_printf_(true,"      data       nodal or element data (double vector, may be empty)\n");
+	_printf_(true,"      cmap       color map (double nx3 array, may be empty)\n");
+	_printf_(true,"      kmlfile    KML file name (string)\n");
+	_printf_(true,"\n");
+	_printf_(true,"      ierror     error flag (double, non-zero for error)\n");
 	_printf_(true,"\n");
 	_printf_(true,"   Example:\n");
-	_printf_(true,"      load('temperature.mat');\n");
-	_printf_(true,"      md.temperature=InterpFromMeshToMesh2d(index,x,y,temperature,md.x,md.y);\n");
-	_printf_(true,"      md.temperature=InterpFromMeshToMesh2d(index,x,y,temperature,md.x,md.y,253,'Contour.exp');\n");
+	_printf_(true,"      KMLMeshWrite(md.name,md.notes,md.elements,md.nodeconnectivity,md.lat,md.long,md.part,md.fm_criterion,options.cmap,filekml);\n");
 	_printf_(true,"\n");
 }
Index: /issm/trunk/src/mex/KMLMeshWrite/KMLMeshWrite.h
===================================================================
--- /issm/trunk/src/mex/KMLMeshWrite/KMLMeshWrite.h	(revision 8061)
+++ /issm/trunk/src/mex/KMLMeshWrite/KMLMeshWrite.h	(revision 8062)
@@ -1,4 +1,4 @@
 /*!\file KMLMeshWrite.h
- * \brief: prototype for Data Interpolation mex module.
+ * \brief: prototype for KML mesh writer mex module.
  */
 
