[cig-commits] commit: export observation points in rotated coordinates system only when rotation is non zero. fix runtime options in .bat tutorial examples.

Mercurial hg at geodynamics.org
Wed Sep 5 17:05:12 PDT 2012


changeset:   140:56f9a85034ed
tag:         tip
user:        Sylvain Barbot <sbarbot at caltech.edu>
date:        Wed Sep 05 17:05:08 2012 -0700
files:       examples/tutorials/run3.bat examples/tutorials/run4.bat src/export.f90
description:
export observation points in rotated coordinates system only when rotation is non zero. fix runtime options in .bat tutorial examples.


diff -r 75355ca57041 -r 56f9a85034ed examples/tutorials/run3.bat
--- a/examples/tutorials/run3.bat	Mon Aug 27 20:18:04 2012 -0700
+++ b/examples/tutorials/run3.bat	Wed Sep 05 17:05:08 2012 -0700
@@ -5,4 +5,4 @@ set OMP_NUM_THREADS=4
 
 set GMT_SHAREDIR=%CD%\..\..\share
 set PROJ_LIB=%CD%\..\..\share
-..\..\relax < run3.input
+..\..\relax --no-proj-output --no-stress-output < run3.input
diff -r 75355ca57041 -r 56f9a85034ed examples/tutorials/run4.bat
--- a/examples/tutorials/run4.bat	Mon Aug 27 20:18:04 2012 -0700
+++ b/examples/tutorials/run4.bat	Wed Sep 05 17:05:08 2012 -0700
@@ -5,4 +5,4 @@ set OMP_NUM_THREADS=4
 
 set GMT_SHAREDIR=%CD%\..\..\share
 set PROJ_LIB=%CD%\..\..\share
-..\..\relax < run4.input
+..\..\relax --no-stress-output --no-proj-output < run4.input
diff -r 75355ca57041 -r 56f9a85034ed src/export.f90
--- a/src/export.f90	Mon Aug 27 20:18:04 2012 -0700
+++ b/src/export.f90	Wed Sep 05 17:05:08 2012 -0700
@@ -482,19 +482,6 @@ CONTAINS
        END IF
        IF (iostatus>0) STOP "could not open point file for writing"
 
-       IF (0.NE.rot) THEN
-          file2=wdir(1:i-1) // "/" // ptsname(k) // ".c.txt"
-          IF (isnew) THEN
-             WRITE (15,'("#         t         u1         u2         u3        ", &
-                       & "s11        s12        s13        s22        s23        s33")')
-             OPEN (UNIT=16,FILE=file2,IOSTAT=iostatus,FORM="FORMATTED")
-          ELSE
-             OPEN (UNIT=16,FILE=file2,POSITION="APPEND",&
-                  IOSTAT=iostatus,FORM="FORMATTED")
-          END IF
-          IF (iostatus>0) STOP "could not open point file for writing"
-       END IF
-
        x1=opts(k)%v1
        x2=opts(k)%v2
        x3=opts(k)%v3
@@ -524,8 +511,19 @@ CONTAINS
                                  lsig%s22,lsig%s23,lsig%s33
        CLOSE(15)
 
-       IF (0.NE.rot) THEN
-          WRITE (16,'(7ES11.3E2)') x1,x2,x3,time,u1,u2,u3
+       ! output in rotated coordinates system
+       IF (0._8.NE.rot) THEN
+          file2=wdir(1:i-1) // "/" // ptsname(k) // ".c.txt"
+          IF (isnew) THEN
+             OPEN (UNIT=16,FILE=file2,IOSTAT=iostatus,FORM="FORMATTED")
+             WRITE (16,'("#         t         u1         u2         u3")')
+          ELSE
+             OPEN (UNIT=16,FILE=file2,POSITION="APPEND",&
+                   IOSTAT=iostatus,FORM="FORMATTED")
+          END IF
+          IF (iostatus>0) STOP "could not open point file for writing"
+
+          WRITE (16,'(7ES11.3E2)') time,u1,u2,u3
           CLOSE(16)
        END IF
 



More information about the CIG-COMMITS mailing list