File: test_ford.f90

package info (click to toggle)
fortran-language-server 3.2.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,272 kB
  • sloc: python: 9,688; f90: 1,195; fortran: 30; makefile: 28; ansic: 20
file content (22 lines) | stat: -rw-r--r-- 725 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module test_fortd
    implicit none

contains

    subroutine feed_pets(cats, dogs, food, angry)
        !! Feeds your cats and dogs, if enough food is available. If not enough
        !! food is available, some of your pets will get angry.

        ! Arguments
        integer, intent(in)  :: cats
            !! The number of cats to keep track of.
        integer, intent(in)  :: dogs
            !! The number of dogs to keep track of.
        real, intent(inout)  :: food
            !! The amount of pet food (in kilograms) which you have on hand.
        integer, intent(out) :: angry
            !! The number of pets angry because they weren't fed.

        return
    end subroutine feed_pets
end module test_fortd