mirror of
https://github.com/TREX-CoE/qmc-lttc.git
synced 2024-12-21 11:53:58 +01:00
Fixed Python code
This commit is contained in:
parent
c9696b0944
commit
4583a51266
29
QMC.org
29
QMC.org
@ -3,9 +3,32 @@
|
||||
# SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup
|
||||
# SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-bigblow.setup
|
||||
#+STARTUP: latexpreview
|
||||
|
||||
#+LATEX_CLASS: report
|
||||
#+LATEX_HEADER_EXTRA: \usepackage{minted}
|
||||
#+HTML_HEAD: <link rel="stylesheet" title="Standard" href="worg.css" type="text/css" />
|
||||
#+OPTIONS: H:2 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
|
||||
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
|
||||
#+EXPORT_EXCLUDE_TAGS: solution
|
||||
|
||||
#+BEGIN_SRC elisp :output none :exports none
|
||||
(setq org-latex-listings 'minted
|
||||
org-latex-packages-alist '(("" "minted"))
|
||||
org-latex-pdf-process
|
||||
'("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
|
||||
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
|
||||
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
|
||||
(setq org-latex-minted-options '(("breaklines" "true")
|
||||
("breakanywhere" "true")))
|
||||
(setq org-latex-minted-options
|
||||
'(("frame" "lines")
|
||||
("fontsize" "\\scriptsize")
|
||||
("linenos" "")))
|
||||
(org-beamer-export-to-pdf)
|
||||
|
||||
#+END_SRC
|
||||
|
||||
#+RESULTS:
|
||||
: /home/scemama/TREX/qmc-lttc/QMC.pdf
|
||||
|
||||
* Introduction
|
||||
|
||||
@ -1159,8 +1182,8 @@ def MonteCarlo(a,tau,nmax):
|
||||
d_old = d_new
|
||||
d2_old = d2_new
|
||||
psi_old = psi_new
|
||||
N += 1.
|
||||
E += e_loc(a,r_old)
|
||||
N += 1.
|
||||
E += e_loc(a,r_old)
|
||||
return E/N, accep_rate/N
|
||||
|
||||
|
||||
|
@ -27,8 +27,8 @@ def MonteCarlo(a,tau,nmax):
|
||||
d_old = d_new
|
||||
d2_old = d2_new
|
||||
psi_old = psi_new
|
||||
N += 1.
|
||||
E += e_loc(a,r_old)
|
||||
N += 1.
|
||||
E += e_loc(a,r_old)
|
||||
return E/N, accep_rate/N
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user