alloc_var_I4P_7D Subroutine

private subroutine alloc_var_I4P_7D(var, ulb, msg, verbose)

Allocate CPU variable with memory checking (kind I4P, rank 7).

 use penf
 integer(I4P), allocatable :: a(:,:,:,:,:,:,:)
 integer(I4P)              :: ulb(2,7)=reshape([1,1, &
                                                1,2, &
                                                1,3, &
                                                1,4, &
                                                1,5, &
                                                1,6, &
                                                1,7],&
                                               [2,7])
 call allocate_variable(a, ulb)
 print*, allocated(a)

Arguments

Type IntentOptional Attributes Name
integer(kind=I4P), intent(inout), allocatable :: var(:,:,:,:,:,:,:)

Varibale to be allocate on CPU.

integer(kind=I4P), intent(in) :: ulb(2,7)

Upper/lower bounds of variable.

character(len=*), intent(in), optional :: msg

Message to be printed in verbose mode.

logical, intent(in), optional :: verbose

Flag to activate verbose mode.


Calls

proc~~alloc_var_i4p_7d~~CallsGraph proc~alloc_var_i4p_7d alloc_var_I4P_7D interface~str str proc~alloc_var_i4p_7d->interface~str proc~get_memory_info get_memory_info proc~alloc_var_i4p_7d->proc~get_memory_info proc~str_a_i1p str_a_I1P interface~str->proc~str_a_i1p proc~str_a_i2p str_a_I2P interface~str->proc~str_a_i2p proc~str_a_i4p str_a_I4P interface~str->proc~str_a_i4p proc~str_a_i8p str_a_I8P interface~str->proc~str_a_i8p proc~str_a_r4p str_a_R4P interface~str->proc~str_a_r4p proc~str_a_r8p str_a_R8P interface~str->proc~str_a_r8p proc~str_bol str_bol interface~str->proc~str_bol proc~str_i1p str_I1P interface~str->proc~str_i1p proc~str_i2p str_I2P interface~str->proc~str_i2p proc~str_i4p str_I4P interface~str->proc~str_i4p proc~str_i8p str_I8P interface~str->proc~str_i8p proc~str_r4p str_R4P interface~str->proc~str_r4p proc~str_r8p str_R8P interface~str->proc~str_r8p proc~strf_i1p strf_I1P interface~str->proc~strf_i1p proc~strf_i2p strf_I2P interface~str->proc~strf_i2p proc~strf_i4p strf_I4P interface~str->proc~strf_i4p proc~strf_i8p strf_I8P interface~str->proc~strf_i8p proc~strf_r4p strf_R4P interface~str->proc~strf_r4p proc~strf_r8p strf_R8P interface~str->proc~strf_r8p interface~cton cton proc~get_memory_info->interface~cton proc~ctoi_i1p ctoi_I1P interface~cton->proc~ctoi_i1p proc~ctoi_i2p ctoi_I2P interface~cton->proc~ctoi_i2p proc~ctoi_i4p ctoi_I4P interface~cton->proc~ctoi_i4p proc~ctoi_i8p ctoi_I8P interface~cton->proc~ctoi_i8p proc~ctor_r4p ctor_R4P interface~cton->proc~ctor_r4p proc~ctor_r8p ctor_R8P interface~cton->proc~ctor_r8p proc~str_a_i1p->proc~str_i1p proc~str_a_i2p->proc~str_i2p proc~str_a_i4p->proc~str_i4p proc~str_a_i8p->proc~str_i8p proc~str_a_r4p->proc~str_r4p proc~str_a_r8p->proc~str_r8p proc~compact_real_string compact_real_string proc~str_r4p->proc~compact_real_string proc~str_r8p->proc~compact_real_string

Called by

