Skip to content

Commit

Permalink
dOxyGenized MOM_write_cputime.F90
Browse files Browse the repository at this point in the history
  Added dOxyGen comments for all routines and arguments in
MOM_write_cputime.F90.  All answers are bitwise identical.
  • Loading branch information
Hallberg-NOAA committed May 8, 2018
1 parent 434f77c commit 536382e
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions src/framework/MOM_write_cputime.F90
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ module MOM_write_cputime

contains

!> Evaluate the CPU time returned by SYSTEM_CLOCK at the start of a run
subroutine write_cputime_start_clock(CS)
type(write_cputime_CS), pointer :: CS
type(write_cputime_CS), pointer :: CS !< The control structure set up by a previous
!! call to MOM_write_cputime_init.
! Argument: CS - A pointer that is set to point to the control structure
! for this module
integer :: new_cputime ! The CPU time returned by SYSTEM_CLOCK
Expand All @@ -60,11 +62,13 @@ subroutine write_cputime_start_clock(CS)
CS%prev_cputime = new_cputime
end subroutine write_cputime_start_clock

!> Initialize the MOM_write_cputime module.
subroutine MOM_write_cputime_init(param_file, directory, Input_start_time, CS)
type(param_file_type), intent(in) :: param_file !< A structure to parse for run-time parameters
character(len=*), intent(in) :: directory
type(time_type), intent(in) :: Input_start_time
type(write_cputime_CS), pointer :: CS
character(len=*), intent(in) :: directory !< The directory where the CPU time file goes.
type(time_type), intent(in) :: Input_start_time !< The start model time of the simulation.
type(write_cputime_CS), pointer :: CS !< A pointer that may be set to point to the
!! control structure for this module.
! Arguments: param_file - A structure indicating the open file to parse for
! model parameter values.
! (in) directory - The directory where the energy file goes.
Expand Down Expand Up @@ -106,11 +110,15 @@ subroutine MOM_write_cputime_init(param_file, directory, Input_start_time, CS)

end subroutine MOM_write_cputime_init

!> This subroutine assesses how much CPU time the model has taken and determines how long the model
!! should be run before it saves a restart file and stops itself.
subroutine write_cputime(day, n, nmax, CS)
type(time_type), intent(inout) :: day
integer, intent(in) :: n
integer, intent(inout) :: nmax
type(write_cputime_CS), pointer :: CS
type(time_type), intent(inout) :: day !< The current model time.
integer, intent(in) :: n !< The time step number of the current execution.
integer, intent(inout) :: nmax !< The number of iterations after which to stop so
!! that the simulation will not run out of CPU time.
type(write_cputime_CS), pointer :: CS !< The control structure set up by a previous
!! call to MOM_write_cputime_init.
! This subroutine assesses how much CPU time the model has
! taken and determines how long the model should be run before it
! saves a restart file and stops itself.
Expand Down

0 comments on commit 536382e

Please sign in to comment.