Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
elpa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
elpa
elpa
Commits
9734ed1f
Commit
9734ed1f
authored
Nov 22, 2018
by
Pavel Kus
Committed by
Andreas Marek
Nov 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding error code for problems loading/saving state or autotuning state
parent
73d926be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
elpa/elpa_constants.h.in
elpa/elpa_constants.h.in
+2
-1
src/elpa_impl.F90
src/elpa_impl.F90
+4
-4
No files found.
elpa/elpa_constants.h.in
View file @
9734ed1f
...
...
@@ -98,7 +98,8 @@ enum ELPA_COMPLEX_KERNELS {
X(ELPA_ERROR_API_VERSION, -8) \
X(ELPA_ERROR_AUTOTUNE_API_VERSION, -9) \
X(ELPA_ERROR_AUTOTUNE_OBJECT_CHANGED, -10) \
X(ELPA_ERROR_ENTRY_READONLY, -11)
X(ELPA_ERROR_ENTRY_READONLY, -11) \
X(ELPA_ERROR_CANNOT_OPEN_FILE, -12)
enum ELPA_ERRORS {
ELPA_FOR_ALL_ERRORS(ELPA_ENUM_ENTRY)
...
...
src/elpa_impl.F90
View file @
9734ed1f
...
...
@@ -1254,7 +1254,7 @@ module elpa_impl
if
(
elpa_index_print_settings_c
(
self
%
index
,
file_name
//
c_null_char
)
/
=
1
)
then
write
(
error_unit
,
*
)
"This should not happen (in elpa_store_settings())"
if
(
present
(
error
))
then
error
=
ELPA_ERROR
error
=
ELPA_ERROR
_CANNOT_OPEN_FILE
endif
endif
...
...
@@ -1300,7 +1300,7 @@ module elpa_impl
if
(
elpa_index_load_settings_c
(
self
%
index
,
file_name
//
c_null_char
)
/
=
1
)
then
write
(
error_unit
,
*
)
"This should not happen (in elpa_load_settings())"
if
(
present
(
error
))
then
error
=
ELPA_ERROR
error
=
ELPA_ERROR
_CANNOT_OPEN_FILE
endif
endif
end
subroutine
...
...
@@ -1422,7 +1422,7 @@ module elpa_impl
ts_impl
%
min_val
,
ts_impl
%
current
,
ts_impl
%
cardinality
,
file_name
//
c_null_char
)
/
=
1
)
then
write
(
error_unit
,
*
)
"This should not happen (in elpa_autotune_save_state())"
if
(
present
(
error
))
then
error
=
ELPA_ERROR_
AUTOTUNE_OBJECT_CHANGED
error
=
ELPA_ERROR_
CANNOT_OPEN_FILE
endif
endif
end
subroutine
...
...
@@ -1493,7 +1493,7 @@ module elpa_impl
ts_impl
%
min_val
,
ts_impl
%
current
,
ts_impl
%
cardinality
,
file_name
//
c_null_char
)
/
=
1
)
then
write
(
error_unit
,
*
)
"This should not happen (in elpa_autotune_load_state())"
if
(
present
(
error
))
then
error
=
ELPA_ERROR_
AUTOTUNE_OBJECT_CHANGED
error
=
ELPA_ERROR_
CANNOT_OPEN_FILE
endif
endif
!print *, "testing, after C call, ts_impl%current is ", ts_impl%current
...
...
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