Skip to content

Commit

Permalink
Fixes #171 (#172)
Browse files Browse the repository at this point in the history
* Fixes #171:  `ESMF_HAS_ACHAR_BUG` is no longer needed to support NAG + Darwin.
  • Loading branch information
tclune authored Aug 2, 2023
1 parent 916712a commit 09dd440
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions build_config/Darwin.nag.default/ESMF_Conf.inc
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@ be one of the following:
#define ESMF_IOFlushMacro(unit,status) call flush (unit, status)
#endif

#if 0
In the ESMF_Config.F90 source file, if EOL is defined
as achar(10) (which is the newline character),
the file cannot be compiled (it will not parse).
If a bug fix for this is released, the next #define can
be removed.
#endif

#define ESMF_HAS_ACHAR_BUG 1

#if 0
NAG before v6.2, use sizeof work-around code instead of F2008 C_SIZEOF
#endif
Expand Down
4 changes: 0 additions & 4 deletions src/Infrastructure/Config/src/ESMF_Config.F90
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,7 @@ module ESMF_ConfigMod

character, parameter :: BLK = achar(32) ! blank (space)
character, parameter :: TAB = achar(09) ! TAB
#ifdef ESMF_HAS_ACHAR_BUG
character, parameter :: EOL = achar(12) ! end of line mark (cr)
#else
character, parameter :: EOL = achar(10) ! end of line mark (newline)
#endif
character, parameter :: EOB = achar(00) ! end of buffer mark (null)
character, parameter :: NUL = achar(00) ! what it says

Expand Down

0 comments on commit 09dd440

Please sign in to comment.