-
Notifications
You must be signed in to change notification settings - Fork 8
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
Showing
6 changed files
with
126 additions
and
44 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,37 @@ | ||
name: QuAcK Testing | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["QuAcK Compilation"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download compiled binary from previous workflow | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: fortran-binary | ||
path: ./bin/QuAcK | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pyscf | ||
- name: Run tests | ||
run: | | ||
bash -c "source quack.rc ; cd tests ; python lunch_bench.py -s light -t 1e-1" | ||
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,21 +1,41 @@ | ||
subroutine init_test(doRtest,doUtest,doGtest) | ||
subroutine init_test(working_dir,doRtest,doUtest,doGtest) | ||
|
||
implicit none | ||
|
||
! Input variables | ||
|
||
logical,intent(in) :: doRtest | ||
logical,intent(in) :: doUtest | ||
logical,intent(in) :: doGtest | ||
character(len=256),intent(in) :: working_dir | ||
logical,intent(in) :: doRtest | ||
logical,intent(in) :: doUtest | ||
logical,intent(in) :: doGtest | ||
|
||
! Local variables | ||
|
||
! Output variables | ||
|
||
if(doRtest) open(unit=1231597, file='test/Rtest.dat') | ||
integer :: status | ||
character(len=256) :: file_path | ||
|
||
if(doUtest) open(unit=1232584, file='test/Utest.dat') | ||
! Output variables | ||
|
||
if(doGtest) open(unit=1234181, file='test/Gtest.dat') | ||
if(doRtest) then | ||
file_path = trim(working_dir) // '/test/Rtest.dat' | ||
open(unit=1231597, file=file_path, iostat=status) | ||
if(status /= 0) then | ||
print *, "Error opening file: ", file_path | ||
stop | ||
else | ||
print *, "opening file successed" | ||
endif | ||
endif | ||
|
||
if(doUtest) then | ||
file_path = trim(working_dir) // '/test/Utest.dat' | ||
open(unit=1232584, file=file_path) | ||
endif | ||
|
||
if(doGtest) then | ||
file_path = trim(working_dir) // '/test/Gtest.dat' | ||
open(unit=1234181, file=file_path) | ||
endif | ||
|
||
end subroutine | ||
|
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,2 @@ | ||
|
||
* |