constant_signal_procedures.f90 Source File


Source Code

!-----------------------------------------------------------------------------------------------------------------------------------
! This file is part of ReMKiT1D.
!
! ReMKiT1D is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as 
! published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
!
! ReMKiT1D is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License along with ReMKiT1D. If not, see <https://www.gnu.org/licenses/>. 
!
! Copyright 2023 United Kingdom Atomic Energy Authority (stefan.mijin@ukaea.uk)
!-----------------------------------------------------------------------------------------------------------------------------------
submodule (constant_signal_class) constant_signal_procedures
!! author: Stefan Mijin 
!! 
!! Contains module procedures associated with the constant signal class

implicit none

!-----------------------------------------------------------------------------------------------------------------------------------
contains
!-----------------------------------------------------------------------------------------------------------------------------------
module function calculateConst(this,time,period,params) result(res)

    class(ConstSignal)               ,intent(inout) :: this 
    real(rk)                         ,intent(in)    :: time
    real(rk)                         ,intent(in)    :: period
    real(rk) ,optional ,dimension(:) ,intent(in)    :: params
    real(rk)                                        :: res

    res = real(1,kind=rk)

end function calculateConst
!-----------------------------------------------------------------------------------------------------------------------------------
end submodule constant_signal_procedures
!-----------------------------------------------------------------------------------------------------------------------------------