Skip to content
Open
2 changes: 1 addition & 1 deletion core/PhysiCell_cell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ void Cell::add_potentials(Cell* other_agent)
state.neighbors.push_back(other_agent); // move here in 1.10.2 so non-adhesive cells also added.
}
/////////////////////////////////////////////////////////////////
if( fabs(temp_r) < 1e-16 )
if( fabs(temp_r) < 1e-16 || is_movable == false )
{ return; }
temp_r /= distance;
// for( int i = 0 ; i < 3 ; i++ )
Expand Down
2 changes: 1 addition & 1 deletion core/PhysiCell_cell_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ void Cell_Container::update_all_cells(double t, double phenotype_dt_ , double me
for( int i=0; i < (*all_cells).size(); i++ )
{
Cell* pC = (*all_cells)[i];
if( pC->functions.update_velocity && pC->is_out_of_domain == false && pC->is_movable )
if( pC->functions.update_velocity && pC->is_out_of_domain == false )
{ pC->functions.update_velocity( pC,pC->phenotype,time_since_last_mechanics ); }
}

Expand Down
2 changes: 1 addition & 1 deletion modules/PhysiCell_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ bool create_directory(const std::string &path)
#else
bool create_directory(const std::string &path)
{
#if defined(__MINGW32__) || defined(__MINGW64__)
#if defined(_WIN32)
bool success = mkdir(path.c_str()) == 0;
#else
bool success = mkdir(path.c_str(), 0755) == 0;
Expand Down
Loading