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 b61f9f0ce52b135939c72bb5294f607638bd9dd1
parent 73c9a81eb3b82c428abe91bdae54125e36c8a40d
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 14 Jan 2026 22:39:13 +0100

chore(build): revert default compiler flags and update docs

Diffstat:
MMakefile | 4++--
MREADME.md | 6++++++
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -31,8 +31,8 @@ HDR = \ LIBS = -lm -CNGFPF_CFLAGS = ${CFLAGS} ${INCS} -DVERSION=\"${VERSION}\" -O3 -march=native -flto -CNGFPF_LDFLAGS = ${LDFLAGS} -flto +CNGFPF_CFLAGS = ${CFLAGS} ${INCS} -DVERSION=\"${VERSION}\" +CNGFPF_LDFLAGS = ${LDFLAGS} CNGFPF_LIBS = ${LIBS} MAN1 = \ diff --git a/README.md b/README.md @@ -15,6 +15,12 @@ pages. If you want to show debug output during runtime, compile with `CFLAGS=-DDEBUG make`. +## Performance +For optimal performance, especially with the TDMA solvers, it is recommended to compile with optimization flags: +```sh +make CFLAGS="-O3 -march=native -flto" LDFLAGS="-flto" +``` + ## Usage See `man cngf-pf`, `man max_deformation_depth` and `man shear_flux` for usage information.