Skip to content

Commit bea5139

Browse files
Gregor Corbinnjansson
authored andcommitted
nvhpc: workaround for submodule bug
Work around this bug https://forums.developer.nvidia.com/t/submodule-matching-error-of-declaration/211278 by removing target attribute from dummy args to module subroutine (cherry picked from commit 9a0a207)
1 parent eaafa02 commit bea5139

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

src/krylov/krylov.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ end subroutine ksp_t_free
189189
!! @param monitor Enable/disable monitoring, optional.
190190
module subroutine krylov_solver_factory(object, n, type_name, &
191191
max_iter, abstol, M, monitor)
192-
class(ksp_t), allocatable, target, intent(inout) :: object
192+
class(ksp_t), allocatable, intent(inout) :: object
193193
integer, intent(in), value :: n
194194
character(len=*), intent(in) :: type_name
195195
integer, intent(in) :: max_iter

src/krylov/krylov_fctry.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
!! @param monitor Enable/disable residual history, optional.
7777
module subroutine krylov_solver_factory(object, n, type_name, &
7878
max_iter, abstol, M, monitor)
79-
class(ksp_t), allocatable, target, intent(inout) :: object
79+
class(ksp_t), allocatable, intent(inout) :: object
8080
integer, intent(in), value :: n
8181
character(len=*), intent(in) :: type_name
8282
integer, intent(in) :: max_iter

src/krylov/precon.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ end subroutine pc_update
6868
interface
6969
!> Create a preconditioner
7070
module subroutine precon_factory(pc, type_name)
71-
class(pc_t), target, allocatable, intent(inout) :: pc
71+
class(pc_t), allocatable, intent(inout) :: pc
7272
character(len=*), intent(in) :: type_name
7373
end subroutine precon_factory
7474

src/krylov/precon_fctry.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
!> Create a preconditioner
5353
module subroutine precon_factory(pc, type_name)
54-
class(pc_t), target, allocatable, intent(inout) :: pc
54+
class(pc_t), allocatable, intent(inout) :: pc
5555
character(len=*), intent(in) :: type_name
5656
character(len=:), allocatable :: type_string
5757

src/les/les_model.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ end subroutine les_model_free
114114
!! @param coef SEM coefficients.
115115
!! @param json A dictionary with parameters.
116116
module subroutine les_model_factory(object, type_name, dofmap, coef, json)
117-
class(les_model_t), allocatable, target, intent(inout) :: object
117+
class(les_model_t), allocatable, intent(inout) :: object
118118
character(len=*), intent(in) :: type_name
119119
type(dofmap_t), intent(in) :: dofmap
120120
type(coef_t), intent(in) :: coef

src/les/les_model_fctry.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
!! @param coef SEM coefficients.
5454
!! @param json A dictionary with parameters.
5555
module subroutine les_model_factory(object, type_name, dofmap, coef, json)
56-
class(les_model_t), allocatable, target, intent(inout) :: object
56+
class(les_model_t), allocatable, intent(inout) :: object
5757
character(len=*), intent(in) :: type_name
5858
type(dofmap_t), intent(in) :: dofmap
5959
type(coef_t), intent(in) :: coef

src/wall_models/wall_model.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ end subroutine wall_model_free
156156
!! @param json A dictionary with parameters.
157157
module subroutine wall_model_factory(object, coef, msk, facet, nu, &
158158
json)
159-
class(wall_model_t), allocatable, target, intent(inout) :: object
159+
class(wall_model_t), allocatable, intent(inout) :: object
160160
type(coef_t), intent(in) :: coef
161161
integer, intent(in) :: msk(:)
162162
integer, intent(in) :: facet(:)

src/wall_models/wall_model_fctry.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
!! @param json A dictionary with parameters.
5656
module subroutine wall_model_factory(object, coef, msk, facet, nu, &
5757
json)
58-
class(wall_model_t), allocatable, target, intent(inout) :: object
58+
class(wall_model_t), allocatable, intent(inout) :: object
5959
type(coef_t), intent(in) :: coef
6060
integer, intent(in) :: msk(:)
6161
integer, intent(in) :: facet(:)

0 commit comments

Comments
 (0)