proc~~alloc_var_i4p_7d~~CalledByGraph proc~alloc_var_i4p_7d alloc_var_I4P_7D interface~allocate_variable allocate_variable interface~allocate_variable->proc~alloc_var_i4p_7d proc~assign_allocatable_i1p_1d assign_allocatable_I1P_1D proc~assign_allocatable_i1p_1d->interface~allocate_variable proc~assign_allocatable_i1p_2d assign_allocatable_I1P_2D proc~assign_allocatable_i1p_2d->interface~allocate_variable proc~assign_allocatable_i1p_3d assign_allocatable_I1P_3D proc~assign_allocatable_i1p_3d->interface~allocate_variable proc~assign_allocatable_i1p_4d assign_allocatable_I1P_4D proc~assign_allocatable_i1p_4d->interface~allocate_variable proc~assign_allocatable_i1p_5d assign_allocatable_I1P_5D proc~assign_allocatable_i1p_5d->interface~allocate_variable proc~assign_allocatable_i1p_6d assign_allocatable_I1P_6D proc~assign_allocatable_i1p_6d->interface~allocate_variable proc~assign_allocatable_i1p_7d assign_allocatable_I1P_7D proc~assign_allocatable_i1p_7d->interface~allocate_variable proc~assign_allocatable_i2p_1d assign_allocatable_I2P_1D proc~assign_allocatable_i2p_1d->interface~allocate_variable proc~assign_allocatable_i2p_2d assign_allocatable_I2P_2D proc~assign_allocatable_i2p_2d->interface~allocate_variable proc~assign_allocatable_i2p_3d assign_allocatable_I2P_3D proc~assign_allocatable_i2p_3d->interface~allocate_variable proc~assign_allocatable_i2p_4d assign_allocatable_I2P_4D proc~assign_allocatable_i2p_4d->interface~allocate_variable proc~assign_allocatable_i2p_5d assign_allocatable_I2P_5D proc~assign_allocatable_i2p_5d->interface~allocate_variable proc~assign_allocatable_i2p_6d assign_allocatable_I2P_6D proc~assign_allocatable_i2p_6d->interface~allocate_variable proc~assign_allocatable_i2p_7d assign_allocatable_I2P_7D proc~assign_allocatable_i2p_7d->interface~allocate_variable proc~assign_allocatable_i4p_1d assign_allocatable_I4P_1D proc~assign_allocatable_i4p_1d->interface~allocate_variable proc~assign_allocatable_i4p_2d assign_allocatable_I4P_2D proc~assign_allocatable_i4p_2d->interface~allocate_variable proc~assign_allocatable_i4p_3d assign_allocatable_I4P_3D proc~assign_allocatable_i4p_3d->interface~allocate_variable proc~assign_allocatable_i4p_4d assign_allocatable_I4P_4D proc~assign_allocatable_i4p_4d->interface~allocate_variable proc~assign_allocatable_i4p_5d assign_allocatable_I4P_5D proc~assign_allocatable_i4p_5d->interface~allocate_variable proc~assign_allocatable_i4p_6d assign_allocatable_I4P_6D proc~assign_allocatable_i4p_6d->interface~allocate_variable proc~assign_allocatable_i4p_7d assign_allocatable_I4P_7D proc~assign_allocatable_i4p_7d->interface~allocate_variable proc~assign_allocatable_i8p_1d assign_allocatable_I8P_1D proc~assign_allocatable_i8p_1d->interface~allocate_variable proc~assign_allocatable_i8p_2d assign_allocatable_I8P_2D proc~assign_allocatable_i8p_2d->interface~allocate_variable proc~assign_allocatable_i8p_3d assign_allocatable_I8P_3D proc~assign_allocatable_i8p_3d->interface~allocate_variable proc~assign_allocatable_i8p_4d assign_allocatable_I8P_4D proc~assign_allocatable_i8p_4d->interface~allocate_variable proc~assign_allocatable_i8p_5d assign_allocatable_I8P_5D proc~assign_allocatable_i8p_5d->interface~allocate_variable proc~assign_allocatable_i8p_6d assign_allocatable_I8P_6D proc~assign_allocatable_i8p_6d->interface~allocate_variable proc~assign_allocatable_i8p_7d assign_allocatable_I8P_7D proc~assign_allocatable_i8p_7d->interface~allocate_variable proc~assign_allocatable_r16p_1d assign_allocatable_R16P_1D proc~assign_allocatable_r16p_1d->interface~allocate_variable proc~assign_allocatable_r16p_2d assign_allocatable_R16P_2D proc~assign_allocatable_r16p_2d->interface~allocate_variable proc~assign_allocatable_r16p_3d assign_allocatable_R16P_3D proc~assign_allocatable_r16p_3d->interface~allocate_variable proc~assign_allocatable_r16p_4d assign_allocatable_R16P_4D proc~assign_allocatable_r16p_4d->interface~allocate_variable proc~assign_allocatable_r16p_5d assign_allocatable_R16P_5D proc~assign_allocatable_r16p_5d->interface~allocate_variable proc~assign_allocatable_r16p_6d assign_allocatable_R16P_6D proc~assign_allocatable_r16p_6d->interface~allocate_variable proc~assign_allocatable_r16p_7d assign_allocatable_R16P_7D proc~assign_allocatable_r16p_7d->interface~allocate_variable proc~assign_allocatable_r4p_1d assign_allocatable_R4P_1D proc~assign_allocatable_r4p_1d->interface~allocate_variable proc~assign_allocatable_r4p_2d assign_allocatable_R4P_2D proc~assign_allocatable_r4p_2d->interface~allocate_variable proc~assign_allocatable_r4p_3d assign_allocatable_R4P_3D proc~assign_allocatable_r4p_3d->interface~allocate_variable proc~assign_allocatable_r4p_4d assign_allocatable_R4P_4D proc~assign_allocatable_r4p_4d->interface~allocate_variable proc~assign_allocatable_r4p_5d assign_allocatable_R4P_5D proc~assign_allocatable_r4p_5d->interface~allocate_variable proc~assign_allocatable_r4p_6d assign_allocatable_R4P_6D proc~assign_allocatable_r4p_6d->interface~allocate_variable proc~assign_allocatable_r4p_7d assign_allocatable_R4P_7D proc~assign_allocatable_r4p_7d->interface~allocate_variable proc~assign_allocatable_r8p_1d assign_allocatable_R8P_1D proc~assign_allocatable_r8p_1d->interface~allocate_variable proc~assign_allocatable_r8p_2d assign_allocatable_R8P_2D proc~assign_allocatable_r8p_2d->interface~allocate_variable proc~assign_allocatable_r8p_3d assign_allocatable_R8P_3D proc~assign_allocatable_r8p_3d->interface~allocate_variable proc~assign_allocatable_r8p_4d assign_allocatable_R8P_4D proc~assign_allocatable_r8p_4d->interface~allocate_variable proc~assign_allocatable_r8p_5d assign_allocatable_R8P_5D proc~assign_allocatable_r8p_5d->interface~allocate_variable proc~assign_allocatable_r8p_6d assign_allocatable_R8P_6D proc~assign_allocatable_r8p_6d->interface~allocate_variable proc~assign_allocatable_r8p_7d assign_allocatable_R8P_7D proc~assign_allocatable_r8p_7d->interface~allocate_variable program~volatile_doctest~106 volatile_doctest program~volatile_doctest~106->interface~allocate_variable program~volatile_doctest~128 volatile_doctest program~volatile_doctest~128->interface~allocate_variable program~volatile_doctest~132 volatile_doctest program~volatile_doctest~132->interface~allocate_variable program~volatile_doctest~139 volatile_doctest program~volatile_doctest~139->interface~allocate_variable program~volatile_doctest~147 volatile_doctest program~volatile_doctest~147->interface~allocate_variable program~volatile_doctest~15 volatile_doctest program~volatile_doctest~15->interface~allocate_variable program~volatile_doctest~155 volatile_doctest program~volatile_doctest~155->interface~allocate_variable program~volatile_doctest~156 volatile_doctest program~volatile_doctest~156->interface~allocate_variable program~volatile_doctest~157 volatile_doctest program~volatile_doctest~157->interface~allocate_variable program~volatile_doctest~158 volatile_doctest program~volatile_doctest~158->interface~allocate_variable program~volatile_doctest~16 volatile_doctest program~volatile_doctest~16->interface~allocate_variable program~volatile_doctest~161 volatile_doctest program~volatile_doctest~161->interface~allocate_variable program~volatile_doctest~164 volatile_doctest program~volatile_doctest~164->interface~allocate_variable program~volatile_doctest~165 volatile_doctest program~volatile_doctest~165->interface~allocate_variable program~volatile_doctest~167 volatile_doctest program~volatile_doctest~167->interface~allocate_variable program~volatile_doctest~172 volatile_doctest program~volatile_doctest~172->interface~allocate_variable program~volatile_doctest~175 volatile_doctest program~volatile_doctest~175->interface~allocate_variable program~volatile_doctest~180 volatile_doctest program~volatile_doctest~180->interface~allocate_variable program~volatile_doctest~183 volatile_doctest program~volatile_doctest~183->interface~allocate_variable program~volatile_doctest~185 volatile_doctest program~volatile_doctest~185->interface~allocate_variable program~volatile_doctest~188 volatile_doctest program~volatile_doctest~188->interface~allocate_variable program~volatile_doctest~191 volatile_doctest program~volatile_doctest~191->interface~allocate_variable program~volatile_doctest~197 volatile_doctest program~volatile_doctest~197->interface~allocate_variable program~volatile_doctest~198 volatile_doctest program~volatile_doctest~198->interface~allocate_variable program~volatile_doctest~2 volatile_doctest program~volatile_doctest~2->interface~allocate_variable program~volatile_doctest~200 volatile_doctest program~volatile_doctest~200->interface~allocate_variable program~volatile_doctest~204 volatile_doctest program~volatile_doctest~204->interface~allocate_variable program~volatile_doctest~25 volatile_doctest program~volatile_doctest~25->interface~allocate_variable program~volatile_doctest~30 volatile_doctest program~volatile_doctest~30->interface~allocate_variable program~volatile_doctest~31 volatile_doctest program~volatile_doctest~31->interface~allocate_variable program~volatile_doctest~34 volatile_doctest program~volatile_doctest~34->interface~allocate_variable program~volatile_doctest~40 volatile_doctest program~volatile_doctest~40->interface~allocate_variable program~volatile_doctest~41 volatile_doctest program~volatile_doctest~41->interface~allocate_variable program~volatile_doctest~42 volatile_doctest program~volatile_doctest~42->interface~allocate_variable program~volatile_doctest~43 volatile_doctest program~volatile_doctest~43->interface~allocate_variable program~volatile_doctest~47 volatile_doctest program~volatile_doctest~47->interface~allocate_variable program~volatile_doctest~5 volatile_doctest program~volatile_doctest~5->interface~allocate_variable program~volatile_doctest~50 volatile_doctest program~volatile_doctest~50->interface~allocate_variable program~volatile_doctest~54 volatile_doctest program~volatile_doctest~54->interface~allocate_variable program~volatile_doctest~63 volatile_doctest program~volatile_doctest~63->interface~allocate_variable program~volatile_doctest~67 volatile_doctest program~volatile_doctest~67->interface~allocate_variable program~volatile_doctest~7 volatile_doctest program~volatile_doctest~7->interface~allocate_variable program~volatile_doctest~71 volatile_doctest program~volatile_doctest~71->interface~allocate_variable program~volatile_doctest~8 volatile_doctest program~volatile_doctest~8->interface~allocate_variable program~volatile_doctest~82 volatile_doctest program~volatile_doctest~82->interface~allocate_variable program~volatile_doctest~88 volatile_doctest program~volatile_doctest~88->interface~allocate_variable program~volatile_doctest~93 volatile_doctest program~volatile_doctest~93->interface~allocate_variable program~volatile_doctest~94 volatile_doctest program~volatile_doctest~94->interface~allocate_variable program~volatile_doctest~98 volatile_doctest program~volatile_doctest~98->interface~allocate_variable interface~assign_allocatable assign_allocatable interface~assign_allocatable->proc~assign_allocatable_i1p_1d interface~assign_allocatable->proc~assign_allocatable_i1p_2d interface~assign_allocatable->proc~assign_allocatable_i1p_3d interface~assign_allocatable->proc~assign_allocatable_i1p_4d interface~assign_allocatable->proc~assign_allocatable_i1p_5d interface~assign_allocatable->proc~assign_allocatable_i1p_6d interface~assign_allocatable->proc~assign_allocatable_i1p_7d interface~assign_allocatable->proc~assign_allocatable_i2p_1d interface~assign_allocatable->proc~assign_allocatable_i2p_2d interface~assign_allocatable->proc~assign_allocatable_i2p_3d interface~assign_allocatable->proc~assign_allocatable_i2p_4d interface~assign_allocatable->proc~assign_allocatable_i2p_5d interface~assign_allocatable->proc~assign_allocatable_i2p_6d interface~assign_allocatable->proc~assign_allocatable_i2p_7d interface~assign_allocatable->proc~assign_allocatable_i4p_1d interface~assign_allocatable->proc~assign_allocatable_i4p_2d interface~assign_allocatable->proc~assign_allocatable_i4p_3d interface~assign_allocatable->proc~assign_allocatable_i4p_4d interface~assign_allocatable->proc~assign_allocatable_i4p_5d interface~assign_allocatable->proc~assign_allocatable_i4p_6d interface~assign_allocatable->proc~assign_allocatable_i4p_7d interface~assign_allocatable->proc~assign_allocatable_i8p_1d interface~assign_allocatable->proc~assign_allocatable_i8p_2d interface~assign_allocatable->proc~assign_allocatable_i8p_3d interface~assign_allocatable->proc~assign_allocatable_i8p_4d interface~assign_allocatable->proc~assign_allocatable_i8p_5d interface~assign_allocatable->proc~assign_allocatable_i8p_6d interface~assign_allocatable->proc~assign_allocatable_i8p_7d interface~assign_allocatable->proc~assign_allocatable_r4p_1d interface~assign_allocatable->proc~assign_allocatable_r4p_2d interface~assign_allocatable->proc~assign_allocatable_r4p_3d interface~assign_allocatable->proc~assign_allocatable_r4p_4d interface~assign_allocatable->proc~assign_allocatable_r4p_5d interface~assign_allocatable->proc~assign_allocatable_r4p_6d interface~assign_allocatable->proc~assign_allocatable_r4p_7d interface~assign_allocatable->proc~assign_allocatable_r8p_1d interface~assign_allocatable->proc~assign_allocatable_r8p_2d interface~assign_allocatable->proc~assign_allocatable_r8p_3d interface~assign_allocatable->proc~assign_allocatable_r8p_4d interface~assign_allocatable->proc~assign_allocatable_r8p_5d interface~assign_allocatable->proc~assign_allocatable_r8p_6d interface~assign_allocatable->proc~assign_allocatable_r8p_7d program~volatile_doctest volatile_doctest program~volatile_doctest->interface~assign_allocatable program~volatile_doctest~100 volatile_doctest program~volatile_doctest~100->interface~assign_allocatable program~volatile_doctest~101 volatile_doctest program~volatile_doctest~101->interface~assign_allocatable program~volatile_doctest~102 volatile_doctest program~volatile_doctest~102->interface~assign_allocatable program~volatile_doctest~108 volatile_doctest program~volatile_doctest~108->interface~assign_allocatable program~volatile_doctest~110 volatile_doctest program~volatile_doctest~110->interface~assign_allocatable program~volatile_doctest~114 volatile_doctest program~volatile_doctest~114->interface~assign_allocatable program~volatile_doctest~117 volatile_doctest program~volatile_doctest~117->interface~assign_allocatable program~volatile_doctest~12 volatile_doctest program~volatile_doctest~12->interface~assign_allocatable program~volatile_doctest~120 volatile_doctest program~volatile_doctest~120->interface~assign_allocatable program~volatile_doctest~123 volatile_doctest program~volatile_doctest~123->interface~assign_allocatable program~volatile_doctest~129 volatile_doctest program~volatile_doctest~129->interface~assign_allocatable program~volatile_doctest~131 volatile_doctest program~volatile_doctest~131->interface~assign_allocatable program~volatile_doctest~134 volatile_doctest program~volatile_doctest~134->interface~assign_allocatable program~volatile_doctest~142 volatile_doctest program~volatile_doctest~142->interface~assign_allocatable program~volatile_doctest~144 volatile_doctest program~volatile_doctest~144->interface~assign_allocatable program~volatile_doctest~145 volatile_doctest program~volatile_doctest~145->interface~assign_allocatable program~volatile_doctest~146 volatile_doctest program~volatile_doctest~146->interface~assign_allocatable program~volatile_doctest~149 volatile_doctest program~volatile_doctest~149->interface~assign_allocatable program~volatile_doctest~153 volatile_doctest program~volatile_doctest~153->interface~assign_allocatable program~volatile_doctest~160 volatile_doctest program~volatile_doctest~160->interface~assign_allocatable program~volatile_doctest~166 volatile_doctest program~volatile_doctest~166->interface~assign_allocatable program~volatile_doctest~168 volatile_doctest program~volatile_doctest~168->interface~assign_allocatable program~volatile_doctest~169 volatile_doctest program~volatile_doctest~169->interface~assign_allocatable program~volatile_doctest~182 volatile_doctest program~volatile_doctest~182->interface~assign_allocatable program~volatile_doctest~189 volatile_doctest program~volatile_doctest~189->interface~assign_allocatable program~volatile_doctest~19 volatile_doctest program~volatile_doctest~19->interface~assign_allocatable program~volatile_doctest~192 volatile_doctest program~volatile_doctest~192->interface~assign_allocatable program~volatile_doctest~193 volatile_doctest program~volatile_doctest~193->interface~assign_allocatable program~volatile_doctest~199 volatile_doctest program~volatile_doctest~199->interface~assign_allocatable program~volatile_doctest~22 volatile_doctest program~volatile_doctest~22->interface~assign_allocatable program~volatile_doctest~23 volatile_doctest program~volatile_doctest~23->interface~assign_allocatable program~volatile_doctest~24 volatile_doctest program~volatile_doctest~24->interface~assign_allocatable program~volatile_doctest~28 volatile_doctest program~volatile_doctest~28->interface~assign_allocatable program~volatile_doctest~35 volatile_doctest program~volatile_doctest~35->interface~assign_allocatable program~volatile_doctest~37 volatile_doctest program~volatile_doctest~37->interface~assign_allocatable program~volatile_doctest~4 volatile_doctest program~volatile_doctest~4->interface~assign_allocatable program~volatile_doctest~44 volatile_doctest program~volatile_doctest~44->interface~assign_allocatable program~volatile_doctest~46 volatile_doctest program~volatile_doctest~46->interface~assign_allocatable program~volatile_doctest~52 volatile_doctest program~volatile_doctest~52->interface~assign_allocatable program~volatile_doctest~53 volatile_doctest program~volatile_doctest~53->interface~assign_allocatable program~volatile_doctest~56 volatile_doctest program~volatile_doctest~56->interface~assign_allocatable program~volatile_doctest~66 volatile_doctest program~volatile_doctest~66->interface~assign_allocatable program~volatile_doctest~69 volatile_doctest program~volatile_doctest~69->interface~assign_allocatable program~volatile_doctest~74 volatile_doctest program~volatile_doctest~74->interface~assign_allocatable program~volatile_doctest~78 volatile_doctest program~volatile_doctest~78->interface~assign_allocatable program~volatile_doctest~79 volatile_doctest program~volatile_doctest~79->interface~assign_allocatable program~volatile_doctest~83 volatile_doctest program~volatile_doctest~83->interface~assign_allocatable program~volatile_doctest~9 volatile_doctest program~volatile_doctest~9->interface~assign_allocatable

