Index: /issm/trunk/cron/run.sh
===================================================================
--- /issm/trunk/cron/run.sh	(revision 1976)
+++ /issm/trunk/cron/run.sh	(revision 1977)
@@ -25,8 +25,9 @@
 	catch me,
 		%An error occured, get report and exit
+		directory=strsplit(pwd,'/');
 		message=getReport(me)
-		fid=fopen('matlaberror$i.log', 'wt');
-		fprintf(fid,'Matlab error occured in: %s\n',pwd);                                                                                                       
-		fprintf(fid,'%s',message);                                                                                                                              
+		fid=fopen([ISSM_DIR '/matlaberror.log'], 'wt');
+		fprintf(fid,'Matlab error occured in: %s\n',directory{end});
+		fprintf(fid,'%s',message);
 		fclose(fid);
 	end
