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
d834b093
Commit
d834b093
authored
Mar 16, 2017
by
Andreas Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Abort test program gracefully
parent
b2e35cae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
test/Fortran/elpa_tests.F90
test/Fortran/elpa_tests.F90
+4
-0
test/shared/read_input_parameters.F90
test/shared/read_input_parameters.F90
+5
-1
No files found.
test/Fortran/elpa_tests.F90
View file @
d834b093
...
...
@@ -139,6 +139,10 @@ program test_all_real
nev
=
input_options
%
nev
nblk
=
input_options
%
nblk
if
(
input_options
%
justHelpMessage
)
then
call
EXIT
(
0
)
endif
!-------------------------------------------------------------------------------
! MPI Initialization
...
...
test/shared/read_input_parameters.F90
View file @
d834b093
...
...
@@ -53,7 +53,7 @@ module mod_read_input_parameters
integer
::
this_real_kernel
,
this_complex_kernel
logical
::
realKernelIsSet
,
complexKernelIsSet
integer
::
useQrIsSet
,
useGPUIsSet
logical
::
doSolveTridi
,
do1stage
,
do2stage
logical
::
doSolveTridi
,
do1stage
,
do2stage
,
justHelpMessage
end
type
interface
read_input_parameters
...
...
@@ -85,6 +85,8 @@ module mod_read_input_parameters
print
*
,
" [--output_eigenvectors] [--real-kernel=name_of_kernel]"
print
*
,
" [--complex-kernel=name_of_kernel] [--use-gpu={0|1}]"
print
*
,
" [--use-qr={0,1}] [--tests={all|solve-tridi|1stage|2stage}]"
input_options
%
justHelpMessage
=
.true.
return
endif
...
...
@@ -208,6 +210,8 @@ module mod_read_input_parameters
input_options
%
do2Stage
=
.true.
input_options
%
doSolveTridi
=
.true.
input_options
%
justHelpMessage
=
.false.
! test na=1500 nev=50 nblk=16 --help --kernel --output_eigenvectors --output_eigenvalues
if
(
COMMAND_ARGUMENT_COUNT
()
.gt.
8
)
then
write
(
error_unit
,
'(a,i0,a)'
)
"Invalid number ("
,
COMMAND_ARGUMENT_COUNT
(),
") of command line arguments!"
...
...
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