From 9fd6d9bc0205033ea006b1899ed19d9470091472 Mon Sep 17 00:00:00 2001 From: bue Date: Wed, 15 Jan 2025 17:15:02 -0500 Subject: [PATCH] adjust output folder naming scheme --- sample_projects/episode/Makefile | 2 +- sample_projects/episode/main.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sample_projects/episode/Makefile b/sample_projects/episode/Makefile index d546637a1..a9b43a58e 100644 --- a/sample_projects/episode/Makefile +++ b/sample_projects/episode/Makefile @@ -233,7 +233,7 @@ untar: # easier animation FRAMERATE := 24 -OUTPUT := output0 +OUTPUT := output/episode00000000 jpeg: @magick identify -format "%h" $(OUTPUT)/initial.svg > __H.txt diff --git a/sample_projects/episode/main.cpp b/sample_projects/episode/main.cpp index 05789121a..5b13508c8 100644 --- a/sample_projects/episode/main.cpp +++ b/sample_projects/episode/main.cpp @@ -110,7 +110,8 @@ int main( int argc, char* argv[] ) std::string ( *substrate_coloring_function )( double, double, double ) = paint_by_density_percentage; // generate output folder - std::string folder = "output" + std::to_string( i_episode ); + std::string s_episode = std::to_string( i_episode ); + std::string folder = "output/episode" + s_episode.insert( 0, 8 - s_episode.length(), '0'); // handle settings file std::string settingxml = "config/PhysiCell_settings.xml"; @@ -208,7 +209,7 @@ int main( int argc, char* argv[] ) // save data simulation snapshot output00000000 if ( PhysiCell_settings.enable_full_saves == true ) { - sprintf( filename, "%s/output%08u", PhysiCell_settings.folder.c_str(), PhysiCell_globals.full_output_index ); + sprintf( filename, "%s/output%08u", PhysiCell_settings.folder.c_str(), PhysiCell_globals.full_output_index ); save_PhysiCell_to_MultiCellDS_v2( filename, microenvironment, PhysiCell_globals.current_time ); }