Skip to content

Commit

Permalink
pure functions
Browse files Browse the repository at this point in the history
  • Loading branch information
william-dawson committed Sep 8, 2023
1 parent 9cef3ed commit 612fd8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Fortran/ConvergenceMonitorModule.F90
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ MODULE ConvergenceMonitor
PUBLIC :: CheckConverged
CONTAINS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!> Construct the monitor.
SUBROUTINE ConstructMonitor(this, short_len_in, long_len_in, &
PURE SUBROUTINE ConstructMonitor(this, short_len_in, long_len_in, &
& loose_cutoff_in, tight_cutoff_in, automatic_in)
!> The monitor to construct.
TYPE(Monitor_t), INTENT(INOUT) :: this
Expand Down Expand Up @@ -88,15 +88,15 @@ SUBROUTINE ConstructMonitor(this, short_len_in, long_len_in, &
END SUBROUTINE ConstructMonitor
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!> Destruct the monitor.
SUBROUTINE DestructMonitor(this)
PURE SUBROUTINE DestructMonitor(this)
!> The monitor to destruct.
TYPE(Monitor_t), INTENT(INOUT) :: this
IF (ALLOCATED(this%win_short)) DEALLOCATE(this%win_short)
IF (ALLOCATED(this%win_long)) DEALLOCATE(this%win_long)
END SUBROUTINE DestructMonitor
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!> Add a value to the window
SUBROUTINE AppendValue(this, val)
PURE SUBROUTINE AppendValue(this, val)
!> Add a value to the window
TYPE(Monitor_t), INTENT(INOUT) :: this
!> Value to add
Expand Down

0 comments on commit 612fd8c

Please sign in to comment.