Rewrite cost function for adaptive step

This commit is contained in:
2024-11-18 17:09:17 -05:00
parent 9fa10c8db4
commit d81ad18618
6 changed files with 211 additions and 264 deletions

View File

@@ -122,10 +122,10 @@ should be a `;` sperated list of `key=value` pairs. The possible keys are
* `max_delta` (double, default 1e-2): when using the adaptive step, do not
exceet `delta_max`.
* `adaptive_norm`: norm to use to estimate the error of the adaptive method:
`L1` (default) for the normalized L1 norm, `k3` for the normalized L1 norm of
f_k/|k|^3, `k32` for the normalized L1 norm, `enstrophy` for the enstrophy
norm.
* `adaptive_cost`: cost function to use to estimate the error of the adaptive
method: `L1` (default) for the normalized L1 norm, `k3` for the normalized L1
norm of f_k/|k|^3, `k32` for the normalized L1 norm, `enstrophy` for the
enstrophy, `alpha` for alpha.
* `keep_en_cst` (0 or 1, default 0): impose that the enstrophy is constant at
each step (only really useful for the reversible equation).