Skip to content

Commit 74b5c2b

Browse files
Merge pull request #241 from jacobwilliams/real-format-2
Made default real format when initialize() is not called consistent w…
2 parents 24cba7d + 2f1951f commit 74b5c2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/json_parameters.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module json_parameters
5959
character(kind=CK,len=*),parameter :: slash = achar(47, kind=CK)
6060
character(kind=CK,len=*),parameter :: backslash = achar(92, kind=CK)
6161

62-
character(kind=CDK,len=*),parameter :: default_real_fmt = '(ss,E26.16E4)'
62+
character(kind=CDK,len=*),parameter :: default_real_fmt = '(ss,E27.17E4)'
6363
!! default real number format statement (for writing real values to strings and files).
6464
!! Note that this can be overridden by calling [[json_initialize]].
6565

src/json_value_module.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ subroutine json_initialize(json,verbose,compact_reals,&
847847
trim(w) // '.' // trim(d) // 'E' // trim(e) // ')'
848848
else
849849
json%real_fmt = '(' // sgn // ',' // trim(rl_edit_desc) // &
850-
'30.16E3)' !just use this one (should never happen)
850+
'27.17E4)' !just use this one (should never happen)
851851
end if
852852

853853
end if

0 commit comments

Comments
 (0)