Skip to content

Commit

Permalink
hacks for lots of constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
willgearty committed Aug 14, 2023
1 parent 500e616 commit 3724075
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "RbMathCombinatorialFunctions.h"
#include "TopologyNode.h"
#include "AbstractRootedTreeDistribution.h"
#include "RandomNumberGenerator.h"
#include "RandomNumberFactory.h"
#include "Tree.h"

namespace RevBayesCore { class Taxon; }
Expand Down Expand Up @@ -127,9 +129,15 @@ std::vector<double> AbstractBirthDeathProcess::simulateDivergenceTimes(size_t n,
{
double t = 0.0;

auto rng = GLOBAL_RNG;
double u = rng->uniform01();
t = min + u*(origin-min);

/*
do {
t = simulateDivergenceTime(origin, present);
} while ( t < min );
*/

times[i] = t;
}
Expand Down
2 changes: 1 addition & 1 deletion src/revlanguage/parser/lex.yy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ static int input ( void );
/* On IA-64, the buffer size is 16k, not 8k */
#define YY_READ_BUF_SIZE 16384
#else
#define YY_READ_BUF_SIZE 8192
#define YY_READ_BUF_SIZE 65535
#endif /* __ia64__ */
#endif

Expand Down

0 comments on commit 3724075

Please sign in to comment.