Skip to content

Commit 4ba3597

Browse files
committed
use const deme definitions
1 parent 6801d62 commit 4ba3597

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: phylopomp
22
Type: Package
33
Title: Phylodynamic Inference for POMP Models
4-
Version: 0.15.1.0
5-
Date: 2025-12-17
4+
Version: 0.15.1.1
5+
Date: 2025-12-27
66
Authors@R: c(person(given=c("Aaron","A."),family="King",role=c("aut","cre"),email="kingaa@umich.edu",comment=c(ORCID="0000-0001-6159-3207")),
77
person(given=c("Qianying"),family="Lin",role=c("aut"),comment=c(ORCID="0000-0001-8620-9910"))
88
)

R/lbdp.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
##' @include getinfo.R
99
##' @family Genealogy processes
1010
##' @param lambda per capita birth rate
11-
##' @param mu per capita recovery rate.
12-
##' @param psi per capita sampling rate.
13-
##' @param n0 initial population size
11+
##' @param mu per capita death rate
12+
##' @param psi per capita sampling rate
13+
##' @param n0 population size at time t0
1414
##' @param time final time
1515
##' @param t0 initial time
1616
##' @return \code{runLBDP} and \code{continueLBDP} return objects of class \sQuote{gpsim} with \sQuote{model} attribute \dQuote{LBDP}.

man/lbdp.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lbdp.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "generics.h"
55
#include "internal.h"
66

7-
static int deme = 0;
7+
static const int deme = 0;
88

99
//! LBDP process state.
1010
typedef struct {

src/moran.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "generics.h"
55
#include "internal.h"
66

7-
static int deme = 0;
7+
static const int deme = 0;
88

99
//! Moran process state.
1010
typedef struct {

src/s2i2r2.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
#include "generics.h"
55
#include "internal.h"
66

7-
static int host1 = 0;
8-
static int host2 = 1;
9-
static int outside = 2;
7+
static const int host1 = 0;
8+
static const int host2 = 1;
9+
static const int outside = 2;
1010

1111
//! S2I2R2 process state.
1212
typedef struct {

src/seir.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#include "generics.h"
55
#include "internal.h"
66

7-
static int Exposed = 0;
8-
static int Infectious = 1;
7+
static const int Exposed = 0;
8+
static const int Infectious = 1;
99

1010
//! SEIR process state.
1111
typedef struct {

src/si2r.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#include "generics.h"
55
#include "internal.h"
66

7-
static int ordinary = 0;
8-
static int superspreader = 1;
7+
static const int ordinary = 0;
8+
static const int superspreader = 1;
99

1010
//! SI2R process state.
1111
typedef struct {

src/siir.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#include "generics.h"
55
#include "internal.h"
66

7-
static int strain1 = 0;
8-
static int strain2 = 1;
7+
static const int strain1 = 0;
8+
static const int strain2 = 1;
99

1010
//! SIIR process state.
1111
typedef struct {

src/twospecies.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
#include "generics.h"
55
#include "internal.h"
66

7-
static int host1 = 0;
8-
static int host2 = 1;
9-
static int outside = 2;
7+
static const int host1 = 0;
8+
static const int host2 = 1;
9+
static const int outside = 2;
1010

1111
//! TwoSpecies process state.
1212
typedef struct {

0 commit comments

Comments
 (0)