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 cdecdb7efc00a7532ef671a642c0cfb4bfd06931
parent 1e6942b9f9ad1018f0ed75947ebe69cda5b047f5
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 18 Mar 2021 17:43:01 +0100

arrays.c: malloc -> calloc

Diffstat:
Marrays.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arrays.c b/arrays.c @@ -154,7 +154,7 @@ empty(const int n) check_magnitude(__func__, 1, n); - if (!(out = malloc(n * sizeof(double)))) + if (!(out = calloc(n, sizeof(double)))) err(1, "%s: calloc", __func__); return out;