Skip to content

Conversation

@andrew-platt
Copy link
Collaborator

Ready to merge

Feature or improvement description
Some updates in v4.1.1 are not included in dev yet. This PR brings those updates in

Related issue, if one exists
Merge with OpenFAST/r-test#162
See #2909 for what was included in v4.1.1

luwang00 and others added 23 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
Cross merge `dev` to rc-4.1.1
Fix FAST_CreateCheckpoint in c++ interface
…Switch2

B/hd cbind segfault ss out switch2
If multiple StCs were specified, the echo files would get overwritten
* pyOpenFAST: remove unnecessary files, keep some examples.

* .gitignore __init__.py files
…ject

CMake: update location of external lapack
@andrew-platt andrew-platt requested a review from deslaughter July 9, 2025 02:49
@andrew-platt andrew-platt merged commit 485e4ed into dev Jul 9, 2025
39 of 40 checks passed
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.

6 participants