-
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.
Showing
5 changed files
with
61 additions
and
45 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
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
program bml_test | ||
|
||
use bml_types_m | ||
|
||
integer :: N = 11 | ||
integer :: M = -1 | ||
character(1000) :: test = "" | ||
character(1000) :: matrix_type = BML_MATRIX_DENSE | ||
character(1000) :: matrix_precision = BML_ELEMENT_REAL | ||
|
||
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 | ||
|
||
call get_command_argument(1, test) | ||
call get_command_argument(2, matrix_type) | ||
call get_command_argument(3, matrix_precision) | ||
|
||
select case(test) | ||
case default | ||
print *, "unknown test name "//trim(test) | ||
error stop | ||
end select | ||
|
||
end program bml_test |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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