Skip to content

Commit 8c67557

Browse files
committed
ORemove unnecessary code
1 parent 333fb2e commit 8c67557

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/metapackage/fpm_meta_blas.f90

+5-8
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@ subroutine init_blas(this, compiler, error)
3636
this%has_external_modules = .false.
3737

3838
if (get_os_type() == OS_MACOS) then
39-
if (compile_and_link_flags_supported(this, compiler, "-framework Accelerate")) then
39+
if (compile_and_link_flags_supported(compiler, "-framework Accelerate")) then
4040
call set_compile_and_link_flags(this, compiler, "-framework Accelerate")
4141
return
4242
end if
4343
end if
4444

4545
if (compiler%is_intel()) then
4646
if (get_os_type() == OS_WINDOWS) then
47-
if (compile_and_link_flags_supported(this, compiler, "/Qmkl")) then
47+
if (compile_and_link_flags_supported(compiler, "/Qmkl")) then
4848
call set_compile_and_link_flags(this, compiler, "/Qmkl")
4949
return
5050
end if
51-
else if (compile_and_link_flags_supported(this, compiler, "-qmkl")) then
51+
else if (compile_and_link_flags_supported(compiler, "-qmkl")) then
5252
call set_compile_and_link_flags(this, compiler, "-Qmkl")
5353
return
5454
endif
@@ -72,15 +72,12 @@ subroutine init_blas(this, compiler, error)
7272
call fatal_error(error, 'pkg-config could not find a suitable blas package.')
7373
end subroutine init_blas
7474

75-
function compile_and_link_flags_supported(this, compiler, flags) result(is_supported)
76-
class(metapackage_t), intent(in) :: this
75+
function compile_and_link_flags_supported(compiler, flags) result(is_supported)
7776
type(compiler_t), intent(in) :: compiler
7877
character(len=*), intent(in) :: flags
7978
logical :: is_supported
8079

81-
is_supported = compiler%check_flags_supported( &
82-
compile_flags=flags, &
83-
link_flags=flags)
80+
is_supported = compiler%check_flags_supported(ompile_flags=flags, link_flags=flags)
8481
end function compile_and_link_flags_supported
8582

8683
subroutine set_compile_and_link_flags(this, compiler, flags)

0 commit comments

Comments
 (0)