Skip to content

Commit

Permalink
bind fast invariant expressions for fast systems.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Sep 7, 2017
1 parent 91b1860 commit 8f18e33
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/.pydevproject
/.project
/.classpath
/vcell_debug_server.properties
6 changes: 6 additions & 0 deletions localsolvers/linux32/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/FiniteVolume
/NFsim
/SundialsSolverStandalone
/VCellStoch
/libgfortran.so.3
/smoldyn
17 changes: 17 additions & 0 deletions localsolvers/linux64/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/FiniteVolume_x64
/MovingBoundary_x64
/NFsim_x64
/SundialsSolverStandalone_x64
/VCellStoch_x64
/libactivemq-cpp.so.19
/libapr-1.so.0
/libgfortran.so.3
/libhdf5.so.8
/libhdf5_cpp.so.8
/libquadmath.so.0
/libzip.so
/libzip.so.3
/libzip.so.3.0
/smoldyn_x64
/testzip
/ziptool
17 changes: 17 additions & 0 deletions localsolvers/mac64/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/FiniteVolume_x64
/MovingBoundary_x64
/NFsim_x64
/SundialsSolverStandalone_x64
/VCellStoch_x64
/libgcc_s.1.dylib
/libgfortran.4.dylib
/libhdf5.10.dylib
/libhdf5_cpp.14.dylib
/libquadmath.0.dylib
/libsz.2.dylib
/libzip.3.0.dylib
/libzip.3.dylib
/libzip.dylib
/smoldyn_x64
/testzip
/ziptool
18 changes: 18 additions & 0 deletions localsolvers/win64/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/FiniteVolume_x64.exe
/MovingBoundary_x64.exe
/NFsim_x64.exe
/SundialsSolverStandalone_x64.exe
/VCellStoch_x64.exe
/libgcc_s_seh-1.dll
/libgfortran-4.dll
/libhdf5-0.dll
/libhdf5_cpp-0.dll
/libquadmath-0.dll
/libstdc++-6.dll
/libszip.dll
/libwinpthread-1.dll
/libzip.dll
/smoldyn_x64.exe
/testzip.exe
/ziptool.exe
/zlib1.dll
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ private void refreshSubstitutedRateExps() throws MathException, ExpressionExcept
while (enum_fi.hasMoreElements()) {
FastInvariant fi = enum_fi.nextElement();
Domain domain = new Domain(fastSystem.getSubDomain());
fi.getFunction().bindExpression(this);
PseudoConstant pc = new PseudoConstant(getAvailablePseudoConstantName(),fi.getFunction(),domain);
pseudoConstantList.addElement(pc);
//System.out.println("FastSystem.refreshSubstitutedRateExps() __C"+i+" = "+fi.getFunction());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ private void refreshSubstitutedRateExps() throws MathException, ExpressionExcept
Enumeration<FastInvariant> enum_fi = fastSystem.getFastInvariants();
while (enum_fi.hasMoreElements()) {
FastInvariant fi = enum_fi.nextElement();
fi.getFunction().bindExpression(this);
PseudoConstant pc = new PseudoConstant(getAvailablePseudoConstantName(),fi.getFunction(),MathMapping_4_8.nullDomain);
pseudoConstantList.addElement(pc);
//System.out.println("FastSystem.refreshSubstitutedRateExps() __C"+i+" = "+fi.getFunction());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -576,10 +576,8 @@ protected void integrate() throws SolverException, UserStopException, IOExceptio
int keepEvery = ((DefaultOutputTimeSpec)taskDescription.getOutputTimeSpec()).getKeepEvery();
if ((iteration % keepEvery) != 0) updateResultSet();
}
} catch (ExpressionException expressionException) {
throw new SolverException(expressionException.getMessage());
} catch (MathException mathException) {
throw new SolverException(mathException.getMessage());
} catch (ExpressionException | MathException e) {
throw new SolverException("Solver failed: "+e.getMessage(),e);
}
}

Expand Down

0 comments on commit 8f18e33

Please sign in to comment.