We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ba4ced4 + 1fbe14b commit 5acca64Copy full SHA for 5acca64
src/caffeine/program_startup_s.F90
@@ -7,6 +7,7 @@
7
contains
8
9
module procedure prif_init
10
+ use ieee_arithmetic, only: ieee_inexact, ieee_set_flag
11
logical, save :: prif_init_called_previously = .false.
12
13
if (prif_init_called_previously) then
@@ -27,6 +28,10 @@
27
28
29
call sync_init()
30
31
+ ! issue #259: Ensure we clear any IEEE FP exceptions potentially
32
+ ! signalled from within the C-based initialization code above
33
+ call ieee_set_flag(ieee_inexact, .false.)
34
+
35
prif_init_called_previously = .true.
36
stat = 0
37
end if
0 commit comments