forked from lanl/bml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust script shebang to use Python interpreter
Teach CMake how to find a Python interpreter and adjust the shebang in the `convert-template` script to use that interpreter. Co-Authored-By: Nicolas Bock <[email protected]> Signed-off-by: Nicolas Bock <[email protected]>
- Loading branch information
1 parent
d0a097c
commit 5294d19
Showing
5 changed files
with
29 additions
and
19 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
#!${PYTHON_EXECUTABLE} | ||
|
||
re_D = {} | ||
|
||
|
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
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,28 +1,31 @@ | ||
FORTRAN TESTS | ||
============= | ||
|
||
The tests are driven by a general executable created when the code is compiled with | ||
`BML_TESTING=yes`. This driver is called bml-testf compiled with the `testf.F90` | ||
source. | ||
The tests are driven by a general executable created when the code is | ||
compiled with `BML_TESTING=yes`. This driver is called bml-testf | ||
compiled with the `testf.F90` source. | ||
|
||
Every low level source code of the type name_typed.F90 is preprocessed using | ||
the `/scripts/convert-template` to chage to the particula element kind and presicion. | ||
Two dummy varibles are used: | ||
Every low level source code of the type name_typed.F90 is | ||
pre-processed using the `/scripts/convert-template.in` to change to | ||
the particular element kind and presicion. Two dummy varibles are | ||
used: | ||
|
||
- `DUMMY_KIND`: That gets replaced with either `real` or `complex` | ||
- `DUMMY_PREC` or `_MP`: That gets replaced with `SP/_SP` of `DP/_DP` (defined in prec.F90) | ||
There is are `exmple_template*` files that can be used as starting point to add | ||
a particular test. | ||
|
||
There is are `exmple_template*` files that can be used as starting | ||
point to add a particular test. | ||
|
||
# Conventions and rules | ||
|
||
The general driver take four variables (this can be extended as needed). | ||
These variables are: | ||
The general driver take four variables (this can be extended as | ||
needed). These variables are: | ||
|
||
- `test_name`: The name of the test | ||
- `matrix_type`: The matrix format (matrix format and matrix type are the same thing) | ||
- `element_type`: The element "kind" and "precision". For example double_real, which gets | ||
converted to real(8) at the lowest level. | ||
- `test_name`: The name of the test | ||
- `matrix_type`: The matrix format (matrix format and matrix type | ||
are the same thing) | ||
- `element_type`: The element "kind" and "precision". For example | ||
double_real, which gets converted to real(8) at | ||
the lowest level. | ||
|
||
NOTE: Try to be as explicit as possible in naming the variables. | ||
NOTE: Try to be as explicit as possible in naming the variables. |