Skip to content

Commit 9af148b

Browse files
committed
fix error messages for wrong number of densities
1 parent 2ff66d6 commit 9af148b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎BioFVM/BioFVM_microenvironment.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ void get_row_from_substrate_initial_condition_csv(std::vector<int> &voxel_set, c
14031403
if (!(warning_issued) && !(header_provided) && (data.size() != (microenvironment.number_of_densities() + 3)))
14041404
{
14051405
std::cout << "WARNING: Wrong number of density values supplied in the .csv file specifying BioFVM initial conditions." << std::endl
1406-
<< "\tExpected: " << microenvironment.number_of_voxels() << std::endl
1406+
<< "\tExpected: " << microenvironment.number_of_densities() << std::endl
14071407
<< "\tFound: " << data.size() - 3 << std::endl
14081408
<< "\tRemember, save your csv with columns as: x, y, z, substrate_0, substrate_1,...." << std::endl
14091409
<< "\tThis could also be resolved by including a header row \"x,y,z,[substrate_i0,substrate_i1]\"" << std::endl;
@@ -1746,7 +1746,7 @@ void get_row_from_dirichlet_condition_csv(std::vector<int> &voxel_set, const std
17461746
if (!(warning_issued) && !(header_provided) && (data.size() != (microenvironment.number_of_densities() + 3)))
17471747
{
17481748
std::cout << "WARNING: Wrong number of density data supplied in the .csv file specifying BioFVM dirichlet conditions." << std::endl
1749-
<< "\tExpected: " << microenvironment.number_of_voxels() << std::endl
1749+
<< "\tExpected: " << microenvironment.number_of_densities() << std::endl
17501750
<< "\tFound: " << data.size() - 3 << std::endl
17511751
<< "\tRemember, save your csv with columns as: x, y, z, substrate_0, substrate_1,...." << std::endl
17521752
<< "\tThis could also be resolved by including a header row \"x,y,z,[substrate_i0,substrate_i1]\"" << std::endl;

0 commit comments

Comments
 (0)