Skip to content

[pull] main from OpenFAST:main#12

Merged
pull[bot] merged 40 commits intoMRE-Code-Hub:mainfrom
OpenFAST:main
Jul 9, 2025
Merged

[pull] main from OpenFAST:main#12
pull[bot] merged 40 commits intoMRE-Code-Hub:mainfrom
OpenFAST:main

Conversation

@pull
Copy link

@pull pull bot commented Jul 9, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.2)

Can you help keep this open source service alive? 💖 Please sponsor : )

luwang00 and others added 30 commits March 11, 2025 12:19
FAST_CreateCheckpoint expects a fixed sized char buffer of size 1025:
`CHARACTER(KIND=C_CHAR), INTENT(IN ) ::
CheckpointRootName_c(IntfStrLen)`. However the c++ is taking a 1 char
string and sending a pointer to that data to the Fortran. The Fortran
`TRANSFER` function then throws a good old:

```
==2684227==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x5120002144e8 at pc 0x557e98358a61 bp 0x7ffc0f87ea90 sp 0x7ffc0f87e248
READ of size 1025 at 0x5120002144e8 thread T0
    #0 0x557e98358a60 in memcpy /mnt/vdb/home/jrood/goose/spack/var/spack/stage/spack-stage-llvm-17.0.6-fzo52dlnsdgyyb3wgxrrlxmnvepk6esa/spack-src/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors_memintrinsics.inc:115:5
    #1 0x7f0d5b25c311 in FAST_CreateCheckpoint /mnt/vdb/home/mhenryde/exawind/exawind-manager/environments/nalu-wind-dev/openfast/modules/openfast-library/src/FAST_Library.f90:445:76
    #2 0x7f0d5f5ea22e in fast::OpenFAST::step(bool)
    /mnt/vdb/home/mhenryde/exawind/exawind-manager/environments/nalu-wind-dev/openfast/glue-codes/openfast-cpp/src/OpenFAST.cpp:1436:17
```

This PR fixes this error.
HD bug fix: avoid division by zero with MHstLMod=2
Add space for clarity

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
GH actions - fix paths and change to artifacts instead of cache so `requirements.txt` is reliably found
Cross merge `dev` to rc-4.1.1
Fix FAST_CreateCheckpoint in c++ interface
…Switch2

B/hd cbind segfault ss out switch2
@pull pull bot locked and limited conversation to collaborators Jul 9, 2025
@pull pull bot added the ⤵️ pull label Jul 9, 2025
@pull pull bot merged commit 4350a49 into MRE-Code-Hub:main Jul 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

5 participants