diff --git a/core/PhysiCell_cell.cpp b/core/PhysiCell_cell.cpp index 1f3e2646b..d67e8105f 100644 --- a/core/PhysiCell_cell.cpp +++ b/core/PhysiCell_cell.cpp @@ -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++ ) diff --git a/core/PhysiCell_cell_container.cpp b/core/PhysiCell_cell_container.cpp index 0c5850b1d..a31302c1f 100644 --- a/core/PhysiCell_cell_container.cpp +++ b/core/PhysiCell_cell_container.cpp @@ -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 ); } } diff --git a/modules/PhysiCell_settings.cpp b/modules/PhysiCell_settings.cpp index a588383d1..6af2da0ee 100644 --- a/modules/PhysiCell_settings.cpp +++ b/modules/PhysiCell_settings.cpp @@ -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;