From 9479ec51ff2067eaf92cce55fd39dd9e1e0ff572 Mon Sep 17 00:00:00 2001 From: vijay gopal chilkuri Date: Tue, 25 May 2021 13:07:24 +0530 Subject: [PATCH] Fixed typo in qmckl.org and added a rule to use Python3 in init.el. #15 --- org/qmckl.org | 11 ++++++----- org/qmckl_nucleus.org | 2 +- tools/init.el | 3 +++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/org/qmckl.org b/org/qmckl.org index b3c0bb4..976d4f5 100644 --- a/org/qmckl.org +++ b/org/qmckl.org @@ -208,9 +208,9 @@ cppcheck --addon=cert --enable=all *.c &> cppcheck.out value in the ~qmckl_numprec_struct~ contained in the context. Because of these intricate dependencies, a private header is created, containing the ~qmckl_numprec_struct~. This header is - included in the private header which defines the type of the - context. Headers for private types are suffixed by =_private_type.h= - and headers for private functions, =_private_func.h=. + included in the private header file which defines the type of the + context. Header files for private types are suffixed by =_private_type.h= + and header files for private functions are suffixed by =_private_func.h=. Fortran interfaces should also be written in the =*_f_func.f90= file, and the types definitions should be written in the =*_f_type.f90= file. @@ -220,8 +220,8 @@ cppcheck --addon=cert --enable=all *.c &> cppcheck.out | =*_func.h= | Public | Function definitions | | =*_private_type.h= | Private | Type definitions | | =*_private_func.h= | Private | Function definitions | - | =*fh_type.f90= | Public | Fortran type definitions | - | =*fh_func.f90= | Public | Fortran function definitions | + | =*_f_type.f90= | Public | Fortran type definitions | + | =*_f_func.f90= | Public | Fortran function definitions | ** Low-level functions @@ -245,6 +245,7 @@ cppcheck --addon=cert --enable=all *.c &> cppcheck.out the =context= variable. # TODO : We need an identifier for impure functions + # Suggestion (VJ): using *_unsafe_* for impure functions ? ** Numerical precision diff --git a/org/qmckl_nucleus.org b/org/qmckl_nucleus.org index 2561bca..834535b 100644 --- a/org/qmckl_nucleus.org +++ b/org/qmckl_nucleus.org @@ -815,7 +815,7 @@ assert(rep - 318.2309879436158 < 1.e-10); } #+end_src -**✸ Compute file names +*** Compute file names #+begin_src emacs-lisp ; The following is required to compute the file names diff --git a/tools/init.el b/tools/init.el index fae4d20..ed3af2b 100644 --- a/tools/init.el +++ b/tools/init.el @@ -51,6 +51,9 @@ (makefile . t) )) +;; Use python3 instead of python2.7 +(setq org-babel-python-command "python3") + (add-hook 'org-babel-after-execute-hook 'org-display-inline-images) '(indent-tabs-mode nil)