Skip to content

Commit 3a2deb2

Browse files
committed
doc [ci skip]
1 parent fe8d160 commit 3a2deb2

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
# RPN Reverse Polish Notation Calculator -- in Fortran
55

66
The `funcs.90` module provides over 100 elemental functions not found in Fortran instrinsics.
7-
A Fortran 2008 compiler is required such as `gfortran` or `ifort`.
7+
A basically Fortran 2008/2018 compatible compiler is required such as `gfortran` or `ifort`.
8+
Fortran 2008 compliance is a must.
89

910
Specifically, RPNcalc is covered by continuous integration and testing on Linux, Mac and Windows, including:
1011
* Gfortran 5, 6, 7, 8
@@ -16,7 +17,7 @@ Default size is 4.
1617

1718
#### Authors
1819
* Fortran 77 code: David G. Simpson
19-
* Fortran 2008 code: Michael Hirsch
20+
* Fortran 2018 code: Michael Hirsch
2021

2122
## Build
2223

@@ -61,7 +62,7 @@ Show what modes the calculator is in with:
6162

6263

6364
### Modes
64-
The Fortran 2008 RPN calculator has 3 operating modes.
65+
The Fortran 2018 RPN calculator has 3 operating modes.
6566
The default mode is REAL
6667

6768
COMPLEX COMPLEX mode
@@ -418,6 +419,6 @@ Many functions not commonly found in RPN calculators are included:
418419

419420
## Notes
420421

421-
Due to lack of basic Fortran 2008 support, the following compilers do NOT yet work:
422+
Due to lack of basic Fortran 2008/2018 support, the following compilers do NOT yet work:
422423
* Flang 5.0
423424
* PGI 2018

src/calc.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! main program for Fortran 2008 RPN calculator
1+
! main program for Fortran 2018 RPN calculator
22

33
!---- (historical notes) -----------
44
! Programmer: David G. Simpson
@@ -26,7 +26,7 @@ PROGRAM RPN
2626
LOGICAL :: NUM_FLAG = .false.
2727

2828

29-
print *, 'Fortran 2008 RPN Calculator, Version '//VERSION
29+
print *, 'Fortran 2018 RPN Calculator, Version '//VERSION
3030

3131
! Initialize data.
3232

src/eval.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ recursive SUBROUTINE EVAL (STR)
7373
select case(str)
7474

7575
case('HELP')
76+
call eval('VER')
7677
call eval('MODES')
7778
call eval('PS')
7879
call eval('PR')
@@ -3581,7 +3582,7 @@ recursive SUBROUTINE EVAL (STR)
35813582
print '(A,I2.2,A1,I2.2,A1,I2.2)', ' Time: ', HOUR, ':', MINUTE, ':', SECOND
35823583

35833584
case('VER') ! VER
3584-
print *, 'Fortran 2008 RPN Calculator. Version '//VERSION
3585+
print *, 'Fortran 2018 RPN Calculator. Version '//VERSION
35853586

35863587
case('VERS') ! VERS
35873588
SELECT CASE (DOMAIN_MODE)

0 commit comments

Comments
 (0)