Go to the source code of this file.
◆ resize_storage()
subroutine resize_storage |
( |
integer, intent(in) |
new_size, |
|
|
integer, intent(out) |
status |
|
) |
| |
Definition at line 18 of file resize_alloc.f90.
References amr_module::alloc, and amr_module::memsize.
Referenced by igetsp().
22 integer,
intent(out) :: status
23 integer,
intent(in) :: new_size
25 real(kind=8),
allocatable,
target,
dimension(:) :: new_storage
29 print *,
"Expanding storage from ",
memsize,
" to ", new_size
30 allocate(new_storage(new_size),stat=status)
38 call move_alloc(new_storage,
alloc)
43 print *,
'new_size < memsize,' 44 print *,
'new_size = ',new_size
The module contains the definition of a "node descriptor" as well as other global variables used duri...
real(kind=8), dimension(:), allocatable alloc