Skip to content

Commit d6cd868

Browse files
committed
fix: Fix a bug with the allocator.
1 parent fc1d474 commit d6cd868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/allocator.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module m_allocator
5353
!! `refcount` that counts the number of references to this
5454
!! field. User code is currently responsible for incrementing
5555
!! the reference count.
56-
type(field_t), pointer :: next
56+
class(field_t), pointer :: next
5757
real(dp), allocatable :: data(:, :, :)
5858
integer :: refcount = 0
5959
integer :: id !! An integer identifying the memory block.

0 commit comments

Comments
 (0)