My Project
allocate_all.f90
Go to the documentation of this file.
1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 !/===========================================================================/
13 ! Copyright (c) 2007, The University of Massachusetts Dartmouth
14 ! Produced at the School of Marine Science & Technology
15 ! Marine Ecosystem Dynamics Modeling group
16 ! All rights reserved.
17 !
18 ! FVCOM has been developed by the joint UMASSD-WHOI research team. For
19 ! details of authorship and attribution of credit please see the FVCOM
20 ! technical manual or contact the MEDM group.
21 !
22 !
23 ! This file is part of FVCOM. For details, see http://fvcom.smast.umassd.edu
24 ! The full copyright notice is contained in the file COPYRIGHT located in the
25 ! root directory of the FVCOM code. This original header must be maintained
26 ! in all distributed versions.
27 !
28 ! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29 ! AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
30 ! THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
31 ! PURPOSE ARE DISCLAIMED.
32 !
33 !/---------------------------------------------------------------------------/
34 ! CVS VERSION INFORMATION
35 ! $Id$
36 ! $Name$
37 ! $Revision$
38 !/===========================================================================/
39 
40 SUBROUTINE allocate_all
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 
77 END SUBROUTINE allocate_all
78 
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 allocate_all
subroutine alloc_obc_data
Definition: mod_obcs.f90:119
integer, parameter dbg_log
Definition: mod_utils.f90:65