Index: /issm/trunk-jpl/test/MITgcm/build.sh
===================================================================
--- /issm/trunk-jpl/test/MITgcm/build.sh	(revision 26430)
+++ /issm/trunk-jpl/test/MITgcm/build.sh	(revision 26431)
@@ -24,9 +24,16 @@
 #create MITgcm makefile for this run, if needed
 if [ ! -f Makefile ]; then
-    if [ $hostname == "pleiades" ]; then 
-	$modelpath/../MITgcm/install/tools/genmake2 -of $SLR_DIR/models/ice-ocean/configs/linux_amd64_gfortran+mpi_ice_nas -mo ../code -rd $modelpath/../MITgcm/install
-    else
-	$modelpath/../MITgcm/install/tools/genmake2 -mpi -mo $modelpath/../MITgcm/code -rd $modelpath/../MITgcm/install
-    fi
+	case $hostname in
+		"pleiades")
+			$modelpath/../MITgcm/install/tools/genmake2 -of $SLR_DIR/models/ice-ocean/configs/linux_amd64_gfortran+mpi_ice_nas -mo ../code -rd $modelpath/../MITgcm/install
+			;;
+		"babylon")
+			$modelpath/../MITgcm/install/tools/genmake2 -of $modelpath/../MITgcm/install/tools/build_options/linux_amd64_ifort -mpi -mo $modelpath/../MITgcm/code -rd $modelpath/../MITgcm/install
+			export LD_LIBRARY_PATH="$ISSM_DIR/externalpackages/petsc/install/lib:/dartfs-hpc/admin/opt/el7/intel/compilers_and_libraries_2019.3.199/linux/compiler/lib/intel64:$ISSM_DIR/externalpackages/triangle/install/lib"
+			;;
+		*)
+			$modelpath/../MITgcm/install/tools/genmake2 -mpi -mo $modelpath/../MITgcm/code -rd $modelpath/../MITgcm/install
+			;;
+	esac
 fi
 
@@ -35,4 +42,3 @@
     make depend
 fi
-
-make -j 4
+make -j 4 &> Makefile.log
