[cig-commits] r21626 - seismo/2D/SPECFEM2D/trunk/src/specfem2D
dkomati1 at geodynamics.org
dkomati1 at geodynamics.org
Sun Mar 24 16:16:02 PDT 2013
Author: dkomati1
Date: 2013-03-24 16:16:02 -0700 (Sun, 24 Mar 2013)
New Revision: 21626
Modified:
seismo/2D/SPECFEM2D/trunk/src/specfem2D/specfem2D.F90
Log:
added action='write' to some open() statements
Modified: seismo/2D/SPECFEM2D/trunk/src/specfem2D/specfem2D.F90
===================================================================
--- seismo/2D/SPECFEM2D/trunk/src/specfem2D/specfem2D.F90 2013-03-24 22:29:45 UTC (rev 21625)
+++ seismo/2D/SPECFEM2D/trunk/src/specfem2D/specfem2D.F90 2013-03-24 23:16:02 UTC (rev 21626)
@@ -4483,7 +4483,7 @@
!---- create a Gnuplot script to display the energy curve in log scale
if(output_energy .and. myrank == 0) then
close(IOUT_ENERGY)
- open(unit=IOUT_ENERGY,file='plot_energy.gnu',status='unknown')
+ open(unit=IOUT_ENERGY,file='plot_energy.gnu',status='unknown',action='write')
write(IOUT_ENERGY,*) 'set term wxt'
write(IOUT_ENERGY,*) '#set term postscript landscape color solid "Helvetica" 22'
write(IOUT_ENERGY,*) '#set output "energy.ps"'
@@ -4498,7 +4498,7 @@
endif
! open the file in which we will store the energy curve
- if(output_energy .and. myrank == 0) open(unit=IOUT_ENERGY,file='energy.dat',status='unknown')
+ if(output_energy .and. myrank == 0) open(unit=IOUT_ENERGY,file='energy.dat',status='unknown',action='write')
!<NOISE_TOMOGRAPHY
More information about the CIG-COMMITS
mailing list