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
adde10c0
Commit
adde10c0
authored
Jan 21, 2021
by
Alberto Ramos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug in replica ID's
parent
e979d31d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/ADerrorsIO.jl
src/ADerrorsIO.jl
+9
-7
No files found.
src/ADerrorsIO.jl
View file @
adde10c0
...
...
@@ -328,13 +328,14 @@ function read_bdio(fb, ws::wspace, mapids::Dict{Int64, Int64})
is
=
ie
+
1
end
ids_obs
=
Vector
{
Int64
}(
undef
,
nid
)
if
BDIO
.
BDIO_eor
(
fb
)
is
=
1
for
i
in
1
:
nid
ie
=
is
+
nrep
[
i
]
-
1
id
=
convert
(
Int64
,
ids
[
i
])
add_maps
(
id
,
ws
,
convert
(
Vector
{
Int64
},
ivrep
[
is
:
ie
]))
get_name_from_id
(
id
,
ws
)
id
s_obs
[
i
]
=
convert
(
Int64
,
ids
[
i
])
add_maps
(
id
s_obs
[
i
]
,
ws
,
convert
(
Vector
{
Int64
},
ivrep
[
is
:
ie
]))
get_name_from_id
(
id
s_obs
[
i
]
,
ws
)
is
=
ie
+
1
end
...
...
@@ -347,13 +348,14 @@ function read_bdio(fb, ws::wspace, mapids::Dict{Int64, Int64})
BDIO
.
BDIO_read
(
fb
,
ifoo
)
str
=
BDIO
.
BDIO_read_str
(
fb
)
id
=
get_id_from_name
(
str
,
ws
)
add_maps
(
id
,
ws
,
convert
(
Vector
{
Int64
},
ivrep
[
is
:
ie
]))
id
s_obs
[
i
]
=
get_id_from_name
(
str
,
ws
)
add_maps
(
id
s_obs
[
i
]
,
ws
,
convert
(
Vector
{
Int64
},
ivrep
[
is
:
ie
]))
is
=
ie
+
1
end
end
# Here not to use ids[i]
if
BDIO
.
BDIO_eor
(
fb
)
for
i
in
1
:
nid
v
=
Vector
{
String
}(
undef
,
nrep
[
i
])
...
...
@@ -362,7 +364,7 @@ function read_bdio(fb, ws::wspace, mapids::Dict{Int64, Int64})
for
j
in
1
:
nrep
[
i
]
v
[
j
]
=
str
*
"_r"
*
string
(
j
)
end
add_repnames
(
convert
(
Int64
,
ids
[
i
]),
ws
,
v
)
add_repnames
(
convert
(
Int64
,
ids
_obs
[
i
]),
ws
,
v
)
end
else
for
i
in
1
:
nid
...
...
@@ -371,7 +373,7 @@ function read_bdio(fb, ws::wspace, mapids::Dict{Int64, Int64})
for
j
in
1
:
nrep
[
i
]
v
[
j
]
=
BDIO
.
BDIO_read_str
(
fb
)
end
add_repnames
(
convert
(
Int64
,
ids
[
i
]),
ws
,
v
)
add_repnames
(
convert
(
Int64
,
ids
_obs
[
i
]),
ws
,
v
)
end
end
...
...
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