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
dumux-appl
dumux-preCICE
Commits
2ecc93d2
Verified
Commit
2ecc93d2
authored
Jun 20, 2022
by
Alexander Jaust
Browse files
Fix dimension checks
parent
4ede4bf9
Pipeline
#19410
passed with stages
in 3 minutes and 19 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
dumux-precice/couplingadapter.cc
View file @
2ecc93d2
...
...
@@ -356,7 +356,7 @@ void CouplingAdapter::readBlockDataFromPrecice(const int dataID,
precice_
->
readBlockScalarData
(
dataID
,
vertexIDs_
.
size
(),
vertexIDs_
.
data
(),
data
.
data
());
}
else
{
assert
(
vertexIDs_
.
size
()
*
getDimension
()
==
data
.
size
());
assert
(
vertexIDs_
.
size
()
*
getDimension
s
()
==
data
.
size
());
precice_
->
readBlockVectorData
(
dataID
,
vertexIDs_
.
size
(),
vertexIDs_
.
data
(),
data
.
data
());
}
...
...
@@ -372,7 +372,7 @@ void CouplingAdapter::writeBlockDataToPrecice(const int dataID,
precice_
->
writeBlockScalarData
(
dataID
,
vertexIDs_
.
size
(),
vertexIDs_
.
data
(),
data
.
data
());
}
else
{
assert
(
vertexIDs_
.
size
()
==
data
.
size
());
assert
(
vertexIDs_
.
size
()
*
getDimensions
()
==
data
.
size
());
precice_
->
writeBlockVectorData
(
dataID
,
vertexIDs_
.
size
(),
vertexIDs_
.
data
(),
data
.
data
());
}
...
...
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