Skip to content

Commit c805e28

Browse files
committed
Only saving cells data when there are cells
1 parent 37b970c commit c805e28

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modules/PhysiCell_MultiCellDS.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ void save_PhysiCell_to_MultiCellDS_v2( std::string filename_base , Microenvironm
145145
// now, add the PhysiCell data
146146

147147
// add_PhysiCell_cells_to_open_xml_pugi( BioFVM::biofvm_doc , filename_base , M );
148-
add_PhysiCell_cells_to_open_xml_pugi_v2( BioFVM::biofvm_doc , filename_base , M );
148+
if (all_cells->size() > 0)
149+
add_PhysiCell_cells_to_open_xml_pugi_v2( BioFVM::biofvm_doc , filename_base , M );
149150

150151
// Lastly, save to the indicated filename
151152

0 commit comments

Comments
 (0)