mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-05 11:00:36 +01:00
Merge branch 'master' of github.com:TREX-CoE/qmckl
This commit is contained in:
commit
3f0b8414ec
1306
org/qmckl_sherman_morrison_woodbury.org
Normal file
1306
org/qmckl_sherman_morrison_woodbury.org
Normal file
File diff suppressed because one or more lines are too long
@ -7,6 +7,7 @@ qmckl_nucleus.org
|
|||||||
qmckl_electron.org
|
qmckl_electron.org
|
||||||
qmckl_ao.org
|
qmckl_ao.org
|
||||||
qmckl_jastrow.org
|
qmckl_jastrow.org
|
||||||
|
qmckl_sherman_morrison_woodbury.org
|
||||||
qmckl_distance.org
|
qmckl_distance.org
|
||||||
qmckl_utils.org
|
qmckl_utils.org
|
||||||
qmckl_tests.org
|
qmckl_tests.org
|
||||||
|
@ -11,11 +11,10 @@
|
|||||||
** Function to get the value of a property.
|
** Function to get the value of a property.
|
||||||
#+NAME: get_value
|
#+NAME: get_value
|
||||||
#+begin_src elisp :var key="Type"
|
#+begin_src elisp :var key="Type"
|
||||||
(setq x (org-property-values key))
|
(org-with-point-at org-babel-current-src-block-location
|
||||||
(pop x)
|
(org-entry-get nil key t))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+RESULTS: get_value
|
|
||||||
|
|
||||||
** Table of function arguments
|
** Table of function arguments
|
||||||
|
|
||||||
@ -42,6 +41,8 @@ f_of_c_d = { '' : ''
|
|||||||
, 'qmckl_exit_code' : 'integer (c_int32_t)'
|
, 'qmckl_exit_code' : 'integer (c_int32_t)'
|
||||||
, 'int32_t' : 'integer (c_int32_t)'
|
, 'int32_t' : 'integer (c_int32_t)'
|
||||||
, 'int64_t' : 'integer (c_int64_t)'
|
, 'int64_t' : 'integer (c_int64_t)'
|
||||||
|
, 'uint32_t' : 'integer (c_int32_t)'
|
||||||
|
, 'uint64_t' : 'integer (c_int64_t)'
|
||||||
, 'float' : 'real (c_float )'
|
, 'float' : 'real (c_float )'
|
||||||
, 'double' : 'real (c_double )'
|
, 'double' : 'real (c_double )'
|
||||||
, 'char' : 'character'
|
, 'char' : 'character'
|
||||||
@ -55,6 +56,8 @@ ctypeid_d = { '' : ''
|
|||||||
, 'qmckl_exit_code' : 'integer(c_int32_t)'
|
, 'qmckl_exit_code' : 'integer(c_int32_t)'
|
||||||
, 'integer' : 'integer(c_int32_t)'
|
, 'integer' : 'integer(c_int32_t)'
|
||||||
, 'integer*8' : 'integer(c_int64_t)'
|
, 'integer*8' : 'integer(c_int64_t)'
|
||||||
|
, 'integer' : 'integer(c_uint32_t)'
|
||||||
|
, 'integer*8' : 'integer(c_uint64_t)'
|
||||||
, 'real' : 'real(c_float)'
|
, 'real' : 'real(c_float)'
|
||||||
, 'real*8' : 'real(c_double)'
|
, 'real*8' : 'real(c_double)'
|
||||||
, 'character' : 'character(c_char)'
|
, 'character' : 'character(c_char)'
|
||||||
@ -184,23 +187,6 @@ results='\n'.join(results)
|
|||||||
return results
|
return results
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+RESULTS: generate_c_interface
|
|
||||||
#+begin_src f90 :tangle (eval f) :comments org :exports none
|
|
||||||
integer(c_int32_t) function [] &
|
|
||||||
() &
|
|
||||||
bind(C) result(info)
|
|
||||||
|
|
||||||
use, intrinsic :: iso_c_binding
|
|
||||||
implicit none
|
|
||||||
|
|
||||||
|
|
||||||
integer(c_int32_t), external :: []_f
|
|
||||||
info = []_f &
|
|
||||||
()
|
|
||||||
|
|
||||||
end function []
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
*** Generates a Fortran interface to the C function
|
*** Generates a Fortran interface to the C function
|
||||||
|
|
||||||
#+NAME: generate_f_interface
|
#+NAME: generate_f_interface
|
||||||
@ -252,8 +238,5 @@ results='\n'.join(results)
|
|||||||
return results
|
return results
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+RESULTS: generate_f_interface
|
|
||||||
#+begin_src f90 :tangle (eval fh_func) :comments org :exports none
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user