Skip to content

Commit be8f4d2

Browse files
committed
add coarray and less verbose warnings for intel ifort
1 parent 5de92b8 commit be8f4d2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

fpm/src/fpm_compiler.f90

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module fpm_compiler
2-
use fpm_model, only: fpm_model_t
2+
use fpm_model, only: fpm_model_t
33
use fpm_filesystem, only: join_path
44
public add_compile_flag_defaults
55

@@ -9,9 +9,9 @@ subroutine add_compile_flag_defaults(build_name,compiler,model)
99
character(len=*),intent(in) :: build_name, compiler
1010

1111
type(fpm_model_t), intent(inout) :: model
12-
! could just be a function to return a string instead of passing model
12+
! could just be a function to return a string instead of passing model
1313
! but likely to change other components like matching C compiler
14-
14+
1515
character(len=:),allocatable :: fflags
1616
character(len=:),allocatable :: module_path_switch
1717

@@ -43,7 +43,7 @@ subroutine add_compile_flag_defaults(build_name,compiler,model)
4343

4444
select case(build_name//'_'//compiler)
4545

46-
case('release_caf')
46+
case('release_caf')
4747
module_path_switch='-J '
4848
fflags='&
4949
& -O3&
@@ -65,7 +65,7 @@ subroutine add_compile_flag_defaults(build_name,compiler,model)
6565
& -fcheck-array-temporaries&
6666
& -fbacktrace&
6767
&'
68-
case('release_gfortran')
68+
case('release_gfortran')
6969
module_path_switch='-J '
7070
fflags='&
7171
& -O3&
@@ -137,6 +137,7 @@ subroutine add_compile_flag_defaults(build_name,compiler,model)
137137
& -fp-model precise&
138138
& -pc 64&
139139
& -align all&
140+
& -coarray&
140141
& -error-limit 1&
141142
& -reentrancy threaded&
142143
& -nogen-interfaces&
@@ -147,7 +148,8 @@ subroutine add_compile_flag_defaults(build_name,compiler,model)
147148
module_path_switch='-module '
148149
fflags = '&
149150
& -warn all&
150-
& -check all&
151+
& -check:all:noarg_temp_created&
152+
& -coarray&
151153
& -error-limit 1&
152154
& -O0&
153155
& -g&

0 commit comments

Comments
 (0)