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
9b4b00f5
Commit
9b4b00f5
authored
Jul 22, 2020
by
Alberto Ramos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved error messages
parent
9bee2807
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/ADerrorsCF.jl
src/ADerrorsCF.jl
+7
-0
No files found.
src/ADerrorsCF.jl
View file @
9b4b00f5
...
...
@@ -70,15 +70,22 @@ function add_DB(delta::Vector{Float64}, id::Int64, iv::Vector{Int64}, ws::wspace
end
else
if
(
sum
(
iv
)
!=
length
(
delta
))
println
(
stderr
,
"ID: "
,
id
)
ArgumentError
(
"Sum of replica length does not match number of measurements"
)
end
ws
.
nob
+=
1
push!
(
ws
.
map_nob
,
id
)
if
(
haskey
(
ws
.
map_ids
,
id
))
if
(
length
(
delta
)
!=
ws
.
fluc
[
ws
.
map_ids
[
id
]]
.
nd
)
println
(
stderr
,
"ID: "
,
id
)
println
(
stderr
,
"DB length: "
,
ws
.
fluc
[
ws
.
map_ids
[
id
]]
.
nd
)
println
(
stderr
,
"obs length: "
,
length
(
delta
))
error
(
"Mistmatch in data length for the same ensemble ID"
)
end
if
(
iv
!=
ws
.
fluc
[
ws
.
map_ids
[
id
]]
.
ivrep
)
println
(
stderr
,
"ID: "
,
id
)
println
(
stderr
,
"DB replica: "
,
ws
.
fluc
[
ws
.
map_ids
[
id
]]
.
ivrep
)
println
(
stderr
,
"obs replica: "
,
iv
)
error
(
"Mistmatch in replica vector for the same ensemble ID"
)
end
else
...
...
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