tsimulation.[ch]: change parameter names for residual(..) - 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 b7275cb2f7cbc3e5ceea8fa47edc5ef2430f2fac
(DIR) parent 35c8d2623bcb74b288d0451711b1be678e802f9e
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 28 Oct 2020 13:02:54 +0100
simulation.[ch]: change parameter names for residual(..)
Diffstat:
M simulation.c | 4 ++--
M simulation.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/simulation.c b/simulation.c
t@@ -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
(DIR) diff --git a/simulation.h b/simulation.h
t@@ -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);