Source Code

   subroutine alloc_var_I4P_7D(var, ulb, msg, verbose)
   !< Allocate CPU variable with memory checking (kind I4P, rank 7).
   !<
   !<```fortran
   !< use penf
   !< integer(I4P), allocatable :: a(:,:,:,:,:,:,:)
   !< integer(I4P)              :: ulb(2,7)=reshape([1,1, &
   !<                                                1,2, &
   !<                                                1,3, &
   !<                                                1,4, &
   !<                                                1,5, &
   !<                                                1,6, &
   !<                                                1,7],&
   !<                                               [2,7])
   !< call allocate_variable(a, ulb)
   !< print*, allocated(a)
   !<```
   !=> T <<<
   integer(I4P), allocatable, intent(inout)         :: var(:,:,:,:,:,:,:)  !< Varibale to be allocate on CPU.
   integer(I4P),              intent(in)            :: ulb(2,7)            !< Upper/lower bounds of variable.
   character(*),              intent(in), optional  :: msg                 !< Message to be printed in verbose mode.
   logical,                   intent(in), optional  :: verbose             !< Flag to activate verbose mode.
   character(:), allocatable                        :: msg_                !< Message to be printed in verbose mode, local var.
   logical                                          :: verbose_            !< Flag to activate verbose mode, local var.
   integer(C_LONG)                                  :: mem_free, mem_total !< CPU memory.

   msg_     = ''      ; if (present(msg    )) msg_     = msg
   verbose_ = .false. ; if (present(verbose)) verbose_ = verbose
   if (allocated(var)) deallocate(var)
   if (verbose_) then
      call get_memory_info(mem_total, mem_free)
      print '(A)', msg_//'free/total memory BEFORE allocate:'//trim(str([mem_free,mem_total]))//'[bytes]'
   endif
   allocate(var(ulb(1,1):ulb(2,1), ulb(1,2):ulb(2,2), ulb(1,3):ulb(2,3), ulb(1,4):ulb(2,4), ulb(1,5):ulb(2,5), ulb(1,6):ulb(2,6), &
                ulb(1,7):ulb(2,7)))
   if (verbose_) then
      call get_memory_info(mem_total, mem_free)
      print '(A)', msg_//'free/total memory AFTER  allocate:'//trim(str([mem_free,mem_total]))//'[bytes]'
   endif
   endsubroutine alloc_var_I4P_7D