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

            Line data    Source code
       1              : ! ***********************************************************************
       2              : !
       3              : !   Copyright (C) 2022 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_e2
      21              : 
      22              :       ! NOTE: remember to set true:
      23              :       ! use_other_e2 = .true.
      24              : 
      25              :       implicit none
      26              : 
      27              :       contains
      28              : 
      29            0 :       subroutine null_other_e2(id, e2, ierr)
      30              :          use binary_def, only : binary_info, binary_ptr
      31              :          use star_def, only : star_info, star_ptr
      32              :          use const_def, only: dp
      33              :          integer, intent(in) :: id
      34              :          real(dp), intent(out) :: e2
      35              :          integer, intent(out) :: ierr
      36              :          type (binary_info), pointer :: b
      37              :          type (star_info), pointer :: s
      38              : 
      39              :          ierr = 0
      40            0 :          call star_ptr(id, s, ierr)
      41            0 :          if (ierr /= 0) then
      42            0 :             write(*,*) 'failed in star_ptr'
      43            0 :             return
      44              :          end if
      45              : 
      46            0 :          call binary_ptr(s% binary_id, b, ierr)
      47            0 :          if (ierr /= 0) then
      48            0 :             write(*,*) 'failed in binary_ptr'
      49            0 :             return
      50              :          end if
      51            0 :          e2 = -1
      52            0 :       end subroutine null_other_e2
      53              : 
      54              :       end module mod_other_e2
      55              : 
        

Generated by: LCOV version 2.0-1