[cig-commits] [commit] devel: changed the number of iterations from 4 to 5 (a5f62e6)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Thu Nov 20 06:22:26 PST 2014


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

On branch  : devel
Link       : https://github.com/geodynamics/specfem2d/compare/8d43bfdb387720be2257940989567f8f70c7c95e...a5f62e6ebbb73d3d916c4fa18563581cf00b23e5

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

commit a5f62e6ebbb73d3d916c4fa18563581cf00b23e5
Author: Dimitri Komatitsch <komatitsch at lma.cnrs-mrs.fr>
Date:   Thu Nov 20 14:56:25 2014 +0100

    changed the number of iterations from 4 to 5


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

a5f62e6ebbb73d3d916c4fa18563581cf00b23e5
 setup/constants.h.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/setup/constants.h.in b/setup/constants.h.in
index fb4bff8..8ee34cc 100644
--- a/setup/constants.h.in
+++ b/setup/constants.h.in
@@ -154,7 +154,9 @@
   integer, parameter :: MAX_LENGTH_NETWORK_NAME = 8
 
 ! number of iterations to solve the system for xi and eta
-  integer, parameter :: NUM_ITER = 4
+! setting it to 5 instead of 4 ensures that the result obtained is not compiler dependent
+! (when using 4 only some small discrepancies were observed)
+  integer, parameter :: NUM_ITER = 5
 
 ! we mimic a triangle of half duration equal to half_duration_triangle
 ! using a Gaussian having a very close shape, as explained in Figure 4.2



More information about the CIG-COMMITS mailing list