tIn residual: compare change to old value - cngf-pf - continuum model for granular flows with pore-pressure dynamics (renamed from 1d_fd_simple_shear)
 (HTM) git clone git://src.adamsgaard.dk/cngf-pf
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit ffe45348839b6f09bf9b9d651b68159cef108db7
 (DIR) parent b47478c82b40a6ea1967da7c5eb9161e51688815
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Thu, 16 Apr 2020 15:38:39 +0200
       
       In residual: compare change to old value
       
       Diffstat:
         M simulation.c                        |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/simulation.c b/simulation.c
       t@@ -601,7 +601,7 @@ set_bc_dirichlet(double* g_ghost,
        double
        residual_normalized(double new, double old)
        {
       -        return fabs((new - old)/(new + 1e-16));
       +        return fabs((new - old)/(old + 1e-16));
        }
        
        static void