[cig-commits] [commit] devel, master: added a stop statement if the first time step entered by the user is negative (b88f853)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Thu Nov 6 08:23:12 PST 2014


Repository : https://github.com/geodynamics/specfem3d_globe

On branches: devel,master
Link       : https://github.com/geodynamics/specfem3d_globe/compare/bc58e579b3b0838a0968725a076f5904845437ca...be63f20cbb6f462104e949894dbe205d2398cd7f

>---------------------------------------------------------------

commit b88f8532ee9689f5383fb0f03e04b032834793c0
Author: Dimitri Komatitsch <komatitsch at lma.cnrs-mrs.fr>
Date:   Fri Jun 27 22:57:23 2014 +0200

    added a stop statement if the first time step entered by the user is negative


>---------------------------------------------------------------

b88f8532ee9689f5383fb0f03e04b032834793c0
 src/auxiliaries/create_movie_AVS_DX.f90     | 1 +
 src/auxiliaries/create_movie_GMT_global.f90 | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/auxiliaries/create_movie_AVS_DX.f90 b/src/auxiliaries/create_movie_AVS_DX.f90
index dec8902..16a045a 100644
--- a/src/auxiliaries/create_movie_AVS_DX.f90
+++ b/src/auxiliaries/create_movie_AVS_DX.f90
@@ -143,6 +143,7 @@
   print *
 
   ! checks options
+  if( it1 < 1 ) stop 'the first time step must be >= 1'
   if( it2 == -1 ) it2 = NSTEP
 
 ! --------------------------------------
diff --git a/src/auxiliaries/create_movie_GMT_global.f90 b/src/auxiliaries/create_movie_GMT_global.f90
index 713aea3..b36c235 100644
--- a/src/auxiliaries/create_movie_GMT_global.f90
+++ b/src/auxiliaries/create_movie_GMT_global.f90
@@ -159,6 +159,7 @@
   print *
 
   ! checks options
+  if( it1 < 1 ) stop 'the first time step must be >= 1'
   if( it2 == -1 ) it2 = NSTEP
 
 



More information about the CIG-COMMITS mailing list