2D AMRCLAW
Functions/Subroutines
resize_alloc_static.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine resize_storage (new_size, status)
 

Function/Subroutine Documentation

◆ resize_storage()

subroutine resize_storage ( integer, intent(in)  new_size,
integer, intent(out)  status 
)

Definition at line 19 of file resize_alloc_static.f90.

References amr_module::memsize.

19 
20  use amr_module
21  implicit none
22 
23  integer, intent(out) :: status
24  integer, intent(in) :: new_size
25 
26  status = 1
27 
28  write(6,*) '*** Ran out of storage for AMR. '
29  write(6,*) '*** Increase memsize in init_alloc_static.f'
30  write(6,*) '*** or switch to dynamic memory using init_alloc.f90'
31  write(6,*) '*** Current memsize = ',memsize
32  write(6,*) '*** Requested new_size = ',new_size
33  stop
34 
35  return
36 
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