~albertog/siesta/4.1-scf-first

« back to all changes in this revision

Viewing changes to Src/alloc.F90

  • Committer: Nick Papior
  • Date: 2019-08-13 06:37:29 UTC
  • mfrom: (483.3.110 4.0)
  • Revision ID: nickpapior@gmail.com-20190813063729-h149ew82cxf45c15
Merged r594-596, fixed cell transpose in socket

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
! Notice that, if the restore call is skipped, the new defaults will
46
46
! stay in effect until a new call to alloc_dafault is made.
47
47
! ==================================================================
48
 
! SUBROUTINE alloc_report( level, unit, file, printNow, threshold )
 
48
! SUBROUTINE alloc_report( level, unit, file, printNow, threshold, shutdown )
49
49
!   Sets the output file for the allocation report
50
50
! INPUT (optional):
51
51
!   integer      :: level     : Level (detail) of report
53
53
!   character*(*):: file      : Output file name
54
54
!   logical      :: printNow  : If present & true => print report now
55
55
!   real(dp)     :: threshold : Memory threshold (in bytes) to print
56
 
!                               the memory use of any given array 
 
56
!                               the memory use of any given array
 
57
!   logical      :: shutdown  : If present & true then close output unit.
57
58
! BEHAVIOR:
58
59
!   The detail/extent of the report increses with the value of level:
59
60
! level=0 : no report at all (the default)
73
74
! reports are written consecutively in the same file, each with a 
74
75
! time stamp header.
75
76
!   If threshold is not present, threshold=0 is assumed.
 
77
!   When performing library invocations of this module in say
 
78
! external methods it is vital to close units before exiting the
 
79
! library to ensure that no dangling files are kept open.
 
80
! To ensure the file is closed before return one can use
 
81
! the shutdown=.true. argument to forcefully close (and free)
 
82
! the unit used to report. If not present or .false. the unit
 
83
! will be kept open.
76
84
!   In parallel execution, the report sections that involve every
77
85
! reallocation (levels 1, 3, and 4) are written only by node 0.
78
86
! The section that is written upon request (level 2) is written