LCOV - code coverage report
Current view: top level - binary/other - mod_other_binary_edot.f90 (source / functions) Coverage Total Hit
Test: coverage.info Lines: 0.0 % 20 0
Test Date: 2025-10-14 06:41:40 Functions: 0.0 % 3 0

            Line data    Source code
       1              : ! ***********************************************************************
       2              : !
       3              : !   Copyright (C) 2012  Bill Paxton, Pablo Marchant & The MESA Team
       4              : !
       5              : !   This program is free software: you can redistribute it and/or modify
       6              : !   it under the terms of the GNU Lesser General Public License
       7              : !   as published by the Free Software Foundation,
       8              : !   either version 3 of the License, or (at your option) any later version.
       9              : !
      10              : !   This program is distributed in the hope that it will be useful,
      11              : !   but WITHOUT ANY WARRANTY; without even the implied warranty of
      12              : !   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      13              : !   See the GNU Lesser General Public License for more details.
      14              : !
      15              : !   You should have received a copy of the GNU Lesser General Public License
      16              : !   along with this program. If not, see <https://www.gnu.org/licenses/>.
      17              : !
      18              : ! ***********************************************************************
      19              : 
      20              :       module mod_other_binary_edot
      21              : 
      22              :       ! NOTE: remember to set one of:
      23              :       ! use_other_edot_tidal = .true.
      24              :       ! use_other_edot_enhance = .true.
      25              :       ! use_other_extra_edot = .true.
      26              : 
      27              :       implicit none
      28              : 
      29              :       contains
      30              : 
      31            0 :       subroutine null_other_edot_tidal(binary_id, ierr)
      32              :          use const_def, only: dp
      33              :          use binary_def, only : binary_info, binary_ptr
      34              :          integer, intent(in) :: binary_id
      35              :          integer, intent(out) :: ierr
      36              :          type (binary_info), pointer :: b
      37              :          ierr = 0
      38            0 :          call binary_ptr(binary_id, b, ierr)
      39            0 :          if (ierr /= 0) then
      40            0 :             write(*,*) 'failed in binary_ptr'
      41              :             return
      42              :          end if
      43            0 :          b% edot_tidal = 0d0
      44            0 :       end subroutine null_other_edot_tidal
      45              : 
      46            0 :       subroutine null_other_edot_enhance(binary_id, ierr)
      47            0 :          use binary_def, only : binary_info, binary_ptr
      48              :          integer, intent(in) :: binary_id
      49              :          integer, intent(out) :: ierr
      50              :          type (binary_info), pointer :: b
      51              :          ierr = 0
      52            0 :          call binary_ptr(binary_id, b, ierr)
      53            0 :          if (ierr /= 0) then
      54            0 :             write(*,*) 'failed in binary_ptr'
      55              :             return
      56              :          end if
      57            0 :          b% edot_enhance = 0d0
      58            0 :       end subroutine null_other_edot_enhance
      59              : 
      60            0 :       subroutine null_other_extra_edot(binary_id, ierr)
      61            0 :          use binary_def, only : binary_info, binary_ptr
      62              :          integer, intent(in) :: binary_id
      63              :          integer, intent(out) :: ierr
      64              :          type (binary_info), pointer :: b
      65              :          ierr = 0
      66            0 :          call binary_ptr(binary_id, b, ierr)
      67            0 :          if (ierr /= 0) then
      68            0 :             write(*,*) 'failed in binary_ptr'
      69              :             return
      70              :          end if
      71            0 :          b% extra_edot = 0d0
      72            0 :       end subroutine null_other_extra_edot
      73              : 
      74              :       end module mod_other_binary_edot
      75              : 
        

Generated by: LCOV version 2.0-1