2D AMRCLAW
Functions/Subroutines
restrt_alloc.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine restrt_alloc (isize)
 

Function/Subroutine Documentation

◆ restrt_alloc()

subroutine restrt_alloc ( integer  isize)

Definition at line 12 of file restrt_alloc.f90.

References amr_module::alloc, and amr_module::memsize.

Referenced by restrt().

12 
13  use amr_module
14  implicit none
15  integer :: isize
16 
17 
18 ! if (.not.allocated(storage)) then ! old way, changed mjb Sept. 2014
19  if (.not.allocated(alloc)) then ! new way uses allocatable, not pointer, arrays
20  write(6,*)"allocating ",isize," -sized alloc array"
21  memsize = isize
22 ! allocate(storage(memsize))
23  allocate(alloc(memsize))
24 ! alloc => storage
25  print *, "Storage allocated of size ",memsize," at restart"
26  else
27  print *, "Storage already allocated!"
28  endif
29 
integer memsize
Definition: amr_module.f90:219
The module contains the definition of a "node descriptor" as well as other global variables used duri...
Definition: amr_module.f90:21
real(kind=8), dimension(:), allocatable alloc
Definition: amr_module.f90:218
Here is the caller graph for this function: