diff --git a/modules/PhysiCell_settings.cpp b/modules/PhysiCell_settings.cpp index 538f6a8ea..09fd77158 100644 --- a/modules/PhysiCell_settings.cpp +++ b/modules/PhysiCell_settings.cpp @@ -357,7 +357,7 @@ bool create_directories(const std::string &path) 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; diff --git a/sample_projects/template/custom_modules/custom.cpp b/sample_projects/template/custom_modules/custom.cpp index 59b23bd93..cf5fa41da 100644 --- a/sample_projects/template/custom_modules/custom.cpp +++ b/sample_projects/template/custom_modules/custom.cpp @@ -95,6 +95,10 @@ void create_cell_types( void ) cell_defaults.functions.add_cell_basement_membrane_interactions = NULL; cell_defaults.functions.calculate_distance_to_membrane = NULL; + + cell_defaults.functions.update_phenotype = phenotype_function; + cell_defaults.functions.custom_cell_rule = custom_function; + cell_defaults.functions.contact_function = contact_function; /* This parses the cell definitions in the XML config file. @@ -126,9 +130,6 @@ void create_cell_types( void ) This is a good place to set custom functions. */ - cell_defaults.functions.update_phenotype = phenotype_function; - cell_defaults.functions.custom_cell_rule = custom_function; - cell_defaults.functions.contact_function = contact_function; /* This builds the map of cell definitions and summarizes the setup. @@ -211,4 +212,4 @@ void custom_function( Cell* pCell, Phenotype& phenotype , double dt ) { return; } void contact_function( Cell* pMe, Phenotype& phenoMe , Cell* pOther, Phenotype& phenoOther , double dt ) -{ return; } \ No newline at end of file +{ return; } diff --git a/sample_projects/template/main.cpp b/sample_projects/template/main.cpp index bf6e65d15..95cc556ef 100644 --- a/sample_projects/template/main.cpp +++ b/sample_projects/template/main.cpp @@ -249,6 +249,7 @@ int main( int argc, char* argv[] ) std::cout << std::endl << "Total simulation runtime: " << std::endl; BioFVM::display_stopwatch_value( std::cout , BioFVM::runtime_stopwatch_value() ); + std::cout << std::endl; return 0; }