From 14c27de57773d05aad72b2573927a3a50b5082a4 Mon Sep 17 00:00:00 2001 From: Andreas Zach Date: Sun, 22 Mar 2026 18:14:18 +0100 Subject: [PATCH 1/3] Fix make dependency --- examples/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Makefile b/examples/Makefile index 978bef68..62b61f49 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -19,7 +19,7 @@ example_value = $($(call example_var,$1,$2)) examples-list: @printf "Available examples: %s\n" "$(EXAMPLE_TARGETS)" -examples-%: build | $(NEO_RT_BIN) +examples-%: build $(call run_example,$*) # Internal helper: run a single example by name. From f9ca6e8690ce4770bc3ae77b193e1be2782b19e2 Mon Sep 17 00:00:00 2001 From: Andreas Zach Date: Sun, 22 Mar 2026 18:22:28 +0100 Subject: [PATCH 2/3] Document example targets in README Add Examples section showing how to run the base example via `make examples-base` and list available examples. Co-Authored-By: Claude Opus 4.6 (1M context) --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 3b98ef81..1392755c 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,20 @@ For single-point runs such as ripple tests, populate a `config_t` instance, call When spline mode is active the `M_t`, `vth`, `qi`, and `mi` values come from the supplied plasma/profile data and overwrite any prior config settings, so reset them if you later switch back to the config-only workflow. +## Examples + +The `examples/` directory contains ready-to-run input decks. To run the base example: + +```bash +make examples-base +``` + +To list all available examples: + +```bash +make examples-list +``` + ## Testing Regression and unit tests are provided for both the Fortran and Python components. After building the solver, run From b4660d1214f17da9b3c86b451ffe55bf7cca1b65 Mon Sep 17 00:00:00 2001 From: Andreas Zach Date: Sun, 22 Mar 2026 18:25:32 +0100 Subject: [PATCH 3/3] Set log_level explicitly in base example input The log_level local variable in read_and_set_config was uninitialized, causing unpredictable verbosity when input files omitted log_level. Initialize the local to 0 as a safety net and set log_level = 3 (INFO) in the base example input file. Co-Authored-By: Claude Opus 4.6 (1M context) --- examples/base/driftorbit.in | 1 + src/config.f90 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/base/driftorbit.in b/examples/base/driftorbit.in index 3529099e..159e79b3 100644 --- a/examples/base/driftorbit.in +++ b/examples/base/driftorbit.in @@ -20,4 +20,5 @@ efac = 1.0 ! scale E field by factor inp_swi = 8 ! input switch for Boozer file vsteps = 256 ! integration steps in velocity space + log_level = 3 ! log level (0=result, 1=error, 2=warn, 3=info, 4=debug, 5=trace) / diff --git a/src/config.f90 b/src/config.f90 index 05a4379f..3f970625 100644 --- a/src/config.f90 +++ b/src/config.f90 @@ -77,7 +77,7 @@ subroutine read_and_set_config(config_file) character(len=*), intent(in) :: config_file real(dp) :: qs, ms - integer :: log_level + integer :: log_level = 0 namelist /params/ s, M_t, qs, ms, vth, epsmn, m0, mph, comptorque, magdrift, & nopassing, noshear, pertfile, nonlin, bfac, efac, inp_swi, vsteps, log_level