Skip to content

fix(step): a time step below 1e-100 s is refused by name - #130

Merged
SMI-Lab-Inha merged 3 commits into
devfrom
fix/min-time-step
Nov 9, 2026
Merged

SMI-Lab-Inha merged 3 commits into
devfrom
fix/min-time-step

Conversation

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner

The time integration divides by dt². A positive dt of 1e-140 s still stepped, and from about 1e-155 s the inertia terms overflowed. A new constant CD_MIN_TIME_STEP = 1e-100 s is enforced only at the external entry points:

  • every dtM deck row (the Python validator mirrors the rule);
  • CableDyn_Step on every route;
  • the OpenFAST glue time step at aggregate and point-route initialisation and step.

It is not applied to internal sub-steps, so recovery subdivision is unaffected. capi.rst, options.rst, python.rst and the step docstring state the bound.

Tests.

  • The C API on the point route and on raw lines refuses dt = 1e-101, 1e-160, 1e-300 and 5e-324 and leaves the state unchanged; dt = 1e-100 still steps.
  • A dtM sweep checks validator/driver parity on an EI = 0 deck and on a finite-EI deck.
  • A host step of 1e-200 is refused at both OpenFAST initialisations.

One existing test that targets the step-count limit moves from dtM 1e-300 to 1e-90.

CTest passes on both BLAS kernels; pytest passes.

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T00:15:39.165401Z 50c7e4a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@read-the-docs-community

read-the-docs-community Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 CableDyn | 🛠️ Build #35741740 | 📁 Comparing 50c7e4a against latest (e8f88f5)

  🔍 Preview build  

13 files changed · ± 13 modified

± Modified

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: a21cb3d561

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: bef7e4a02e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: a71970e316

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 3610a2141f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

The implicit marches divide by dt^2 (the generalised-alpha inertia terms), so
a tiny positive step overflowed inside the line solve: from about 1e-155 s the
point route failed with "dynamic banded load/added mass returned a non-finite
Jacobian" or "banded model load q/v must be finite", the finite-EI route with
a cable recovery failure on non-finite prescribed motion. Down to 1e-140 s both
still stepped.

CD_MIN_TIME_STEP = 1e-100 s (CableDyn_Precision) now bounds every external
step: a dtM row (every row, as the other OPTIONS row rules), CableDyn_Step on
any route (raw lines, the point route and the aggregate), and the OpenFAST glue
DT at the aggregate's and the point route's initialisation and step. The
bound leaves a wide margin above the overflow and far below any useful step.
The Python deck validator applies the dtM bound; the docs give it.

Tests: the C API step on the point route and on raw lines refuses dt = 1e-101,
1e-160, 1e-300 and 5e-324 s by name and leaves the state unchanged, and steps
at 1e-100 s; the parity tests sweep dtM against the validator and, on an EI = 0
and a finite-EI deck, the driver; test_openfast_aggregate refuses a host DT of
1e-200 s at both initialisations. The step-count test moves from dtM = 1e-300
to 1e-90, which the new bound does not refuse first.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
The [Unreleased] entries of the open changes are added together in one
change, so that they do not conflict with each other.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
…ns it

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 50c7e4a52d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SMI-Lab-Inha
SMI-Lab-Inha merged commit c886c97 into dev Nov 9, 2026
22 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the fix/min-time-step branch November 9, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant