-
- Downloads
Support for single precision wp (!98)
## What is the new feature Support for single-precision as working-precision in libfortran-support. Related to icon-mpim MR (https://gitlab.dkrz.de/icon/icon-mpim/-/merge_requests/558), and libiconmath MR (libiconmath!13 ). ## How is it implemented - New CMake argument `FS_ENABLE_SINGLE_PRECISION`, disabled by default - Precision handling: Introduction of `src/mo_iconlib_kind.f90` shared by fortran-support and iconmath: - Precision (dp+sp): Using iso_fortran_env variables `dp=>real64` and `sp=>real32` - Working precision (wp): `FS_ENABLE_SINGLE_PRECISION==TRUE` -> `wp=real32`, else `wp=real64` - Variable precision (vp): `FS_ENABLE_MIXED_PRECISION==TRUE` -> `vp=real32`, else `vp=wp` - Extensions of some functions to include sp and dp interfaces - Kind for `t_ptr` types is `wp` by default, with wp or dp or sp versions specified by suffix. Co-authored-by:Yen-Chen Chen <yen-chen.chen@tum.de> Co-authored-by:
Dylan Kierans <dylankierans53@gmail.com> Co-authored-by:
Pradipta Samanta <samanta@dkrz.de> Approved-by:
Yen-Chen Chen <yen-chen.chen@tum.de> Merged-by:
Yen-Chen Chen <yen-chen.chen@tum.de> Changelog: feature
parent
7041b0ca
No related branches found
No related tags found
Showing
- CMakeLists.txt 1 addition, 0 deletionsCMakeLists.txt
- src/CMakeLists.txt 10 additions, 1 deletionsrc/CMakeLists.txt
- src/fortran_support.F90 40 additions, 12 deletionssrc/fortran_support.F90
- src/mo_exception.F90 26 additions, 6 deletionssrc/mo_exception.F90
- src/mo_expression.F90 94 additions, 96 deletionssrc/mo_expression.F90
- src/mo_fortran_tools.F90 442 additions, 53 deletionssrc/mo_fortran_tools.F90
- src/mo_iconlib_kind.F90 47 additions, 0 deletionssrc/mo_iconlib_kind.F90
- src/mo_octree.F90 1 addition, 1 deletionsrc/mo_octree.F90
- src/mo_simple_dump.F90 1 addition, 1 deletionsrc/mo_simple_dump.F90
- src/mo_util_file.F90 1 addition, 1 deletionsrc/mo_util_file.F90
- src/mo_util_sort.F90 247 additions, 15 deletionssrc/mo_util_sort.F90
- test/fortran/CMakeLists.txt 6 additions, 0 deletionstest/fortran/CMakeLists.txt
- test/fortran/helpers.f90 0 additions, 1 deletiontest/fortran/helpers.f90
- test/fortran/test_exception.f90 8 additions, 4 deletionstest/fortran/test_exception.f90
- test/fortran/test_expression.f90 1 addition, 1 deletiontest/fortran/test_expression.f90
- test/fortran/test_fortran_tools.f90 296 additions, 8 deletionstest/fortran/test_fortran_tools.f90
- test/fortran/test_sort.f90 90 additions, 28 deletionstest/fortran/test_sort.f90
Loading
Please register or sign in to comment