forked from scarrazza/qcdloop
-
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.
adding compiler option to enable/disable fortran wrapper, included ex…
…ample in fortran
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 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,19 @@ | ||
! Example of fortran code calling the c++ library | ||
! compile with: gfortran fortran_test.f `qcdloop-config --ldflags` | ||
|
||
program main | ||
implicit none | ||
double complex qli1 | ||
double precision m, mu2 | ||
|
||
! init qcdloop objects | ||
call qlinit() | ||
|
||
m = 5d0 | ||
mu2 = 1.7d0**2 | ||
! call some test function | ||
write(*,*) qli1(m, mu2, 0) | ||
write(*,*) qli1(m, mu2, 1) | ||
write(*,*) qli1(m, mu2, 2) | ||
|
||
end |