Skip to content

Commit

Permalink
adjust output folder naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
elmbeech committed Jan 15, 2025
1 parent de8fc59 commit 9fd6d9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sample_projects/episode/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ untar:
# easier animation

FRAMERATE := 24
OUTPUT := output0
OUTPUT := output/episode00000000

jpeg:
@magick identify -format "%h" $(OUTPUT)/initial.svg > __H.txt
Expand Down
5 changes: 3 additions & 2 deletions sample_projects/episode/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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 );
}

Expand Down

0 comments on commit 9fd6d9b

Please sign in to comment.