Changeset 4649 for palm/trunk/SOURCE/posix_calls_from_fortran.f90
- Timestamp:
- Aug 25, 2020 12:11:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/posix_calls_from_fortran.f90
r4360 r4649 1 1 !> @posix_calls_from_fortran.f90 2 !------------------------------------------------------------------------------ !2 !--------------------------------------------------------------------------------------------------! 3 3 ! This file is part of the PALM model system. 4 4 ! 5 ! PALM is free software: you can redistribute it and/or modify it under the 6 ! terms of the GNU General Public License as published by the Free Software 7 ! Foundation, either version 3 of the License, or (at your option) any later 8 ! version. 5 ! PALM is free software: you can redistribute it and/or modify it under the terms of the GNU General 6 ! Public License as published by the Free Software Foundation, either version 3 of the License, or 7 ! (at your option) any later version. 9 8 ! 10 ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY 11 ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR12 ! A PARTICULAR PURPOSE. See the GNU GeneralPublic License for more details.9 ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the 10 ! implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 11 ! Public License for more details. 13 12 ! 14 ! You should have received a copy of the GNU General Public License along with 15 ! PALM. If not, see<http://www.gnu.org/licenses/>.13 ! You should have received a copy of the GNU General Public License along with PALM. If not, see 14 ! <http://www.gnu.org/licenses/>. 16 15 ! 17 16 ! Copyright 1997-2020 Leibniz Universitaet Hannover 18 !------------------------------------------------------------------------------! 17 !--------------------------------------------------------------------------------------------------! 18 ! 19 19 ! 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 23 ! 22 ! 23 ! 24 24 ! Former revisions: 25 25 ! ----------------- 26 26 ! $Id: posix_calls_from_fortran.f90 2696 2017-12-14 17:12:51Z kanani $ 27 ! File re-formatted to follow the PALM coding standard 28 ! 29 ! 30 ! 2696 2017-12-14 17:12:51Z kanani 27 31 ! Corrected "Former revisions" section 28 ! 32 ! 29 33 ! 2696 2017-12-14 17:12:51Z kanani 30 ! add variable description31 ! 34 ! Add variable description 35 ! 32 36 ! 1986 2016-08-10 14:07:17Z gronemeier 33 37 ! Initial revision 34 ! 38 ! 39 !--------------------------------------------------------------------------------------------------! 35 40 ! Description: 36 41 ! ------------ 37 42 !> Collection of POSIX-command calls for Fortran 38 !------------------------------------------------------------------------------ !43 !--------------------------------------------------------------------------------------------------! 39 44 MODULE posix_calls_from_fortran 40 45 41 USE, INTRINSIC :: iso_c_binding, ONLY: c_int 46 USE, INTRINSIC :: iso_c_binding, & 47 ONLY: c_int 42 48 43 49 IMPLICIT none … … 49 55 ! 50 56 !-- Sleep function from C library 51 FUNCTION fsleep( seconds ) BIND( C, NAME ='sleep' )57 FUNCTION fsleep( seconds ) BIND( C, NAME = 'sleep' ) 52 58 IMPORT 53 INTEGER(c_int) :: fsleep54 INTEGER(c_int), INTENT(IN), VALUE :: seconds 59 INTEGER(c_int) :: fsleep !< 60 INTEGER(c_int), INTENT(IN), VALUE :: seconds !< 55 61 END FUNCTION fsleep 56 62 … … 66 72 CONTAINS 67 73 68 !------------------------------------------------------------------------------ !74 !--------------------------------------------------------------------------------------------------! 69 75 ! Description: 70 76 ! ------------ 71 77 !> Wait a specified amount of seconds 72 !------------------------------------------------------------------------------ !78 !--------------------------------------------------------------------------------------------------! 73 79 SUBROUTINE fortran_sleep( seconds ) 74 80
Note: See TracChangeset
for help on using the changeset viewer.