We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9026d98 commit d5264cdCopy full SHA for d5264cd
fortran/solver/src/room.f90
@@ -9,6 +9,8 @@ module room_mod
9
contains
10
procedure :: init
11
procedure :: show
12
+ procedure :: room_t_assignment
13
+ generic :: assignment(=) => room_t_assignment
14
end type room_t
15
public :: room_t
16
@@ -32,4 +34,11 @@ subroutine show(room)
32
34
write(6, *) ''
33
35
end do
36
end subroutine show
37
+ subroutine room_t_assignment(lhs, rhs)
38
+ class(room_t), intent(out) :: lhs
39
+ class(room_t), intent(in) :: rhs
40
+ lhs%inited = rhs%inited
41
+ lhs%number = rhs%number
42
+ lhs%doors = rhs%doors
43
+ end subroutine room_t_assignment
44
end module room_mod
0 commit comments