-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ee60f4
commit a33a824
Showing
2 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,35 @@ | ||
function print_usage() | ||
program bml_test | ||
|
||
print *, "Usage" | ||
use bml_types_m | ||
|
||
end function print_usage | ||
integer :: N = 11 | ||
integer :: M = -1 | ||
character(1000) :: test = "" | ||
character(1000) :: matrix_type = BML_MATRIX_DENSE | ||
character(1000) :: matrix_precision = BML_ELEMENT_REAL | ||
|
||
program bml_test | ||
integer :: n_args | ||
|
||
! Arguments are interpreted as | ||
! | ||
! testname | ||
! matrix_type | ||
! precision | ||
|
||
n_args = command_argument_count() | ||
if(n_args /= 3) then | ||
print *, "incorrect number of command line arguments" | ||
error stop | ||
end if | ||
|
||
use bml_init_m | ||
call get_command_argument(1, test) | ||
call get_command_argument(2, matrix_type) | ||
call get_command_argument(3, matrix_precision) | ||
|
||
call bml_initF() | ||
select case(test) | ||
case default | ||
print *, "unknown test name "//trim(test) | ||
error stop | ||
end select | ||
|
||
end program bml_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters