-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge last changes develo into master for qe-6.8
- Loading branch information
Showing
11 changed files
with
43 additions
and
22 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
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,12 @@ | ||
qe_add_executable(test_qe_lax_lapack_zdotc test_lapack_zdotc.f90) | ||
set_target_properties(test_qe_lax_lapack_zdotc | ||
PROPERTIES | ||
OUTPUT_NAME test_qe_lax_lapack_zdotc.x | ||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../bin) | ||
target_link_libraries(test_qe_lax_lapack_zdotc | ||
PRIVATE | ||
qe_openmp_fortran | ||
qe_mpi_fortran | ||
qe_lapack) | ||
|
||
add_unit_test(test_qe_lapack_zdotc 1 1 $<TARGET_FILE:test_qe_lax_lapack_zdotc>) |
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,18 @@ | ||
program test | ||
implicit none | ||
complex*16 :: a(2), b(2) | ||
complex*16 res | ||
complex*16, external :: ZDOTC | ||
|
||
a(1) = (-9.6224246089610388d-2, 3.2442340359108593d-3) | ||
a(2) = (-0.9037769140058165, 3.2441868631152768d-3) | ||
|
||
b(1) = (-0.9999890875238262, -5.3357405582201908d-7) | ||
b(2) = (-0.9999998761616069, 4.3341267956954060d-8) | ||
|
||
res = ZDOTC(2, a, 1, b, 1) | ||
if (ABS(res - (1.0000000308637980,6.48839729724212839E-003)) >= 1.d-6) then | ||
write(*,*) "zdotc check failed. Expected (1.0000000308637980,6.48839729724212839E-003) but got ", res | ||
stop 1 | ||
endif | ||
end program |
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
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