prec provides IEEE module
This commit is contained in:
parent
2a8b5a1f0d
commit
90440b50b7
|
@ -7,11 +7,9 @@
|
||||||
!> @brief setting precision for real and int type
|
!> @brief setting precision for real and int type
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
module prec
|
module prec
|
||||||
use, intrinsic :: IEEE_arithmetic, only:&
|
use, intrinsic :: IEEE_arithmetic
|
||||||
IEEE_selected_real_kind
|
|
||||||
|
|
||||||
implicit none
|
implicit none
|
||||||
private
|
|
||||||
! https://software.intel.com/en-us/blogs/2017/03/27/doctor-fortran-in-it-takes-all-kinds
|
! https://software.intel.com/en-us/blogs/2017/03/27/doctor-fortran-in-it-takes-all-kinds
|
||||||
#ifdef Abaqus
|
#ifdef Abaqus
|
||||||
integer, parameter, public :: pReal = selected_real_kind(15,307) !< number with 15 significant digits, up to 1e+-307 (typically 64 bit)
|
integer, parameter, public :: pReal = selected_real_kind(15,307) !< number with 15 significant digits, up to 1e+-307 (typically 64 bit)
|
||||||
|
|
|
@ -3,10 +3,7 @@
|
||||||
!> @brief provides wrappers to C routines
|
!> @brief provides wrappers to C routines
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
module system_routines
|
module system_routines
|
||||||
use, intrinsic :: ISO_C_Binding, only: &
|
use, intrinsic :: ISO_C_Binding
|
||||||
C_INT, &
|
|
||||||
C_CHAR, &
|
|
||||||
C_NULL_CHAR
|
|
||||||
|
|
||||||
implicit none
|
implicit none
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in New Issue