Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tools
frackit
Commits
82dff093
Commit
82dff093
authored
Nov 09, 2020
by
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
appl/example4/example4.cc
View file @
82dff093
...
...
@@ -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
<<
"
\n
Created 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
;
...
...
appl/example4/example4.py
View file @
82dff093
...
...
@@ -345,7 +345,7 @@ for e in entitySets[setId2]:
domainVolume
=
computeMagnitude
(
domain
);
numEntities
=
len
(
entitySets
[
setId1
])
+
len
(
entitySets
[
setId2
])
+
len
(
entitySets
[
setId3
])
print
(
"
\n
Created 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
))
########################################################################################
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment