Skip to content

More updates for new DbKi=R8Ki behavior#1

Merged
deslaughter merged 1 commit intodeslaughter:f/del-qukifrom
bjonkman:f/del-quki
Feb 17, 2023
Merged

More updates for new DbKi=R8Ki behavior#1
deslaughter merged 1 commit intodeslaughter:f/del-qukifrom
bjonkman:f/del-quki

Conversation

@bjonkman
Copy link

A few more changes for DbKi = R8Ki behavior, especially on Windows:

  • change DBLE to REAL(*,R8Ki) to avoid possible issues when default double is specified as other than 8 bytes
  • remove QuKi from rest of the Sys*.f90 routines
  • make default double 64 instead of 128 bits in VS project files' DP configurations
  • consistent variable types in DCM_expR and DCM_SetLogMapForInterpRand other routines in NWTC_Num.f90

- change `DBLE` to REAL(*,R8Ki)
- remove QuKi from rest of the Sys*.f90 routines
- make default double 64 instead of 128 in VS project files DP configurations
- consistent variable types in `DCM_expR` and `DCM_SetLogMapForInterpR`and other routines in NWTC_Num.f90
@deslaughter deslaughter merged commit ca3e998 into deslaughter:f/del-quki Feb 17, 2023
@deslaughter
Copy link
Owner

Thanks for submitting this, I should have done more checking for the other compilers and environments.

deslaughter pushed a commit that referenced this pull request Mar 14, 2023
@bjonkman bjonkman deleted the f/del-quki branch May 12, 2023 17:48
deslaughter pushed a commit that referenced this pull request Jun 1, 2023
openfast(66108,0x10fb1edc0) malloc: *** error for object 0x7fe4a223a000: pointer being freed was not allocated
openfast(66108,0x10fb1edc0) malloc: *** set a breakpoint in malloc_error_break to debug

Program received signal SIGABRT: Process abort signal.

Backtrace for this error:
\#0  0x103a3f33d
\#1  0x103a3e76d
\#2  0x7fff68c225fc
Abort trap: 6
deslaughter pushed a commit that referenced this pull request Jun 1, 2023
deslaughter pushed a commit that referenced this pull request Oct 6, 2023
Update regression tests, and merge in latest rc-3.5.1
deslaughter pushed a commit that referenced this pull request Apr 23, 2024
Automatically build OpenFAST docker images
deslaughter pushed a commit that referenced this pull request Jul 24, 2024
MD: minor cleanup on Lin Damp feature
andrew-platt pushed a commit that referenced this pull request Jul 9, 2025
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.
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