Skip to content

Commit

Permalink
fix potential recalculation issue due to refactoring #834
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouckaert committed Aug 8, 2022
1 parent 1804b05 commit 8fed3ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ RUN chmod 600 /root/.vnc/passwd

# Install BEAGLE
RUN apt-get update && apt-get install -y build-essential autoconf automake libtool pkg-config
# use latest release v3.2.1, issue #786
RUN cd /root && git clone --branch v3.2.1 --depth=1 https://github.com/beagle-dev/beagle-lib.git
# use latest release v3.1.2, issue #786
RUN cd /root && git clone --branch v3.1.2 --depth=1 https://github.com/beagle-dev/beagle-lib.git
RUN cd /root/beagle-lib && ./autogen.sh && ./configure --prefix=/usr/local && make install
RUN ldconfig

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import beast.base.inference.distribution.ParametricDistribution;
import beast.base.inference.parameter.IntegerParameter;
import beast.base.inference.parameter.RealParameter;
import beast.base.inference.util.InputUtil;
import beast.base.util.Randomizer;

/**
Expand Down Expand Up @@ -370,7 +371,7 @@ protected boolean requiresRecalculation() {
if (rateInput.get() != null && rateInput.get().somethingIsDirty()) {
return true;
}
if (meanRate instanceof CalculationNode && ((CalculationNode)meanRate).isDirtyCalculation()) {
if (InputUtil.isDirty(meanRateInput)) {
return true;
}

Expand Down

0 comments on commit 8fed3ca

Please sign in to comment.