My Project
Functions/Subroutines
allocate_all.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine allocate_all
 

Function/Subroutine Documentation

◆ allocate_all()

subroutine allocate_all ( )

Definition at line 41 of file allocate_all.f90.

41  USE all_vars
42  USE mod_utils
43  USE mod_obcs
44  USE mod_wd
45  USE mod_spherical
46  USE mod_nesting
47  IMPLICIT NONE
48  INTEGER IERR
49 
50  IF(dbg_set(dbg_log)) THEN
51  WRITE(ipt,* )'!'
52  WRITE(ipt,*)'! ALLOCATING MEMORY '
53  WRITE(ipt,* )'!'
54  END IF
55 
56  memcnt=0.0_sp
57 
59 
60  CALL alloc_obc_data
61 
62  ! ALWAYS INITIALIZE WET DRY VARIABLE IF DEFINED
63  CALL alloc_wd_data
64 
65 
66 
67 
68 
69  memtot = memcnt*4
70 
71  IF(dbg_set(dbg_log)) THEN
72  WRITE(ipt,*)'! # MBYTES TOTAL MEM :',memtot/1e+6
73  IF(par)WRITE(ipt,*)'! # AVERAGE MBYTES/PROC :',memtot/(1e+6*nprocs)
74  END IF
75 
76 
subroutine alloc_vars(dbg_set)
Definition: mod_main.f90:1447
logical function dbg_set(vrb)
Definition: mod_utils.f90:182
subroutine alloc_wd_data
Definition: mod_wd.f90:137
subroutine alloc_obc_data
Definition: mod_obcs.f90:119
integer, parameter dbg_log
Definition: mod_utils.f90:65
Here is the call graph for this function:
Here is the caller graph for this function: