Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xdmf
Xdmf
Commits
65e96db1
Commit
65e96db1
authored
Nov 04, 2013
by
Andrew J. Burns (Cont
Committed by
Kenneth Leiter
Nov 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed interlace algorithm for unequal sizes
parent
c67ebed4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
core/XdmfFunction.cpp
core/XdmfFunction.cpp
+2
-2
No files found.
core/XdmfFunction.cpp
View file @
65e96db1
...
...
@@ -798,7 +798,7 @@ XdmfFunction::interlace(shared_ptr<XdmfArray> val1, shared_ptr<XdmfArray> val2)
if
(
arrayExcess1
>
0
)
{
returnArray
->
insert
(
val1
->
getSize
()
+
val2
->
getSize
()
-
arrayExcess1
,
val1
,
0
,
val1
->
getSize
()
-
arrayExcess1
,
arrayExcess1
,
1
,
1
);
...
...
@@ -806,7 +806,7 @@ XdmfFunction::interlace(shared_ptr<XdmfArray> val1, shared_ptr<XdmfArray> val2)
else
if
(
arrayExcess2
>
0
)
{
returnArray
->
insert
(
val1
->
getSize
()
+
val2
->
getSize
()
-
arrayExcess2
,
val2
,
0
,
val2
->
getSize
()
-
arrayExcess2
,
arrayExcess2
,
1
,
1
);
...
...
Write
Preview
Markdown
is supported
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