/[MITgcm]/MITgcm_contrib/enderton/Diagnostics/DiagPlot.m
ViewVC logotype

Diff of /MITgcm_contrib/enderton/Diagnostics/DiagPlot.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

--- MITgcm_contrib/enderton/Diagnostics/DiagPlot.m	2005/01/31 15:43:27	1.1
+++ MITgcm_contrib/enderton/Diagnostics/DiagPlot.m	2005/02/01 17:05:25	1.2
@@ -111,6 +111,10 @@
 
 % Save plot as desired.
 if SavePlots
-    outputfile = [outputdir,'/',pagename,'.eps'];
+    if isequal(outputdir,'')
+        outputfile = [pagename,'.eps'];
+    else
+        outputfile = [outputdir,'/',pagename,'.eps'];
+    end
     print('-depsc2',outputfile);
 end

 

  ViewVC Help
Powered by ViewVC 1.1.22