Index: /trunk/LMDZ.MARS/README
===================================================================
--- /trunk/LMDZ.MARS/README	(revision 2512)
+++ /trunk/LMDZ.MARS/README	(revision 2513)
@@ -3362,2 +3362,6 @@
 == 1/05/2021 == JN
 Added a "cap_albedo" flag (default false) in order to allow northern polar cap albedo to remain unchanged by water frost deposition.
+
+== 3/05/2021 == LR
+Bugfix for streamfunction tool. Now asks the user for another file in which to
+find cv.
Index: /trunk/LMDZ.MARS/util/streamfunction.F90
===================================================================
--- /trunk/LMDZ.MARS/util/streamfunction.F90	(revision 2512)
+++ /trunk/LMDZ.MARS/util/streamfunction.F90	(revision 2513)
@@ -396,9 +396,11 @@
 if (ierr.ne.NF_NOERR) then
   write(*,*) "Warning: Failed to get cv ID from file ",trim(infile)
-  infile2="diagfi.nc"
+  write(*,*) "Please provide another file (a start file for ex.)"
+  read(*,'(a128)') infile2
+
   write(*,*) "         Trying file ",trim(infile2)
   ierr=NF_OPEN(infile2,NF_NOWRITE,infid2)
   if (ierr.ne.NF_NOERR) then
-     infile2="diagfi1.nc"
+     infile2="start.nc"
      write(*,*) "         Trying file ",trim(infile2)
      ierr=NF_OPEN(infile2,NF_NOWRITE,infid2)
@@ -429,5 +431,4 @@
    endif
 endif
-
 
 !Other variables: rho, temp
