cngf-pf

continuum model for granular flows with pore-pressure dynamics (renamed from 1d_fd_simple_shear)
git clone git://src.adamsgaard.dk/cngf-pf # fast
git clone https://src.adamsgaard.dk/cngf-pf.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit b7275cb2f7cbc3e5ceea8fa47edc5ef2430f2fac
parent 35c8d2623bcb74b288d0451711b1be678e802f9e
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 28 Oct 2020 13:02:54 +0100

simulation.[ch]: change parameter names for residual(..)

Diffstat:
Msimulation.c | 4++--
Msimulation.h | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/simulation.c b/simulation.c @@ -603,9 +603,9 @@ set_bc_dirichlet(double *a, } double -residual(double new, double old) +residual(double new_val, double old_val) { - return (new - old) / (old + 1e-16); + return (new_val - old_val) / (old_val + 1e-16); } static void diff --git a/simulation.h b/simulation.h @@ -152,7 +152,7 @@ void set_bc_dirichlet(double *a, const int boundary, const double value); -double residual(double new, double old); +double residual(double new_val, double old_val); void write_output_file(struct simulation *sim, const int normalize); void print_output(struct simulation *sim, FILE *fp, const int normalize);