mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-08 04:19:15 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@a295cfe22e 🚀
This commit is contained in:
parent
43513a01ec
commit
851081f2bb
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-03-23 Tue 21:25 -->
|
||||
<!-- 2021-03-28 Sun 23:18 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>QMCkl source code documentation</title>
|
||||
@ -348,7 +348,7 @@ and bug reports should be submitted at
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-03-23 Tue 21:25</p>
|
||||
<p class="date">Created: 2021-03-28 Sun 23:18</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-03-23 Tue 21:25 -->
|
||||
<!-- 2021-03-28 Sun 23:18 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>QMCkl source code documentation</title>
|
||||
@ -348,7 +348,7 @@ and bug reports should be submitted at
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-03-23 Tue 21:25</p>
|
||||
<p class="date">Created: 2021-03-28 Sun 23:18</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
102
qmckl.html
102
qmckl.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-03-23 Tue 21:25 -->
|
||||
<!-- 2021-03-28 Sun 23:18 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Introduction</title>
|
||||
@ -333,30 +333,30 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org651d39a">1. Using QMCkl</a></li>
|
||||
<li><a href="#org2e58781">2. Developing in QMCkl</a>
|
||||
<li><a href="#org6b1f165">1. Using QMCkl</a></li>
|
||||
<li><a href="#orgf6b850a">2. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orgd5c6f98">2.1. Literate programming</a></li>
|
||||
<li><a href="#orgef2320b">2.2. Source code editing</a></li>
|
||||
<li><a href="#orgb98bdd1">2.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org9612495">2.4. Coding rules</a></li>
|
||||
<li><a href="#orgd2c4524">2.5. Design of the library</a></li>
|
||||
<li><a href="#orgd1be4ca">2.6. Naming conventions</a></li>
|
||||
<li><a href="#orgd2f4a9a">2.7. Application programming interface</a></li>
|
||||
<li><a href="#org83249fd">2.8. Global state</a></li>
|
||||
<li><a href="#org4068345">2.9. Low-level functions</a></li>
|
||||
<li><a href="#org1a8d2e6">2.10. High-level functions</a></li>
|
||||
<li><a href="#orgbd559b6">2.11. Numerical precision</a></li>
|
||||
<li><a href="#orgf3b0ef0">2.12. Algorithms</a></li>
|
||||
<li><a href="#org6c0f6fc">2.13. Rules for the API</a></li>
|
||||
<li><a href="#orgf068d73">2.1. Literate programming</a></li>
|
||||
<li><a href="#org481f2ee">2.2. Source code editing</a></li>
|
||||
<li><a href="#orge8f3f5d">2.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orgdf4fbfb">2.4. Coding rules</a></li>
|
||||
<li><a href="#org7fffd37">2.5. Design of the library</a></li>
|
||||
<li><a href="#org6a79703">2.6. Naming conventions</a></li>
|
||||
<li><a href="#orgfb1bd33">2.7. Application programming interface</a></li>
|
||||
<li><a href="#org57d8607">2.8. Global state</a></li>
|
||||
<li><a href="#org7aa1e5e">2.9. Low-level functions</a></li>
|
||||
<li><a href="#orgbd5d6e3">2.10. High-level functions</a></li>
|
||||
<li><a href="#orgea083c4">2.11. Numerical precision</a></li>
|
||||
<li><a href="#org51b9002">2.12. Algorithms</a></li>
|
||||
<li><a href="#orgd9a567b">2.13. Rules for the API</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org651d39a" class="outline-2">
|
||||
<h2 id="org651d39a"><span class="section-number-2">1</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org6b1f165" class="outline-2">
|
||||
<h2 id="org6b1f165"><span class="section-number-2">1</span> Using QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The <code>qmckl.h</code> header file has to be included in C codes when
|
||||
@ -385,12 +385,12 @@ Both files are located in the <code>include/</code> directory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2e58781" class="outline-2">
|
||||
<h2 id="org2e58781"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-orgf6b850a" class="outline-2">
|
||||
<h2 id="orgf6b850a"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgd5c6f98" class="outline-3">
|
||||
<h3 id="orgd5c6f98"><span class="section-number-3">2.1</span> Literate programming</h3>
|
||||
<div id="outline-container-orgf068d73" class="outline-3">
|
||||
<h3 id="orgf068d73"><span class="section-number-3">2.1</span> Literate programming</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
In a traditional source code, most of the lines of source files of a program
|
||||
@ -436,8 +436,8 @@ interactively, in the same spirit as Jupyter notebooks.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgef2320b" class="outline-3">
|
||||
<h3 id="orgef2320b"><span class="section-number-3">2.2</span> Source code editing</h3>
|
||||
<div id="outline-container-org481f2ee" class="outline-3">
|
||||
<h3 id="org481f2ee"><span class="section-number-3">2.2</span> Source code editing</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
For a tutorial on literate programming with org-mode, follow <a href="http://www.howardism.org/Technical/Emacs/literate-programming-tutorial.html">this link</a>.
|
||||
@ -469,8 +469,8 @@ org-mode.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgb98bdd1" class="outline-3">
|
||||
<h3 id="orgb98bdd1"><span class="section-number-3">2.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-orge8f3f5d" class="outline-3">
|
||||
<h3 id="orge8f3f5d"><span class="section-number-3">2.3</span> Choice of the programming language</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Most of the codes of the <a href="https://trex-coe.eu">TREX CoE</a> are written in Fortran with some scripts in
|
||||
@ -518,8 +518,8 @@ For more guidelines on using Fortran to generate a C interface, see
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9612495" class="outline-3">
|
||||
<h3 id="org9612495"><span class="section-number-3">2.4</span> Coding rules</h3>
|
||||
<div id="outline-container-orgdf4fbfb" class="outline-3">
|
||||
<h3 id="orgdf4fbfb"><span class="section-number-3">2.4</span> Coding rules</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
The authors should follow the recommendations of the
|
||||
@ -535,8 +535,8 @@ freed</li>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgd2c4524" class="outline-3">
|
||||
<h3 id="orgd2c4524"><span class="section-number-3">2.5</span> Design of the library</h3>
|
||||
<div id="outline-container-org7fffd37" class="outline-3">
|
||||
<h3 id="org7fffd37"><span class="section-number-3">2.5</span> Design of the library</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
The proposed API should allow the library to: deal with memory transfers
|
||||
@ -547,8 +547,8 @@ functions (see below).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd1be4ca" class="outline-3">
|
||||
<h3 id="orgd1be4ca"><span class="section-number-3">2.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-org6a79703" class="outline-3">
|
||||
<h3 id="org6a79703"><span class="section-number-3">2.6</span> Naming conventions</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
To avoid namespace collisions, we use <code>qmckl_</code> as a prefix for all exported
|
||||
@ -573,8 +573,8 @@ form is allowed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd2f4a9a" class="outline-3">
|
||||
<h3 id="orgd2f4a9a"><span class="section-number-3">2.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-orgfb1bd33" class="outline-3">
|
||||
<h3 id="orgfb1bd33"><span class="section-number-3">2.7</span> Application programming interface</h3>
|
||||
<div class="outline-text-3" id="text-2-7">
|
||||
<p>
|
||||
In the C language, the number of bits used by the integer types can change
|
||||
@ -607,15 +607,15 @@ bindings in other languages in other repositories.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org83249fd" class="outline-3">
|
||||
<h3 id="org83249fd"><span class="section-number-3">2.8</span> Global state</h3>
|
||||
<div id="outline-container-org57d8607" class="outline-3">
|
||||
<h3 id="org57d8607"><span class="section-number-3">2.8</span> Global state</h3>
|
||||
<div class="outline-text-3" id="text-2-8">
|
||||
<p>
|
||||
Global variables should be avoided in the library, because it is
|
||||
possible that one single program needs to use multiple instances
|
||||
of the library. To solve this problem we propose to use a pointer
|
||||
to a <a href="./qmckl_context.html"><code>context</code></a> variable, built by the library with the
|
||||
<code>qmckl_context_create</code> function. The <a id="org776fed0">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="org1c026ec">=context=</a> contains the global
|
||||
state of the library, and is used as the first argument of many
|
||||
QMCkl functions.
|
||||
</p>
|
||||
@ -635,8 +635,8 @@ versions can be destroyed with <code>qmckl_context_destroy</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4068345" class="outline-3">
|
||||
<h3 id="org4068345"><span class="section-number-3">2.9</span> Low-level functions</h3>
|
||||
<div id="outline-container-org7aa1e5e" class="outline-3">
|
||||
<h3 id="org7aa1e5e"><span class="section-number-3">2.9</span> Low-level functions</h3>
|
||||
<div class="outline-text-3" id="text-2-9">
|
||||
<p>
|
||||
Low-level functions are very simple functions which are leaves of
|
||||
@ -645,14 +645,14 @@ the function call tree (they don't call any other QMCkl function).
|
||||
|
||||
<p>
|
||||
These functions are <i>pure</i>, and unaware of the QMCkl
|
||||
<a href="#org776fed0"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#org1c026ec"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
if they need temporary memory it should be provided in input.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1a8d2e6" class="outline-3">
|
||||
<h3 id="org1a8d2e6"><span class="section-number-3">2.10</span> High-level functions</h3>
|
||||
<div id="outline-container-orgbd5d6e3" class="outline-3">
|
||||
<h3 id="orgbd5d6e3"><span class="section-number-3">2.10</span> High-level functions</h3>
|
||||
<div class="outline-text-3" id="text-2-10">
|
||||
<p>
|
||||
High-level functions are at the top of the function call tree.
|
||||
@ -665,27 +665,27 @@ temporary storage, to simplify the use of accelerators.
|
||||
<p>
|
||||
The high-level functions should be pure, unless the introduction
|
||||
of non-purity is justified. All the side effects should be made in
|
||||
the <a href="#org776fed0"><code>context</code></a> variable.
|
||||
the <a href="#org1c026ec"><code>context</code></a> variable.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd559b6" class="outline-3">
|
||||
<h3 id="orgbd559b6"><span class="section-number-3">2.11</span> Numerical precision</h3>
|
||||
<div id="outline-container-orgea083c4" class="outline-3">
|
||||
<h3 id="orgea083c4"><span class="section-number-3">2.11</span> Numerical precision</h3>
|
||||
<div class="outline-text-3" id="text-2-11">
|
||||
<p>
|
||||
The number of bits of precision required for a function should be
|
||||
given as an input of low-level computational functions. This input
|
||||
will be used to define the values of the different thresholds that
|
||||
might be used to avoid computing unnecessary noise. High-level
|
||||
functions will use the precision specified in the <a href="#org776fed0"><code>context</code></a>
|
||||
functions will use the precision specified in the <a href="#org1c026ec"><code>context</code></a>
|
||||
variable.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf3b0ef0" class="outline-3">
|
||||
<h3 id="orgf3b0ef0"><span class="section-number-3">2.12</span> Algorithms</h3>
|
||||
<div id="outline-container-org51b9002" class="outline-3">
|
||||
<h3 id="org51b9002"><span class="section-number-3">2.12</span> Algorithms</h3>
|
||||
<div class="outline-text-3" id="text-2-12">
|
||||
<p>
|
||||
Reducing the scaling of an algorithm usually implies also reducing
|
||||
@ -698,8 +698,8 @@ implemented adapted to different problem sizes.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6c0f6fc" class="outline-3">
|
||||
<h3 id="org6c0f6fc"><span class="section-number-3">2.13</span> Rules for the API</h3>
|
||||
<div id="outline-container-orgd9a567b" class="outline-3">
|
||||
<h3 id="orgd9a567b"><span class="section-number-3">2.13</span> Rules for the API</h3>
|
||||
<div class="outline-text-3" id="text-2-13">
|
||||
<ul class="org-ul">
|
||||
<li><code>stdint</code> should be used for integers (<code>int32_t</code>, <code>int64_t</code>)</li>
|
||||
@ -713,7 +713,7 @@ implemented adapted to different problem sizes.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-03-23 Tue 21:25</p>
|
||||
<p class="date">Created: 2021-03-28 Sun 23:18</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-03-23 Tue 21:25 -->
|
||||
<!-- 2021-03-28 Sun 23:18 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Atomic Orbitals</title>
|
||||
@ -333,14 +333,14 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org74e721f">1. Polynomial part</a>
|
||||
<li><a href="#orgc4abd52">1. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#org33d5013">1.1. Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org4b2a3e5">1.2. Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#org8b960fb">1.1. Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#orge7c59d8">1.2. Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb815dab">2. Gaussian basis functions</a></li>
|
||||
<li><a href="#org4766aa5">3. <span class="todo TODO">TODO</span> Slater basis functions</a></li>
|
||||
<li><a href="#orge821a51">2. Gaussian basis functions</a></li>
|
||||
<li><a href="#org01c63ff">3. <span class="todo TODO">TODO</span> Slater basis functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@ -356,7 +356,7 @@ Gaussian (\(p=2\)):
|
||||
\[
|
||||
R_s(\mathbf{r}) = \mathcal{N}_s |\mathbf{r}-\mathbf{R}_A|^{n_s}
|
||||
\sum_{k=1}^{N_{\text{prim}}} a_{ks}
|
||||
\exp \left( - \gamma_{ks} | \mathbf{r}-\mathbf{R}_A | ^p \right). |
|
||||
\exp \left( - \gamma_{ks} | \mathbf{r}-\mathbf{R}_A | ^p \right).
|
||||
\]
|
||||
</p>
|
||||
|
||||
@ -389,12 +389,12 @@ In this section we describe the kernels used to compute the values,
|
||||
gradients and Laplacian of the atomic basis functions.
|
||||
</p>
|
||||
|
||||
<div id="outline-container-org74e721f" class="outline-2">
|
||||
<h2 id="org74e721f"><span class="section-number-2">1</span> Polynomial part</h2>
|
||||
<div id="outline-container-orgc4abd52" class="outline-2">
|
||||
<h2 id="orgc4abd52"><span class="section-number-2">1</span> Polynomial part</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org33d5013" class="outline-3">
|
||||
<h3 id="org33d5013"><span class="section-number-3">1.1</span> Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-org8b960fb" class="outline-3">
|
||||
<h3 id="org8b960fb"><span class="section-number-3">1.1</span> Powers of \(x-X_i\)</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
The <code>qmckl_ao_power</code> function computes all the powers of the <code>n</code>
|
||||
@ -574,8 +574,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4b2a3e5" class="outline-3">
|
||||
<h3 id="org4b2a3e5"><span class="section-number-3">1.2</span> Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-orge7c59d8" class="outline-3">
|
||||
<h3 id="orge7c59d8"><span class="section-number-3">1.2</span> Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
A polynomial is centered on a nucleus \(\mathbf{R}_i\)
|
||||
@ -960,8 +960,8 @@ munit_assert_int(0, ==, test_qmckl_ao_polynomial_vgl(context));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb815dab" class="outline-2">
|
||||
<h2 id="orgb815dab"><span class="section-number-2">2</span> Gaussian basis functions</h2>
|
||||
<div id="outline-container-orge821a51" class="outline-2">
|
||||
<h2 id="orge821a51"><span class="section-number-2">2</span> Gaussian basis functions</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
<code>qmckl_ao_gaussian_vgl</code> computes the values, gradients and
|
||||
@ -1009,7 +1009,7 @@ the same point:
|
||||
<tr>
|
||||
<td class="org-left"><code>n</code></td>
|
||||
<td class="org-left">input</td>
|
||||
<td class="org-left">Number of computed gaussians</td>
|
||||
<td class="org-left">Number of computed Gaussians</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@ -1193,13 +1193,13 @@ Requirements :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4766aa5" class="outline-2">
|
||||
<h2 id="org4766aa5"><span class="section-number-2">3</span> <span class="todo TODO">TODO</span> Slater basis functions</h2>
|
||||
<div id="outline-container-org01c63ff" class="outline-2">
|
||||
<h2 id="org01c63ff"><span class="section-number-2">3</span> <span class="todo TODO">TODO</span> Slater basis functions</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-03-23 Tue 21:25</p>
|
||||
<p class="date">Created: 2021-03-28 Sun 23:18</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-03-23 Tue 21:25 -->
|
||||
<!-- 2021-03-28 Sun 23:18 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Context</title>
|
||||
@ -333,51 +333,51 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org1f8bb26">1. Context handling</a>
|
||||
<li><a href="#org2bb9568">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#org1bd1546">1.1. Data structure</a></li>
|
||||
<li><a href="#org547611c">1.2. Creation</a></li>
|
||||
<li><a href="#orgab98e7e">1.3. Access to the previous context</a></li>
|
||||
<li><a href="#orgce17ec2">1.4. Locking</a></li>
|
||||
<li><a href="#org54cd706">1.5. Copy</a></li>
|
||||
<li><a href="#org96d5107">1.6. Destroy</a></li>
|
||||
<li><a href="#org1d06117">1.1. Data structure</a></li>
|
||||
<li><a href="#org7a3ab61">1.2. Creation</a></li>
|
||||
<li><a href="#org45b9874">1.3. Access to the previous context</a></li>
|
||||
<li><a href="#org4f1dd7a">1.4. Locking</a></li>
|
||||
<li><a href="#orgc505719">1.5. Copy</a></li>
|
||||
<li><a href="#org8dabc32">1.6. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7dfa449">2. Memory allocation handling</a>
|
||||
<li><a href="#org83c6d7f">2. Memory allocation handling</a>
|
||||
<ul>
|
||||
<li><a href="#org7f68145">2.1. Data structure</a></li>
|
||||
<li><a href="#orgfe2faa6">2.2. Append memory</a></li>
|
||||
<li><a href="#org6673d49">2.3. Remove memory</a></li>
|
||||
<li><a href="#orgc4c4ede">2.1. Data structure</a></li>
|
||||
<li><a href="#orgbef83e3">2.2. Append memory</a></li>
|
||||
<li><a href="#org78687dd">2.3. Remove memory</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8ced40f">3. Error handling</a>
|
||||
<li><a href="#orgabd4876">3. Error handling</a>
|
||||
<ul>
|
||||
<li><a href="#orge0001cb">3.1. Data structure</a></li>
|
||||
<li><a href="#org73c6984">3.2. Updating errors</a></li>
|
||||
<li><a href="#org1e7b74a">3.1. Data structure</a></li>
|
||||
<li><a href="#org2a236d9">3.2. Updating errors</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb5bac03">4. Control of the numerical precision</a>
|
||||
<li><a href="#org4dcb9eb">4. Control of the numerical precision</a>
|
||||
<ul>
|
||||
<li><a href="#org14623c0">4.1. Precision</a></li>
|
||||
<li><a href="#org63c3be2">4.2. Range</a></li>
|
||||
<li><a href="#org7e8d441">4.3. Helper functions</a></li>
|
||||
<li><a href="#org01c5d0e">4.1. Precision</a></li>
|
||||
<li><a href="#orgcda4f1b">4.2. Range</a></li>
|
||||
<li><a href="#org800591a">4.3. Helper functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org726b951">5. <span class="todo TODO">TODO</span> Basis set</a>
|
||||
<li><a href="#org61ec0f1">5. <span class="todo TODO">TODO</span> Basis set</a>
|
||||
<ul>
|
||||
<li><a href="#org8ce7135">5.1. Data structure</a></li>
|
||||
<li><a href="#org03947a0">5.2. <code>qmckl_context_update_ao_basis</code></a>
|
||||
<li><a href="#org11c949f">5.1. Data structure</a></li>
|
||||
<li><a href="#org62a4ccd">5.2. <code>qmckl_context_update_ao_basis</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgc421adc">5.2.1. Source</a></li>
|
||||
<li><a href="#orge6b3490">5.2.2. Fortran interface</a></li>
|
||||
<li><a href="#org2e8acd6">5.2.3. <span class="todo TODO">TODO</span> Test</a></li>
|
||||
<li><a href="#org909ff76">5.2.1. Source</a></li>
|
||||
<li><a href="#org35884b5">5.2.2. Fortran interface</a></li>
|
||||
<li><a href="#orgb373341">5.2.3. <span class="todo TODO">TODO</span> Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8a4e904">5.3. <code>qmckl_context_set_ao_basis</code></a>
|
||||
<li><a href="#orgf72eb2a">5.3. <code>qmckl_context_set_ao_basis</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgf7bcf78">5.3.1. Source</a></li>
|
||||
<li><a href="#org35cd041">5.3.2. Fortran interface</a></li>
|
||||
<li><a href="#org970a631">5.3.3. <span class="todo TODO">TODO</span> Test</a></li>
|
||||
<li><a href="#orga43f1ee">5.3.1. Source</a></li>
|
||||
<li><a href="#org6ffae6d">5.3.2. Fortran interface</a></li>
|
||||
<li><a href="#orgbf0c658">5.3.3. <span class="todo TODO">TODO</span> Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -401,8 +401,8 @@ A value of <code>QMCKL_NULL_CONTEXT</code> for the context is equivalent to a
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1f8bb26" class="outline-2">
|
||||
<h2 id="org1f8bb26"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org2bb9568" class="outline-2">
|
||||
<h2 id="org2bb9568"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The context appears as an immutable data structure: modifying a
|
||||
@ -419,8 +419,8 @@ and <code>ctx</code> is a <code>qmckl_context_struct*</code> pointer.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1bd1546" class="outline-3">
|
||||
<h3 id="org1bd1546"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org1d06117" class="outline-3">
|
||||
<h3 id="org1d06117"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
The main data structure contains pointers to other data structures,
|
||||
@ -430,7 +430,7 @@ pointers.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org529e80c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_context_struct</span> {
|
||||
<pre class="src src-c" id="org20c4d9e"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_context_struct</span> {
|
||||
|
||||
/* <span style="color: #b22222;">Pointer to the previous context, before modification </span>*/
|
||||
<span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_context_struct</span> * <span style="color: #a0522d;">prev</span>;
|
||||
@ -510,8 +510,8 @@ if the context is valid, <code>QMCKL_NULL_CONTEXT</code> otherwise.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org547611c" class="outline-3">
|
||||
<h3 id="org547611c"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-org7a3ab61" class="outline-3">
|
||||
<h3 id="org7a3ab61"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
@ -549,8 +549,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgab98e7e" class="outline-3">
|
||||
<h3 id="orgab98e7e"><span class="section-number-3">1.3</span> Access to the previous context</h3>
|
||||
<div id="outline-container-org45b9874" class="outline-3">
|
||||
<h3 id="org45b9874"><span class="section-number-3">1.3</span> Access to the previous context</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
<code>qmckl_context_previous</code> returns the previous context. It returns
|
||||
@ -572,8 +572,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgce17ec2" class="outline-3">
|
||||
<h3 id="orgce17ec2"><span class="section-number-3">1.4</span> Locking</h3>
|
||||
<div id="outline-container-org4f1dd7a" class="outline-3">
|
||||
<h3 id="org4f1dd7a"><span class="section-number-3">1.4</span> Locking</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
For thread safety, the context may be locked/unlocked. The lock is
|
||||
@ -633,8 +633,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org54cd706" class="outline-3">
|
||||
<h3 id="org54cd706"><span class="section-number-3">1.5</span> Copy</h3>
|
||||
<div id="outline-container-orgc505719" class="outline-3">
|
||||
<h3 id="orgc505719"><span class="section-number-3">1.5</span> Copy</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
<code>qmckl_context_copy</code> makes a shallow copy of a context. It returns
|
||||
@ -680,8 +680,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org96d5107" class="outline-3">
|
||||
<h3 id="org96d5107"><span class="section-number-3">1.6</span> Destroy</h3>
|
||||
<div id="outline-container-org8dabc32" class="outline-3">
|
||||
<h3 id="org8dabc32"><span class="section-number-3">1.6</span> Destroy</h3>
|
||||
<div class="outline-text-3" id="text-1-6">
|
||||
<p>
|
||||
The context is destroyed with <code>qmckl_context_destroy</code>, leaving the ancestors untouched.
|
||||
@ -716,9 +716,7 @@ It frees the context, and returns the previous context.
|
||||
|
||||
<span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">rc</span>;
|
||||
rc = qmckl_context_remove_memory(context,ctx);
|
||||
/*
|
||||
<span style="color: #b22222;"> assert (rc == QMCKL_SUCCESS);</span>
|
||||
<span style="color: #b22222;"> </span>*/
|
||||
assert (rc == QMCKL_SUCCESS);
|
||||
|
||||
ctx->tag = INVALID_TAG;
|
||||
|
||||
@ -731,9 +729,6 @@ It frees the context, and returns the previous context.
|
||||
rc = qmckl_free(context,ctx);
|
||||
assert (rc == QMCKL_SUCCESS);
|
||||
|
||||
//<span style="color: #b22222;">memset(ctx, 0, sizeof(qmckl_context_struct));</span>
|
||||
|
||||
|
||||
<span style="color: #a020f0;">return</span> prev_context;
|
||||
}
|
||||
</pre>
|
||||
@ -741,12 +736,12 @@ It frees the context, and returns the previous context.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7dfa449" class="outline-2">
|
||||
<h2 id="org7dfa449"><span class="section-number-2">2</span> Memory allocation handling</h2>
|
||||
<div id="outline-container-org83c6d7f" class="outline-2">
|
||||
<h2 id="org83c6d7f"><span class="section-number-2">2</span> Memory allocation handling</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org7f68145" class="outline-3">
|
||||
<h3 id="org7f68145"><span class="section-number-3">2.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgc4c4ede" class="outline-3">
|
||||
<h3 id="orgc4c4ede"><span class="section-number-3">2.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
Pointers to all allocated memory domains are stored in the context,
|
||||
@ -755,7 +750,7 @@ computation of the amount of currently used memory by the library.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org44c9f15"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_memory_struct</span> {
|
||||
<pre class="src src-c" id="org049e366"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_memory_struct</span> {
|
||||
<span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_memory_struct</span> * <span style="color: #a0522d;">next</span> ;
|
||||
<span style="color: #228b22;">void</span> * <span style="color: #a0522d;">pointer</span> ;
|
||||
<span style="color: #228b22;">size_t</span> <span style="color: #a0522d;">size</span> ;
|
||||
@ -765,8 +760,8 @@ computation of the amount of currently used memory by the library.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfe2faa6" class="outline-3">
|
||||
<h3 id="orgfe2faa6"><span class="section-number-3">2.2</span> Append memory</h3>
|
||||
<div id="outline-container-orgbef83e3" class="outline-3">
|
||||
<h3 id="orgbef83e3"><span class="section-number-3">2.2</span> Append memory</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The following function, called in <a href="./qmckl_memory.html"><code>qmckl_memory.c</code></a>, appends a new
|
||||
@ -808,7 +803,7 @@ immediately with <code>QMCKL_SUCCESS</code>.
|
||||
<span style="color: #a020f0;">if</span> (alloc == <span style="color: #008b8b;">NULL</span>) {
|
||||
ctx->alloc = new_alloc;
|
||||
} <span style="color: #a020f0;">else</span> {
|
||||
<span style="color: #a020f0;">while</span> (alloc != <span style="color: #008b8b;">NULL</span>) {
|
||||
<span style="color: #a020f0;">while</span> (alloc->next != <span style="color: #008b8b;">NULL</span>) {
|
||||
alloc = alloc->next;
|
||||
}
|
||||
alloc->next = new_alloc;
|
||||
@ -824,8 +819,8 @@ immediately with <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6673d49" class="outline-3">
|
||||
<h3 id="org6673d49"><span class="section-number-3">2.3</span> Remove memory</h3>
|
||||
<div id="outline-container-org78687dd" class="outline-3">
|
||||
<h3 id="org78687dd"><span class="section-number-3">2.3</span> Remove memory</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
The following function, called in <a href="./qmckl_memory.html"><code>qmckl_memory.c</code></a>, removes a
|
||||
@ -876,15 +871,15 @@ immediately with <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8ced40f" class="outline-2">
|
||||
<h2 id="org8ced40f"><span class="section-number-2">3</span> Error handling</h2>
|
||||
<div id="outline-container-orgabd4876" class="outline-2">
|
||||
<h2 id="orgabd4876"><span class="section-number-2">3</span> Error handling</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orge0001cb" class="outline-3">
|
||||
<h3 id="orge0001cb"><span class="section-number-3">3.1</span> Data structure</h3>
|
||||
<div id="outline-container-org1e7b74a" class="outline-3">
|
||||
<h3 id="org1e7b74a"><span class="section-number-3">3.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org8d8d369"><span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">QMCKL_MAX_FUN_LEN</span> 256
|
||||
<pre class="src src-c" id="org26fba74"><span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">QMCKL_MAX_FUN_LEN</span> 256
|
||||
<span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">QMCKL_MAX_MSG_LEN</span> 1024
|
||||
|
||||
<span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_error_struct</span> {
|
||||
@ -899,8 +894,8 @@ immediately with <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org73c6984" class="outline-3">
|
||||
<h3 id="org73c6984"><span class="section-number-3">3.2</span> Updating errors</h3>
|
||||
<div id="outline-container-org2a236d9" class="outline-3">
|
||||
<h3 id="org2a236d9"><span class="section-number-3">3.2</span> Updating errors</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<p>
|
||||
The error is updated in the context using
|
||||
@ -943,8 +938,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
<span style="color: #228b22;">qmckl_error_struct</span>* <span style="color: #a0522d;">error</span> =
|
||||
(<span style="color: #228b22;">qmckl_error_struct</span>*) <span style="color: #0000ff;">qmckl_malloc</span> (context, <span style="color: #a020f0;">sizeof</span>(<span style="color: #228b22;">qmckl_error_struct</span>));
|
||||
error->exit_code = exit_code;
|
||||
strcpy(error->function, function_name);
|
||||
strcpy(error->message, message);
|
||||
strncpy(error->function, function_name, QMCKL_MAX_FUN_LEN);
|
||||
strncpy(error->message, message, QMCKL_MAX_MSG_LEN);
|
||||
|
||||
ctx->error = error;
|
||||
|
||||
@ -1049,8 +1044,8 @@ For example, this function can be used as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb5bac03" class="outline-2">
|
||||
<h2 id="orgb5bac03"><span class="section-number-2">4</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org4dcb9eb" class="outline-2">
|
||||
<h2 id="org4dcb9eb"><span class="section-number-2">4</span> Control of the numerical precision</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
Controlling numerical precision enables optimizations. Here, the
|
||||
@ -1058,7 +1053,7 @@ default parameters determining the target numerical precision and
|
||||
range are defined.
|
||||
</p>
|
||||
|
||||
<table id="org6c6e25f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org45e9725" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1080,8 +1075,7 @@ range are defined.
|
||||
</table>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python"><span style="color: #8b2252;">""" This script generates the C and Fortran constants for the error</span>
|
||||
<span style="color: #8b2252;"> codes from the org-mode table.</span>
|
||||
<pre class="src src-python"><span style="color: #8b2252;">""" This script generates the C and Fortran constants from the org-mode table.</span>
|
||||
<span style="color: #8b2252;">"""</span>
|
||||
|
||||
<span style="color: #a0522d;">result</span> = [ <span style="color: #8b2252;">"#+begin_src c :comments org :tangle (eval h)"</span> ]
|
||||
@ -1104,7 +1098,7 @@ range are defined.
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org4ec6b22"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_precision_struct</span> {
|
||||
<pre class="src src-c" id="orgc8f765b"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_precision_struct</span> {
|
||||
<span style="color: #228b22;">int</span> <span style="color: #a0522d;">precision</span>;
|
||||
<span style="color: #228b22;">int</span> <span style="color: #a0522d;">range</span>;
|
||||
} <span style="color: #228b22;">qmckl_precision_struct</span>;
|
||||
@ -1125,8 +1119,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org14623c0" class="outline-3">
|
||||
<h3 id="org14623c0"><span class="section-number-3">4.1</span> Precision</h3>
|
||||
<div id="outline-container-org01c5d0e" class="outline-3">
|
||||
<h3 id="org01c5d0e"><span class="section-number-3">4.1</span> Precision</h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
<code>qmckl_context_update_precision</code> modifies the parameter for the
|
||||
@ -1172,8 +1166,6 @@ precision set yet, the default values are used.
|
||||
<span style="color: #8b2252;">"qmckl_context_update_precision"</span>,
|
||||
<span style="color: #8b2252;">"ctx->fp"</span>);
|
||||
}
|
||||
|
||||
ctx->fp->precision = QMCKL_DEFAULT_PRECISION;
|
||||
ctx->fp->range = QMCKL_DEFAULT_RANGE;
|
||||
}
|
||||
|
||||
@ -1248,8 +1240,8 @@ different precision parameter.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org63c3be2" class="outline-3">
|
||||
<h3 id="org63c3be2"><span class="section-number-3">4.2</span> Range</h3>
|
||||
<div id="outline-container-orgcda4f1b" class="outline-3">
|
||||
<h3 id="orgcda4f1b"><span class="section-number-3">4.2</span> Range</h3>
|
||||
<div class="outline-text-3" id="text-4-2">
|
||||
<p>
|
||||
<code>qmckl_context_update_range</code> modifies the parameter for the numerical range in a given context.
|
||||
@ -1295,7 +1287,6 @@ different precision parameter.
|
||||
}
|
||||
|
||||
ctx->fp->precision = QMCKL_DEFAULT_PRECISION;
|
||||
ctx->fp->range = QMCKL_DEFAULT_RANGE;
|
||||
}
|
||||
|
||||
ctx->fp->range = range;
|
||||
@ -1357,8 +1348,8 @@ different precision parameter.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7e8d441" class="outline-3">
|
||||
<h3 id="org7e8d441"><span class="section-number-3">4.3</span> Helper functions</h3>
|
||||
<div id="outline-container-org800591a" class="outline-3">
|
||||
<h3 id="org800591a"><span class="section-number-3">4.3</span> Helper functions</h3>
|
||||
<div class="outline-text-3" id="text-4-3">
|
||||
<p>
|
||||
<code>qmckl_context_get_epsilon</code> returns \(\epsilon = 2^{1-n}\) where <code>n</code> is the precision.
|
||||
@ -1374,8 +1365,8 @@ different precision parameter.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org726b951" class="outline-2">
|
||||
<h2 id="org726b951"><span class="section-number-2">5</span> <span class="todo TODO">TODO</span> Basis set</h2>
|
||||
<div id="outline-container-org61ec0f1" class="outline-2">
|
||||
<h2 id="org61ec0f1"><span class="section-number-2">5</span> <span class="todo TODO">TODO</span> Basis set</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
<p>
|
||||
For H<sub>2</sub> with the following basis set,
|
||||
@ -1422,11 +1413,11 @@ COEFFICIENT = [ 0.006068, 0.045308, 0.202822, 0.503903, 0.383421,
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8ce7135" class="outline-3">
|
||||
<h3 id="org8ce7135"><span class="section-number-3">5.1</span> Data structure</h3>
|
||||
<div id="outline-container-org11c949f" class="outline-3">
|
||||
<h3 id="org11c949f"><span class="section-number-3">5.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="orgd0c68c6"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_ao_basis_struct</span> {
|
||||
<pre class="src src-c" id="org26ac866"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_ao_basis_struct</span> {
|
||||
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">shell_num</span>;
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">prim_num</span>;
|
||||
@ -1444,8 +1435,8 @@ COEFFICIENT = [ 0.006068, 0.045308, 0.202822, 0.503903, 0.383421,
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org03947a0" class="outline-3">
|
||||
<h3 id="org03947a0"><span class="section-number-3">5.2</span> <code>qmckl_context_update_ao_basis</code></h3>
|
||||
<div id="outline-container-org62a4ccd" class="outline-3">
|
||||
<h3 id="org62a4ccd"><span class="section-number-3">5.2</span> <code>qmckl_context_update_ao_basis</code></h3>
|
||||
<div class="outline-text-3" id="text-5-2">
|
||||
<p>
|
||||
Updates the data describing the AO basis set into the context.
|
||||
@ -1529,8 +1520,8 @@ Updates the data describing the AO basis set into the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc421adc" class="outline-4">
|
||||
<h4 id="orgc421adc"><span class="section-number-4">5.2.1</span> Source</h4>
|
||||
<div id="outline-container-org909ff76" class="outline-4">
|
||||
<h4 id="org909ff76"><span class="section-number-4">5.2.1</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1677,8 +1668,8 @@ Updates the data describing the AO basis set into the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge6b3490" class="outline-4">
|
||||
<h4 id="orge6b3490"><span class="section-number-4">5.2.2</span> Fortran interface</h4>
|
||||
<div id="outline-container-org35884b5" class="outline-4">
|
||||
<h4 id="org35884b5"><span class="section-number-4">5.2.2</span> Fortran interface</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||
@ -1704,13 +1695,13 @@ Updates the data describing the AO basis set into the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2e8acd6" class="outline-4">
|
||||
<h4 id="org2e8acd6"><span class="section-number-4">5.2.3</span> <span class="todo TODO">TODO</span> Test</h4>
|
||||
<div id="outline-container-orgb373341" class="outline-4">
|
||||
<h4 id="orgb373341"><span class="section-number-4">5.2.3</span> <span class="todo TODO">TODO</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8a4e904" class="outline-3">
|
||||
<h3 id="org8a4e904"><span class="section-number-3">5.3</span> <code>qmckl_context_set_ao_basis</code></h3>
|
||||
<div id="outline-container-orgf72eb2a" class="outline-3">
|
||||
<h3 id="orgf72eb2a"><span class="section-number-3">5.3</span> <code>qmckl_context_set_ao_basis</code></h3>
|
||||
<div class="outline-text-3" id="text-5-3">
|
||||
<p>
|
||||
Sets the data describing the AO basis set into the context.
|
||||
@ -1789,8 +1780,8 @@ Sets the data describing the AO basis set into the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf7bcf78" class="outline-4">
|
||||
<h4 id="orgf7bcf78"><span class="section-number-4">5.3.1</span> Source</h4>
|
||||
<div id="outline-container-orga43f1ee" class="outline-4">
|
||||
<h4 id="orga43f1ee"><span class="section-number-4">5.3.1</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-5-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_context</span>
|
||||
@ -1819,8 +1810,8 @@ Sets the data describing the AO basis set into the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org35cd041" class="outline-4">
|
||||
<h4 id="org35cd041"><span class="section-number-4">5.3.2</span> Fortran interface</h4>
|
||||
<div id="outline-container-org6ffae6d" class="outline-4">
|
||||
<h4 id="org6ffae6d"><span class="section-number-4">5.3.2</span> Fortran interface</h4>
|
||||
<div class="outline-text-4" id="text-5-3-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||
@ -1846,15 +1837,15 @@ Sets the data describing the AO basis set into the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org970a631" class="outline-4">
|
||||
<h4 id="org970a631"><span class="section-number-4">5.3.3</span> <span class="todo TODO">TODO</span> Test</h4>
|
||||
<div id="outline-container-orgbf0c658" class="outline-4">
|
||||
<h4 id="orgbf0c658"><span class="section-number-4">5.3.3</span> <span class="todo TODO">TODO</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-03-23 Tue 21:25</p>
|
||||
<p class="date">Created: 2021-03-28 Sun 23:18</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-03-23 Tue 21:25 -->
|
||||
<!-- 2021-03-28 Sun 23:18 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Inter-particle distances</title>
|
||||
@ -333,14 +333,14 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org032975d">1. Squared distance</a>
|
||||
<li><a href="#org5016c73">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org2c50595">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#org116046e">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgba09c81">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org368ed4b">1.1.2. C header</a></li>
|
||||
<li><a href="#orgc679945">1.1.3. Source</a></li>
|
||||
<li><a href="#org7ca276c">1.1.4. Performance</a></li>
|
||||
<li><a href="#orgd7bf86f">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org9cb72e0">1.1.2. C header</a></li>
|
||||
<li><a href="#org4a84f44">1.1.3. Source</a></li>
|
||||
<li><a href="#org6752097">1.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -352,12 +352,12 @@ for the JavaScript code in this tag.
|
||||
Functions for the computation of distances between particles.
|
||||
</p>
|
||||
|
||||
<div id="outline-container-org032975d" class="outline-2">
|
||||
<h2 id="org032975d"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-org5016c73" class="outline-2">
|
||||
<h2 id="org5016c73"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org2c50595" class="outline-3">
|
||||
<h3 id="org2c50595"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-org116046e" class="outline-3">
|
||||
<h3 id="org116046e"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
<code>qmckl_distance_sq</code> computes the matrix of the squared distances
|
||||
@ -370,7 +370,7 @@ between all pairs of points in two sets, one point within each set:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org16ca596" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org01bacbb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -463,8 +463,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgba09c81" class="outline-4">
|
||||
<h4 id="orgba09c81"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgd7bf86f" class="outline-4">
|
||||
<h4 id="orgd7bf86f"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-1-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -482,8 +482,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org368ed4b" class="outline-4">
|
||||
<h4 id="org368ed4b"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div id="outline-container-org9cb72e0" class="outline-4">
|
||||
<h4 id="org9cb72e0"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-1-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_sq</span> (
|
||||
@ -503,8 +503,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc679945" class="outline-4">
|
||||
<h4 id="orgc679945"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div id="outline-container-org4a84f44" class="outline-4">
|
||||
<h4 id="org4a84f44"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-1-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer </span><span style="color: #a020f0;">function</span><span style="color: #a0522d;"> </span><span style="color: #0000ff;">qmckl_distance_sq_f</span><span style="color: #000000; background-color: #ffffff;">(context, transa, transb, m, n, A, LDA, B, LDB, C, LDC) result(info)</span>
|
||||
@ -637,8 +637,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7ca276c" class="outline-4">
|
||||
<h4 id="org7ca276c"><span class="section-number-4">1.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org6752097" class="outline-4">
|
||||
<h4 id="org6752097"><span class="section-number-4">1.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-1-1-4">
|
||||
<p>
|
||||
This function might be more efficient when <code>A</code> and <code>B</code> are
|
||||
@ -651,7 +651,7 @@ transposed.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-03-23 Tue 21:25</p>
|
||||
<p class="date">Created: 2021-03-28 Sun 23:18</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-03-23 Tue 21:25 -->
|
||||
<!-- 2021-03-28 Sun 23:18 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Error handling</title>
|
||||
@ -311,14 +311,14 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org501b090"></a></li>
|
||||
<li><a href="#org6363679"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org501b090" class="outline-2">
|
||||
<h2 id="org501b090"></h2>
|
||||
<div class="outline-text-2" id="text-org501b090">
|
||||
<div id="outline-container-org6363679" class="outline-2">
|
||||
<h2 id="org6363679"></h2>
|
||||
<div class="outline-text-2" id="text-org6363679">
|
||||
<p>
|
||||
The library should never make the calling programs abort, nor
|
||||
perform any input/output operations. This decision has to be taken
|
||||
@ -329,7 +329,7 @@ by the developer of the code calling the library.
|
||||
All the functions return with an exit code, defined as
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="orgd5bcfb2"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||
<pre class="src src-c" id="orga46fae3"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -345,7 +345,7 @@ error code is returned to the program.
|
||||
Here is the complete list of exit codes.
|
||||
</p>
|
||||
|
||||
<table id="org5ecae54" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9825e0c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -484,61 +484,59 @@ The text strings are extracted from the previous table.
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">void</span> <span style="color: #0000ff;">qmckl_string_of_error</span>(<span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">error</span>, <span style="color: #228b22;">char</span> <span style="color: #a0522d;">string</span>[128]) {
|
||||
<span style="color: #228b22;">char</span>* <span style="color: #a0522d;">message</span>;
|
||||
<span style="color: #a020f0;">switch</span> (error) {
|
||||
<span style="color: #a020f0;">case</span> QMCKL_SUCCESS:
|
||||
message = <span style="color: #8b2252;">"Success"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"Success"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_INVALID_ARG_1:
|
||||
message = <span style="color: #8b2252;">"Invalid argument 1"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"Invalid argument 1"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_INVALID_ARG_2:
|
||||
message = <span style="color: #8b2252;">"Invalid argument 2"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"Invalid argument 2"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_INVALID_ARG_3:
|
||||
message = <span style="color: #8b2252;">"Invalid argument 3"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"Invalid argument 3"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_INVALID_ARG_4:
|
||||
message = <span style="color: #8b2252;">"Invalid argument 4"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"Invalid argument 4"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_INVALID_ARG_5:
|
||||
message = <span style="color: #8b2252;">"Invalid argument 5"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"Invalid argument 5"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_INVALID_ARG_6:
|
||||
message = <span style="color: #8b2252;">"Invalid argument 6"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"Invalid argument 6"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_INVALID_ARG_7:
|
||||
message = <span style="color: #8b2252;">"Invalid argument 7"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"Invalid argument 7"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_INVALID_ARG_8:
|
||||
message = <span style="color: #8b2252;">"Invalid argument 8"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"Invalid argument 8"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_INVALID_ARG_9:
|
||||
message = <span style="color: #8b2252;">"Invalid argument 9"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"Invalid argument 9"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_INVALID_ARG_10:
|
||||
message = <span style="color: #8b2252;">"Invalid argument 10"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"Invalid argument 10"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_FAILURE:
|
||||
message = <span style="color: #8b2252;">"Failure"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"Failure"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_ERRNO:
|
||||
message = strerror(errno);
|
||||
strncpy(string,strerror(errno),128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_INVALID_CONTEXT:
|
||||
message = <span style="color: #8b2252;">"Invalid context"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"Invalid context"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_ALLOCATION_FAILED:
|
||||
message = <span style="color: #8b2252;">"Allocation failed"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"Allocation failed"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_DEALLOCATION_FAILED:
|
||||
message = <span style="color: #8b2252;">"De-allocation failed"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"De-allocation failed"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
<span style="color: #a020f0;">case</span> QMCKL_INVALID_EXIT_CODE:
|
||||
message = <span style="color: #8b2252;">"Invalid exit code"</span>;
|
||||
strncpy(string,<span style="color: #8b2252;">"Invalid exit code"</span>,128);
|
||||
<span style="color: #a020f0;">break</span>;
|
||||
}
|
||||
strncpy(string,message,128);
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
@ -558,7 +556,7 @@ The text strings are extracted from the previous table.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-03-23 Tue 21:25</p>
|
||||
<p class="date">Created: 2021-03-28 Sun 23:18</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-03-23 Tue 21:25 -->
|
||||
<!-- 2021-03-28 Sun 23:18 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Memory management</title>
|
||||
@ -311,7 +311,7 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgdebfac7"></a></li>
|
||||
<li><a href="#org2130623"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@ -321,9 +321,9 @@ optimized libraries to fine-tune the memory allocation.
|
||||
</p>
|
||||
|
||||
|
||||
<div id="outline-container-orgdebfac7" class="outline-2">
|
||||
<h2 id="orgdebfac7"></h2>
|
||||
<div class="outline-text-2" id="text-orgdebfac7">
|
||||
<div id="outline-container-org2130623" class="outline-2">
|
||||
<h2 id="org2130623"></h2>
|
||||
<div class="outline-text-2" id="text-org2130623">
|
||||
<p>
|
||||
Memory allocation inside the library should be done with
|
||||
<code>qmckl_malloc</code>. It lets the library choose how the memory will be
|
||||
@ -434,7 +434,7 @@ allocation and needs to be updated.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-03-23 Tue 21:25</p>
|
||||
<p class="date">Created: 2021-03-28 Sun 23:18</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-03-23 Tue 21:25 -->
|
||||
<!-- 2021-03-28 Sun 23:18 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Testing</title>
|
||||
@ -311,7 +311,7 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-03-23 Tue 21:25</p>
|
||||
<p class="date">Created: 2021-03-28 Sun 23:18</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user