1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-06-13 08:45:36 +02:00

Fix broken build

Recent HPC-related additions break the current build (make) process. This is because the HPC-related functions are not wrapped in the preprocessor ifdef statement.
This commit is contained in:
q-posev 2022-02-28 22:28:11 +01:00
parent 5e35df226a
commit 8b7b56b57b

View File

@ -2664,10 +2664,13 @@ qmckl_exit_code qmckl_finalize_basis(qmckl_context context) {
#+end_src #+end_src
#+begin_src c :comments org :tangle (eval h_private_func) :exports none #+begin_src c :comments org :tangle (eval h_private_func) :exports none
#ifdef HAVE_HPC
qmckl_exit_code qmckl_finalize_basis_hpc (qmckl_context context); qmckl_exit_code qmckl_finalize_basis_hpc (qmckl_context context);
#endif
#+end_src #+end_src
#+begin_src c :comments org :tangle (eval c) :exports none #+begin_src c :comments org :tangle (eval c) :exports none
#ifdef HAVE_HPC
qmckl_exit_code qmckl_finalize_basis_hpc (qmckl_context context) qmckl_exit_code qmckl_finalize_basis_hpc (qmckl_context context)
{ {
qmckl_context_struct* const ctx = (qmckl_context_struct* const) context; qmckl_context_struct* const ctx = (qmckl_context_struct* const) context;
@ -2729,6 +2732,7 @@ qmckl_exit_code qmckl_finalize_basis_hpc (qmckl_context context)
} }
return QMCKL_SUCCESS; return QMCKL_SUCCESS;
} }
#endif
#+end_src #+end_src