~ubuntu-branches/ubuntu/wily/grass/wily

« back to all changes in this revision

Viewing changes to raster/r.sim/simlib/utils.c

Tags: 7.0.0~rc1+ds1-1~exp1
* New upstream release candidate.
* Repack upstream tarball, remove precompiled Python objects.
* Add upstream metadata.
* Update gbp.conf and Vcs-Git URL to use the experimental branch.
* Update watch file for GRASS 7.0.
* Drop build dependencies for Tcl/Tk, add build dependencies:
  python-numpy, libnetcdf-dev, netcdf-bin, libblas-dev, liblapack-dev
* Update Vcs-Browser URL to use cgit instead of gitweb.
* Update paths to use grass70.
* Add configure options: --with-netcdf, --with-blas, --with-lapack,
  remove --with-tcltk-includes.
* Update patches for GRASS 7.
* Update copyright file, changes:
  - Update copyright years
  - Group files by license
  - Remove unused license sections
* Add patches for various typos.
* Fix desktop file with patch instead of d/rules.
* Use minimal dh rules.
* Bump Standards-Version to 3.9.6, no changes.
* Use dpkg-maintscript-helper to replace directories with symlinks.
  (closes: #776349)
* Update my email to use @debian.org address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* output.c (simlib), 20.nov.2002, JH */
 
2
 
 
3
#include <grass/waterglobs.h>
 
4
 
 
5
double amax1(double arg1, double arg2)
 
6
{
 
7
    double res;
 
8
 
 
9
    if (arg1 >= arg2) {
 
10
        res = arg1;
 
11
    }
 
12
    else {
 
13
        res = arg2;
 
14
    }
 
15
 
 
16
    return res;
 
17
}
 
18
 
 
19
double amin1(double arg1, double arg2)
 
20
{
 
21
    double res;
 
22
 
 
23
    if (arg1 <= arg2) {
 
24
        res = arg1;
 
25
    }
 
26
    else {
 
27
        res = arg2;
 
28
    }
 
29
 
 
30
    return res;
 
31
}
 
32
 
 
33
int min(int arg1, int arg2)
 
34
{
 
35
    int res;
 
36
 
 
37
    if (arg1 <= arg2) {
 
38
        res = arg1;
 
39
    }
 
40
    else {
 
41
        res = arg2;
 
42
    }
 
43
 
 
44
    return res;
 
45
}
 
46
 
 
47
int max(int arg1, int arg2)
 
48
{
 
49
    int res;
 
50
 
 
51
    if (arg1 >= arg2) {
 
52
        res = arg1;
 
53
    }
 
54
    else {
 
55
        res = arg2;
 
56
    }
 
57
 
 
58
    return res;
 
59
}
 
60