2D AMRCLAW
resize_alloc_static.f90
Go to the documentation of this file.
1 
2 ! ============================================================================
3 ! Program: AMRClaw
4 ! File: resize_storage_static.f90
5 ! Created: 2009-10-20
6 ! Author: Marsha Berger and Randy LeVeque
7 ! ============================================================================
8 ! Description: For use with compilers that don't support move_alloc.
9 ! Halts with an error message.
10 ! ============================================================================
11 
12 ! NOTE: Older f90 compilers (e.g. gfortran prior to 4.2?)
13 ! may not implement move_alloc and you will need to use this routine
14 ! instead of resize_storage.f90 and set the
15 ! allocation large enough in init_alloc.f90 to avoid running out of space.
16 
17 
18 subroutine resize_storage(new_size,status)
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 
37 end subroutine resize_storage
integer memsize
Definition: amr_module.f90:219
subroutine resize_storage(new_size, status)
The module contains the definition of a "node descriptor" as well as other global variables used duri...
Definition: amr_module.f90:21