Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
The seg-fault in rdesigneur tests are due to BhallaLab#388.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilawar Singh committed Feb 23, 2020
1 parent ccb180c commit 17a1f3a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
3 changes: 1 addition & 2 deletions kinetics/PoolBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ const Cinfo* PoolBase::initCinfo()
static const Cinfo* poolCinfo = PoolBase::initCinfo();

//////////////////////////////////////////////////////////////
PoolBase::PoolBase()
: concInit_( 0.0 )
PoolBase::PoolBase() : concInit_( 0.0 )
{;}

PoolBase::~PoolBase()
Expand Down
1 change: 1 addition & 0 deletions kinetics/PoolBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ class PoolBase

//////////////////////////////////////////////////////////////////
static const Cinfo* initCinfo();

private:
double concInit_; /// Initial concentration.
// We don't store the conc here as this is computed on the fly
Expand Down
20 changes: 11 additions & 9 deletions ksolve/Stoich.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,17 @@ const Cinfo* Stoich::initCinfo()
// MsgDest Definitions
//////////////////////////////////////////////////////////////
static DestFinfo unzombify( "unzombify",
"Restore all zombies to their native state",
new OpFunc0< Stoich >( &Stoich::unZombifyModel )
);
"Restore all zombies to their native state",
new OpFunc0< Stoich >( &Stoich::unZombifyModel )
);

static DestFinfo scaleBufsAndRates( "scaleBufsAndRates",
"Args: voxel#, volRatio\n"
"Handles requests for runtime volume changes in the specified "
"voxel#, Used in adaptors changing spine vols.",
new OpFunc2< Stoich, unsigned int, double >(
&Stoich::scaleBufsAndRates )
);
"Args: voxel#, volRatio\n"
"Handles requests for runtime volume changes in the specified "
"voxel#, Used in adaptors changing spine vols.",
new OpFunc2< Stoich, unsigned int, double >(
&Stoich::scaleBufsAndRates )
);

//////////////////////////////////////////////////////////////
// SrcFinfo Definitions
Expand Down Expand Up @@ -274,6 +275,7 @@ Stoich::Stoich()
Stoich::~Stoich()
{
unZombifyModel();

// Note that we cannot do the unZombify here, because it is too
// prone to problems with the ordering of the delete operations
// relative to the zombies.
Expand Down
1 change: 1 addition & 0 deletions ksolve/Stoich.h
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ class Stoich
//////////////////////////////////////////////////////////////////
static const unsigned int PoolIsNotOnSolver;
static const Cinfo* initCinfo();

private:
/**
* True if the stoich matrix is set up to handle only one-way
Expand Down

0 comments on commit 17a1f3a

Please sign in to comment.