Skip to content

Oti spike - #36

Closed
Samm-Py wants to merge 4 commits into
ORNL-MDF:mainfrom
Samm-Py:oti-spike
Closed

Oti spike#36
Samm-Py wants to merge 4 commits into
ORNL-MDF:mainfrom
Samm-Py:oti-spike

Conversation

@Samm-Py

@Samm-Py Samm-Py commented Aug 7, 2026

Copy link
Copy Markdown

No description provided.

root and others added 4 commits July 30, 2026 09:54
Finch's field type was fixed to double. This threads a Scalar template
parameter (defaulting to double) through Grid, Boundary, Solver, Layer and
SolidificationData, so the temperature field can carry a user-supplied
arithmetic type. With double the generated code and results are unchanged;
verified bit-identical solidification output on the single_line case.

The differentiated material and source inputs move into a MaterialProperties
struct so a caller can supply values of the field scalar type rather than
plain doubles read from the input deck. Quantities that only select a branch
(solidus, liquidus) and all mesh geometry stay double.

Finch_Scalar.hpp adds exp/fmin/fmax dispatch: arithmetic types forward to
Kokkos as before, anything else resolves by ADL into the scalar type's own
namespace. Finch therefore carries no dependency on any AD library.

The optional finch_sensitivity application demonstrates the result with
cpp_oti_lib, obtaining d(QoI)/dp for six material and source parameters from
a single solve and validating each against central finite differences.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PNkQTS2g7P6dNDybhWRkwz
Documents every change made, both compile errors hit, the environment
setup cost kept separate from the integration cost, and the finite-difference
step-size investigation that initially looked like a 28% derivative error and
turned out to be an artifact of the latent-heat branch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PNkQTS2g7P6dNDybhWRkwz
The measured changes are the level-of-effort evidence; projected schedules
added nothing. Remaining work is now recorded as concrete tasks, with the
open numerical questions kept alongside them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PNkQTS2g7P6dNDybhWRkwz
@Samm-Py Samm-Py closed this Aug 7, 2026
@Samm-Py
Samm-Py deleted the oti-spike branch August 7, 2026 19:34
@Samm-Py

Samm-Py commented Aug 7, 2026

Copy link
Copy Markdown
Author

Closed because this was opened from the wrong branch; changes continued in #35.

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.

2 participants