Skip to content

Commit 1df6f9d

Browse files
committed
implicit none (type, external)
1 parent ded51b7 commit 1df6f9d

File tree

89 files changed

+109
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+109
-104
lines changed

CMakeLists.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
cmake_minimum_required(VERSION 3.15) # implicit CMP0094
2+
23
if(NOT CMAKE_BUILD_TYPE)
3-
set(CMAKE_BUILD_TYPE Release CACHE STRING "Debug or Release")
4+
set(CMAKE_BUILD_TYPE Release CACHE STRING "default build type")
45
endif()
6+
57
project(Fortran2018Examples
68
LANGUAGES C Fortran
79
DESCRIPTION "Example of using modern Fortran syntax"
810
VERSION 1.2.0)
11+
912
enable_testing()
13+
include(FeatureSummary)
1014

1115
set(CTEST_TEST_TIMEOUT 10) # default timeout [seconds]
1216

@@ -17,7 +21,6 @@ check_language(CXX)
1721
if(CMAKE_CXX_COMPILER)
1822
enable_language(CXX)
1923
include(CheckCXXSourceRuns)
20-
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2124
endif()
2225

2326
include(cmake/compilers.cmake)
@@ -46,3 +49,9 @@ add_subdirectory(real)
4649
add_subdirectory(standard)
4750
add_subdirectory(submodule)
4851
add_subdirectory(system)
52+
53+
add_feature_info(cxx_fs cxx17filesystem_ok "tests using C++17 filesystem")
54+
add_feature_info(Openmp hasOMP "tests using OpenMP")
55+
add_feature_info(mpi hasMPI "tests using MPI")
56+
57+
feature_summary(WHAT ALL)

array/assumed-rank.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module rotflip_rank
44
!!
55
!! * Gfortran >= 10
66
!! * Intel Fortran >= 20.0
7-
implicit none (external)
7+
implicit none (type, external)
88

99
contains
1010

@@ -33,7 +33,7 @@ program assumed_rank
3333

3434
use rotflip_rank, only: flipud
3535

36-
implicit none (external)
36+
implicit none (type, external)
3737

3838
integer :: i, A0 = 0, A1(3) = [0,1,2]
3939
integer :: A2(3,3) = reshape( &

array/rot90.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module rotflip
77
!
88
use, intrinsic:: iso_fortran_env, only: error_unit
99

10-
implicit none (external)
10+
implicit none (type, external)
1111

1212
contains
1313

array/test_rot90.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
! demo rotating a 2-D array 90 degrees clockwise
22
use rotflip, only: rot90, flipud, fliplr
33

4-
implicit none (external)
4+
implicit none (type, external)
55

66
integer, parameter :: N=3
77
integer :: i, iarr(N,N), Barr(0:2, 0:2)

benchmarks/ackermann.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Ackp
22

3-
implicit none (external)
3+
implicit none (type, external)
44

55
contains
66

@@ -23,7 +23,7 @@ program AckermannPeter
2323

2424
use Ackp
2525

26-
implicit none (external)
26+
implicit none (type, external)
2727

2828
integer :: Ack, M, N
2929
character(8) :: buf

block/block.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ program demo_block
99
!! outer scope i= 10
1010
!! A allocated T size(a) 4
1111

12-
implicit none (external)
12+
implicit none (type, external)
1313

1414
integer :: i, j
1515
real, allocatable :: A(:)

character/ascii.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
program ascii
22
!! prints a couple special characters
33

4-
implicit none (external)
4+
implicit none (type, external)
55

66
print *,'next is a form feed',achar(12)
77
print *,'that was a form feed'

character/character_allocatable.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
program character_alloctable
22
!! shows Fortran 2003 allocatable character and auto-allocated array
33

4-
implicit none (external)
4+
implicit none (type, external)
55

66
character(:), allocatable :: flex(:)
77

character/character_array.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ program character_array
44
!! longest string you will need.
55
!! trim() each element when actually used if needed.
66

7-
implicit none (external)
7+
implicit none (type, external)
88

99
!> specify (*) or maximum len=, else each will be length one.
1010
character(*), parameter :: foo(3) = [character(9) :: 'hi', 'hello', 'greetings']

character/charlen.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
program charlen
22
!! shows how to properly specify character length and character array
33

4-
implicit none (external)
4+
implicit none (type, external)
55

66
character*(5) :: cb5 !< obsolete, don't use
77

0 commit comments

Comments
 (0)