Index: /issm/trunk/src/c/toolkits/metis/patches/METIS_PartMeshNodalPatch.cpp
===================================================================
--- /issm/trunk/src/c/toolkits/metis/patches/METIS_PartMeshNodalPatch.cpp	(revision 10073)
+++ /issm/trunk/src/c/toolkits/metis/patches/METIS_PartMeshNodalPatch.cpp	(revision 10074)
@@ -3,4 +3,5 @@
  */
 
+#include <config.h>
 #include "../metisincludes.h"
 #include "../../../shared/shared.h"
@@ -9,9 +10,8 @@
 
 
-	#if _METIS_VERSION == 4
-	METIS_PartMeshNodalPatch(pnumberofelements,pnumberofnodes, index, petype, pnumflag, pnum_procs, pedgecut, epart, npart); /*Our interface originates in the Metis 4.0 version, hence identical calls*/
-	#endif
-
-	#if _METIS_VERSION == 5
+	#if _METIS_VERSION_ == 4
+	/*Our interface originates in the Metis 4.0 version, hence identical calls*/
+	METIS_PartMeshNodalPatch(pnumberofelements,pnumberofnodes, index, petype, pnumflag, pnum_procs, pedgecut, epart, npart); 
+	#elif _METIS_VERSION_ == 5
 	/*This interface is heavily changed. More options, different way of meshing, etc ...: */ 
 	int i;
@@ -57,4 +57,6 @@
 			NULL, NULL, pnum_procs, tpwgts, options, &objval,
 			epart, npart);
+	#else
+	_error_("METIS version not supported yet");
 	#endif
 }
