forked from Marxan-source-code/marxan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spu.hpp
38 lines (31 loc) · 792 Bytes
/
spu.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
namespace marxan {
using namespace std;
typedef struct spu
{
double amount; // amount of species in pu
double prob; // optional field that does ???
int spindex; // index/id of species
} spu;
//Separate output fields for multithreading
typedef struct spu_out
{
int clump;
spu_out() { clump = 0; }
} spu_out;
typedef struct spusporder
{
double amount;
int puindex;
} spusporder;
// type definitions for original Ian Ball data structures
typedef struct spustuff
{
int id;
int status;
double xloc, yloc;
double cost;
double prob;
int richness, offset, probrichness, proboffset;
} spustuff;
} // namespace marxan