Skip to content

Commit

Permalink
Merge pull request #42 from richfitz/cran-lto
Browse files Browse the repository at this point in the history
More urgent cran demands
  • Loading branch information
richfitz committed Oct 2, 2023
2 parents 8cdb5ac + a75f3c0 commit e587755
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: diversitree
Version: 0.9-19
Version: 0.9-20
Title: Comparative 'Phylogenetic' Analyses of Diversification
Authors@R: c(person("Richard G.", "FitzJohn", role = c("aut", "cre"),
email = "rich.fitzjohn@gmail.com"),
Expand Down
4 changes: 3 additions & 1 deletion src/mkn-expokit.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ SEXP r_branches_mkn_expokit(SEXP Q, SEXP ia, SEXP ja, SEXP qnorm,
int lwsp = nmax*(mmax+1)+nmax+5*(mmax+2)*(mmax+2)+7,liwsp=nmax+2;
double * wsp = (double*) R_alloc(lwsp, sizeof(double));
int *iwsp = (int *) R_alloc(liwsp, sizeof(int));
Rcomplex *cwsp = (Rcomplex*) R_alloc(lwsp, sizeof(Rcomplex));

int nt = LENGTH(t), nz = LENGTH(ia), itrace = 0, iflag = 0;
double *cvals, *cscal, *vals_i, tot;
SEXP ret, vals, scal;
Expand All @@ -33,7 +35,7 @@ SEXP r_branches_mkn_expokit(SEXP Q, SEXP ia, SEXP ja, SEXP qnorm,
cvals,
REAL(tol), REAL(qnorm),
INTEGER(ia), INTEGER(ja), REAL(Q), &nz,
wsp, &lwsp, iwsp, &liwsp, &itrace, &iflag);
wsp, &lwsp, iwsp, &liwsp, cwsp, &lwsp, &itrace, &iflag);

if ( iflag != 0 ) {
if ( iflag == -42 )
Expand Down
2 changes: 2 additions & 0 deletions src/mkn-expokit.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ extern void F77_NAME(dgexpvi)(const int *n,
const int *lwsp,
int *iwsp,
const int *liwsp,
Rcomplex * cwsp,
const int *lcwsp,
int *itrace,
int *iflag);

0 comments on commit e587755

Please sign in to comment.