Commit 82dff093 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

Merge branch 'fix/ex4-typos' into 'master'

[ex4] fix final output

See merge request tools/frackit!168
parents 1f801483 76c383e3
......@@ -415,7 +415,7 @@ int main(int argc, char** argv)
const auto domainVolume = computeMagnitude(domain);
const auto numEntities = entitiesSet1.size()+entitiesSet2.size()+entitiesSet3.size();
std::cout << "\nCreated a network consisting of " << numEntities << " entities\n";
std::cout << "Volume of the network: " << domainVolume << std::endl;
std::cout << "Volume of the domain: " << domainVolume << std::endl;
std::cout << "Area of the network: " << area << " m²"
<< ", which corresponds to a density of " << area/domainVolume << " m²/m³" << std::endl;
......
......@@ -345,7 +345,7 @@ for e in entitySets[setId2]:
domainVolume = computeMagnitude(domain);
numEntities = len(entitySets[setId1]) + len(entitySets[setId2]) + len(entitySets[setId3])
print("\nCreated a network consisting of {:d} entities.".format(numEntities))
print("Volume of the network: {:.2f}.".format(domainVolume))
print("Volume of the domain: {:.2f}.".format(domainVolume))
print("Area of the network: {:.2f} m², which corresponds to a density of {:.2f} m²/m³".format(area, area/domainVolume))
########################################################################################
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment