Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
dchandran committed Oct 7, 2011
1 parent 699a743 commit c2b62b2
Show file tree
Hide file tree
Showing 10 changed files with 124 additions and 128 deletions.
1 change: 1 addition & 0 deletions copasi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ ADD_DEFINITIONS(-DUSE_CLAPACK)
#ADD_DEFINITIONS(-DCOPASI_DEBUG)
#ADD_DEFINITIONS(-DDEBUG_MATRIX)
ADD_DEFINITIONS(-DTC_EXPORTS)
ADD_DEFINITIONS(-DLIBSBML_EXPORTS)

#------------------------------------------
# DEFINITIONS FOR WINDOWS
Expand Down
2 changes: 1 addition & 1 deletion copasi/compareExpressions/CNormalLogical.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ bool CNormalLogical::generateCanonicalDNF(ItemSetOfSets& tmpAndSets) const
{
// create a new row for the truth table
// the bits in i can be mapped to the truth values
std::bitset<16> bitSet(i);
std::bitset<16> bitSet((int)i);
unsigned int j, jMax = itemVector.size();

for (j = 0; j < jMax; ++j)
Expand Down
2 changes: 1 addition & 1 deletion copasi/copasi.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,5 +238,5 @@ extern std::ofstream DebugFile;
// suppress unused parameter warnings
#define C_UNUSED(p)
#define COPASI_DEPRECATED
#define C_INVALID_INDEX (std::numeric_limits< unsigned C_INT32 >::max())
extern unsigned C_INT32 C_INVALID_INDEX;
#endif // COPASI_copasi
2 changes: 2 additions & 0 deletions copasi/copasi_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ using namespace LIB_STRUCTURAL;
using namespace LIB_LA;
using namespace std;

unsigned C_INT32 C_INVALID_INDEX = std::numeric_limits< unsigned C_INT32 >::max();

struct CopasiPtr
{
string name;
Expand Down
6 changes: 3 additions & 3 deletions copasi/function/CFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ std::pair<CFunction *, CFunction *> CFunction::splitFunction(const CEvaluationNo
const std::string & name1,
const std::string & name2) const
{
if (!this->mpRoot) return std::pair<CFunction *, CFunction *>(NULL, NULL);
if (!this->mpRoot) return std::pair<CFunction *, CFunction *>((CFunction *)NULL, (CFunction *)NULL);

if (this->mReversible != TriTrue) return std::pair<CFunction *, CFunction *>(NULL, NULL);
if (this->mReversible != TriTrue) return std::pair<CFunction *, CFunction *>((CFunction *)NULL, (CFunction *)NULL);

//create 2 new functions
CFunction* newFunction1 = new CFunction();
Expand All @@ -390,7 +390,7 @@ std::pair<CFunction *, CFunction *> CFunction::splitFunction(const CEvaluationNo
// find the split point
const CEvaluationNode* splitnode = this->mpRoot->findTopMinus(callParameters);

if (!splitnode) return std::pair<CFunction *, CFunction *>(NULL, NULL);
if (!splitnode) return std::pair<CFunction *, CFunction *>((CFunction *)NULL, (CFunction *)NULL);

//create the 2 split trees
CEvaluationNode* tmpRoots1 = this->mpRoot->splitBranch(splitnode, true); //left side
Expand Down
2 changes: 1 addition & 1 deletion copasi/model/CProcessQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ bool CProcessQueue::process(const C_FLOAT64 & time,
// as the queue enforces the proper ordering.
while (success &&
notEmpty(Assignments) &&
mCascadingLevel != std::numeric_limits<unsigned C_INT32>::max())
mCascadingLevel != std::numeric_limits<unsigned C_INT32>::max())
{
// We switch to the next cascading level so that events triggered by the
// execution of assignments are properly scheduled.
Expand Down
14 changes: 7 additions & 7 deletions copasi/sbml/CSBMLExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6475,7 +6475,7 @@ void CSBMLExporter::collectIds(const CCopasiDataModel& dataModel, std::map<std::

if (!id.empty())
{
idMap.insert(std::pair<const std::string, const SBase*>(id, NULL));
idMap.insert(std::pair<const std::string, const SBase*>(id, (const SBase *)NULL));
}
}

Expand All @@ -6490,7 +6490,7 @@ void CSBMLExporter::collectIds(const CCopasiDataModel& dataModel, std::map<std::

if (!id.empty())
{
idMap.insert(std::pair<const std::string, const SBase*>(id, NULL));
idMap.insert(std::pair<const std::string, const SBase*>(id, (const SBase*)NULL));
}
}

Expand All @@ -6503,7 +6503,7 @@ void CSBMLExporter::collectIds(const CCopasiDataModel& dataModel, std::map<std::

if (!id.empty())
{
idMap.insert(std::pair<const std::string, const SBase*>(id, NULL));
idMap.insert(std::pair<const std::string, const SBase*>(id, (const SBase*)NULL));
}
}

Expand All @@ -6516,7 +6516,7 @@ void CSBMLExporter::collectIds(const CCopasiDataModel& dataModel, std::map<std::

if (!id.empty())
{
idMap.insert(std::pair<const std::string, const SBase*>(id, NULL));
idMap.insert(std::pair<const std::string, const SBase*>(id, (const SBase*)NULL));
}
}

Expand All @@ -6529,7 +6529,7 @@ void CSBMLExporter::collectIds(const CCopasiDataModel& dataModel, std::map<std::

if (!id.empty())
{
idMap.insert(std::pair<const std::string, const SBase*>(id, NULL));
idMap.insert(std::pair<const std::string, const SBase*>(id, (const SBase*)NULL));
}
}

Expand All @@ -6542,7 +6542,7 @@ void CSBMLExporter::collectIds(const CCopasiDataModel& dataModel, std::map<std::

if (!id.empty())
{
idMap.insert(std::pair<const std::string, const SBase*>(id, NULL));
idMap.insert(std::pair<const std::string, const SBase*>(id, (const SBase*)NULL));
}
}
}
Expand All @@ -6558,7 +6558,7 @@ void CSBMLExporter::assignSBMLIdsToReactions(CModel* pModel)
{
sbmlId = CSBMLExporter::createUniqueId(this->mIdMap, "reaction_");
(*it)->setSBMLId(sbmlId);
this->mIdMap.insert(std::pair<const std::string, const SBase*>(sbmlId, NULL));
this->mIdMap.insert(std::pair<const std::string, const SBase*>(sbmlId, (const SBase*)NULL));
}

++it;
Expand Down
1 change: 1 addition & 0 deletions copasi/trajectory/CHybridMethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#endif // WIN32

#include <limits.h>
#include <iterator>

#include "mathematics.h" // pow(), floor()

Expand Down
Loading

0 comments on commit c2b62b2

Please sign in to comment.