Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ADerrors.jl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alberto Ramos
ADerrors.jl
Commits
6cd322d4
Commit
6cd322d4
authored
Jul 31, 2020
by
Alberto Ramos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug and performance in wride_uwreal
parent
1ed66a8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
src/ADerrorsIO.jl
src/ADerrorsIO.jl
+8
-7
No files found.
src/ADerrorsIO.jl
View file @
6cd322d4
...
@@ -293,26 +293,27 @@ function write_bdio(p::uwreal, fb, iu::Int, ws::wspace)
...
@@ -293,26 +293,27 @@ function write_bdio(p::uwreal, fb, iu::Int, ws::wspace)
BDIO
.
BDIO_write!
(
fb
,
[
p
.
mean
],
true
)
BDIO
.
BDIO_write!
(
fb
,
[
p
.
mean
],
true
)
BDIO
.
BDIO_write!
(
fb
,
[
nid
],
true
)
BDIO
.
BDIO_write!
(
fb
,
[
nid
],
true
)
ntv
=
Vector
{
Int32
}(
undef
,
nid
)
for
j
in
1
:
nid
for
j
in
1
:
nid
nd
=
convert
(
Int32
,
ws
.
fluc
[
ws
.
map_ids
[
p
.
ids
[
j
]]]
.
nd
)
ntv
[
j
]
=
convert
(
Int32
,
ws
.
fluc
[
ws
.
map_ids
[
p
.
ids
[
j
]]]
.
nd
)
BDIO
.
BDIO_write!
(
fb
,
[
nd
],
true
)
end
end
BDIO
.
BDIO_write!
(
fb
,
ntv
,
true
)
for
j
in
1
:
nid
for
j
in
1
:
nid
nr
=
convert
(
Int32
,
length
(
ws
.
fluc
[
ws
.
map_ids
[
p
.
ids
[
j
]]]
.
ivrep
))
ntv
[
j
]
=
convert
(
Int32
,
length
(
ws
.
fluc
[
ws
.
map_ids
[
p
.
ids
[
j
]]]
.
ivrep
))
BDIO
.
BDIO_write!
(
fb
,
[
nr
],
true
)
end
end
BDIO
.
BDIO_write!
(
fb
,
ntv
,
true
)
for
j
in
1
:
nid
for
j
in
1
:
nid
BDIO
.
BDIO_write!
(
fb
,
convert
(
Vector
{
Int32
},
ws
.
fluc
[
ws
.
map_ids
[
p
.
ids
[
j
]]]
.
ivrep
),
true
)
BDIO
.
BDIO_write!
(
fb
,
convert
(
Vector
{
Int32
},
ws
.
fluc
[
ws
.
map_ids
[
p
.
ids
[
j
]]]
.
ivrep
),
true
)
end
end
BDIO
.
BDIO_write!
(
fb
,
convert
(
Vector
{
Int32
},
p
.
ids
),
true
)
BDIO
.
BDIO_write!
(
fb
,
convert
(
Vector
{
Int32
},
p
.
ids
),
true
)
for
j
in
1
:
nid
for
j
in
1
:
nid
nt
=
maximum
(
ws
.
fluc
[
ws
.
map_ids
[
p
.
ids
[
j
]]]
.
ivrep
)
ntv
[
j
]
=
convert
(
Int32
,
div
(
maximum
(
ws
.
fluc
[
ws
.
map_ids
[
p
.
ids
[
j
]]]
.
ivrep
),
2
))
BDIO
.
BDIO_write!
(
fb
,
[
nt
],
true
)
end
end
BDIO
.
BDIO_write!
(
fb
,
ntv
,
true
)
BDIO
.
BDIO_write!
(
fb
,
zeros
(
Float64
,
nid
),
true
)
BDIO
.
BDIO_write!
(
fb
,
zeros
(
Float64
,
nid
),
true
)
BDIO
.
BDIO_write!
(
fb
,
[
DEFAULT_STAU
for
n
in
1
:
nid
],
true
)
BDIO
.
BDIO_write!
(
fb
,
[
DEFAULT_STAU
for
n
in
1
:
nid
],
true
)
...
...
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