From 1b5a1a2efab14c2d14f0425f377d119a07aad73d Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <dmitri.naumov@ufz.de>
Date: Tue, 29 Jan 2019 12:27:43 +0100
Subject: [PATCH] [T] PF; Update shear test.

Compare to the original reference result for t=300 and ts=1e-2, which
matched sufficiently good.
Increase the time step size to 1e-1 and increase the end time to 400.
New results included.

Be aware, that the test result is wrong and is there for code coverage.
---
 ProcessLib/PhaseField/Tests.cmake                 |  6 ++++--
 Tests/Data/PhaseField/square_shear_h_400.prj      | 15 ++++-----------
 ...are_shear_h_400_pcs_0_ts_4000_t_400.000000.vtu |  3 +++
 3 files changed, 11 insertions(+), 13 deletions(-)
 create mode 100644 Tests/Data/PhaseField/square_shear_h_400_pcs_0_ts_4000_t_400.000000.vtu

diff --git a/ProcessLib/PhaseField/Tests.cmake b/ProcessLib/PhaseField/Tests.cmake
index b75c350b0d5..a26a4d86de4 100644
--- a/ProcessLib/PhaseField/Tests.cmake
+++ b/ProcessLib/PhaseField/Tests.cmake
@@ -61,6 +61,8 @@ AddTest(
     TESTER vtkdiff
     REQUIREMENTS NOT (OGS_USE_LIS OR OGS_USE_MPI)
     DIFF_DATA
-    square_shear_h_400_pcs_0_ts_30000_t_300.000000.vtu square_shear_h_400_pcs_0_ts_30000_t_300.000000.vtu displacement displacement 1e-16 0
-    square_shear_h_400_pcs_0_ts_30000_t_300.000000.vtu square_shear_h_400_pcs_0_ts_30000_t_300.000000.vtu phasefield phasefield 1e-16 0
+    square_shear_h_400_pcs_0_ts_4000_t_400.000000.vtu square_shear_h_400_pcs_0_ts_4000_t_400.000000.vtu displacement displacement 1e-16 0
+    square_shear_h_400_pcs_0_ts_4000_t_400.000000.vtu square_shear_h_400_pcs_0_ts_4000_t_400.000000.vtu phasefield phasefield 1e-15 0
+    square_shear_h_400_pcs_0_ts_4000_t_400.000000.vtu square_shear_h_400_pcs_0_ts_4000_t_400.000000.vtu sigma sigma 1e-10 0
+    square_shear_h_400_pcs_0_ts_4000_t_400.000000.vtu square_shear_h_400_pcs_0_ts_4000_t_400.000000.vtu epsilon epsilon 1e-15 0
    )
diff --git a/Tests/Data/PhaseField/square_shear_h_400.prj b/Tests/Data/PhaseField/square_shear_h_400.prj
index 56c1de35042..9479d293c45 100644
--- a/Tests/Data/PhaseField/square_shear_h_400.prj
+++ b/Tests/Data/PhaseField/square_shear_h_400.prj
@@ -46,11 +46,11 @@
                 <time_stepping>
                     <type>FixedTimeStepping</type>
                     <t_initial>0</t_initial>
-                    <t_end>1</t_end>
+                    <t_end>400</t_end>
                     <timesteps>
                         <pair>
                             <repeat>10000</repeat>
-                            <delta_t>1e-4</delta_t>
+                            <delta_t>1e-1</delta_t>
                         </pair>
                     </timesteps>
                 </time_stepping>
@@ -61,20 +61,13 @@
             <prefix>square_shear_h_400</prefix>
             <timesteps>
                 <pair>
-                    <repeat>200</repeat>
-                    <each_steps>200</each_steps>
+                    <repeat>1</repeat>
+                    <each_steps>10000</each_steps>
                 </pair>
-                <pair>
-                    <repeat>80</repeat>
-                    <each_steps>1000</each_steps>
-                </pair>
-                <!--<pair><repeat>50</repeat><each_steps>100</each_steps></pair>-->
             </timesteps>
             <variables>
                 <variable>displacement</variable>
                 <variable>phasefield</variable>
-                <variable>sigma</variable>
-                <variable>epsilon</variable>
             </variables>
         </output>
     </time_loop>
diff --git a/Tests/Data/PhaseField/square_shear_h_400_pcs_0_ts_4000_t_400.000000.vtu b/Tests/Data/PhaseField/square_shear_h_400_pcs_0_ts_4000_t_400.000000.vtu
new file mode 100644
index 00000000000..a82d444ee9f
--- /dev/null
+++ b/Tests/Data/PhaseField/square_shear_h_400_pcs_0_ts_4000_t_400.000000.vtu
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3c81f93e1548f686fb3d96e2db9d0be24d0eeac2715bc2787112467b0b039383
+size 52382
-- 
GitLab