Changeset 7661 for issm/trunk
- Timestamp:
- 03/18/11 15:55:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/KMLMeshWrite/KMLMeshWrite.cpp
r7659 r7661 110 110 if (verbose) printf("Checking inputs:\n"); 111 111 112 if (nodecon) 113 nnodes=mncon; 114 else 115 for (i=0; i<melem*nelem; i++) 116 if (elem[i] > nnodes) 117 nnodes=elem[i]; 112 for (i=0; i<melem*nelem; i++) 113 if (elem[i] > nnodes) 114 nnodes=elem[i]; 118 115 if (verbose) printf(" nnodes =%d\n",nnodes); 119 116 if (part) … … 123 120 if (verbose) printf(" nparts =%d\n",nparts); 124 121 122 if (nodecon && (mncon != nnodes)) 123 _error_("Nodal connectivity table, if supplied, must be supplied for all nodes."); 124 else if (!nodecon) 125 mncon=nnodes; 125 126 if ((llat != nnodes) || (llng != nnodes) || (llat != llng)) 126 127 _error_("Latitude and longitude vectors must be supplied for all nodes."); … … 128 129 _error_("Partitioning vector, if supplied, must be supplied for all nodes."); 129 130 if (data && !((mdata == nnodes) || (mdata == melem))) 130 _error_("Data vector, if supplied, must be supplied for all nodes or all elements.");131 _error_("Data matrix, if supplied, must be supplied for all nodes or all elements."); 131 132 if (cmap && (ncmap != 3)) 132 _error_("Colormap vector, if supplied, must have three columns for rgb.");133 _error_("Colormap matrix, if supplied, must have three columns for rgb."); 133 134 134 135 if (!strlen(filnam))
Note:
See TracChangeset
for help on using the changeset viewer.